Hi guys,
I’ve been trying for ages to do the same thing as Michel, but it doesn’t seem to want to work.
What I want, is the last posted entry (1 only) from my folder, to display the title of the document, and the first 50 characters or so of the content field, and a "More..." link at the bottom to view the full document - Ditto should be more than capable, right?
Here’s how I’m calling it:
[[Ditto? &mode=`development` &startID=`14` &summarize=`1` &trunc=`1` &truncLen=`100` &truncText=`View full post` &emptyText=`Oops, looks like I’ve not made any journal posts this month yet!` &displayArchive=`0` &tpl=`webHL_Journal`]]
My "webHL_Journal" chunk looks like:
<b>[+pagetitle+]</b>
<br /><br />
[+summary+]
(yet to add the link as I’m trying to get the summary working first!)
Yet when I view the page, I get the whole document content.
There is no summary (introtext) defined - only the page title, long title and menu title. I’ve looked through ditto’s code and can’t see any reason why it shouldn’t be doing exactly as I’m telling it to!
If I change the truncLen to 50, it only shows about the first 15 characters of the document, if I set it to 70, it shows a bit more, but half a HTML tag.
Also, did you know that the variable truncOffset is sometimes spelled as truncOffest and sometimes as truncOffset?