Page 1 of 1

[solved] Forcing a "Detail Template" view for news

Posted: Sun Mar 01, 2009 8:03 am
by chimmyc
I'm essentially looking to display the latest news entry in "detail" view on a page. Seems fairly straightforward, but I haven't been able to figure out how to pull it off just yet.

I tried duplicating the detail template as a summary template, and then using this tag {news number="1" summarytemplate="Home"} ('Home' being the name of summary template duplicated from the original details one) but I get this error: string(43) "Smarty error: eval: missing 'var' parameter"

I found a post (http://forum.cmsmadesimple.org/index.php/topic,15176.0.html) which seems to be the kind of answer I'm looking for but it also seems like it uses outdated code.

Any thoughts?

Re: [solved] Forcing a "Detail Template" view for news

Posted: Sun Mar 01, 2009 10:10 pm
by chimmyc
Figured out how to get this done, even if it's not the most ideal setup.

I found another post (http://forum.cmsmadesimple.org/index.php/topic,28999.0.html) where someone was trying to pull off a similar feat. My problem was due to a misconfigured template file.

I used markS' recommendation and replaced the {$entry->morelink} from his code snippet with my detail template and everything seemed to work just fine.