Hopefully my last Ditto problem for a while! I’m setting up some basic "teaser text" previewing blog articles, on a site home page. It’s almost there but for some reason my Ditto template formatting is being overwritten by the formatting of the article itself.
Here’s the Ditto call being made on the home page:
[!Ditto? &parents=`10` &depth=`0` &filter=`id,12,2|id,13,2|id,14,2|id,15,2|id,16,2|id,19,2` &tpl=`ditto.homepageblogpreview` &total=`1` &extenders=`summary` &truncLen=`100` &truncText=`Read More`!]
And this is my Ditto template:
<a href="[~[+id+]~]"><p><strong>[+title+]</strong></p></a><p>[+summary+]</p> <a href="[~[+id+]~]">Read more</a>
The problem seems to be that the [+summary+] is showing the first four words in very large text, the same formatting as is used on the actual article page. I want it to just use normal paragraph text- but it won’t accept it. I even tried:
<p style="font-size:10px;">
to no avail...
On another note, I want to place two separate teaser text blocks on the home page, for the two most recently published articles, but not sure how to make the call pick up the second most reently-published article for the second teaser text block...