If you don’t specify a $tpl, then Ditto will use the default template. You can find it (at least in the latest version)
ok I see better,
...HTML comment <!-- splitter -->
Very unusual way.. it’s suppose people will write their article dealing with this marker. No really applicable in real life. And first cms I c doing this (but I didnt see so many cms anyway). Always useful, but not for majority.
Also, from a page to another, nobody can tell where will be the first human significant caracter. So how to decide where is the limit ?
As we’re supposed to work properly with as clean as possible XHTL and CSS, the truncate function should works taking in count only content of Hn and P, and may be some other tag contains. (ideally another parameter could exist to take, or not, in count pure html or only resulting displayed text and pix).
The main purpose of such a function, is to generate
automatic summary (ie site pan, news bloks and so on) and, yes, many other stuff.
I see on your site here :
http://www.sottwell.com/articles.html, after a peek to your {{ditto_articles}}
you use the summary, but ... who wanna write a static summary when
computer could extract the beginning of the article (I mean should do it). Imaging you change totally one article (ok I dont know why you could do this) then you’re supposed to deal again with summary field.. really a pain.
In your article page you directly put the ditto’s call into the page content.
Is this possible if just call into the page’s tpl code ? (cause actually, nothing occurs in my test if done like this) ?
Thank you for your very helpful advises and answer.
Regards,