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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
chimmyc
New Member
New Member
Posts: 7
Joined: Wed May 02, 2007 8:46 pm

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

Post 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?
Last edited by chimmyc on Sun Mar 01, 2009 10:06 pm, edited 1 time in total.
chimmyc
New Member
New Member
Posts: 7
Joined: Wed May 02, 2007 8:46 pm

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

Post 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.
Post Reply

Return to “CMSMS Core”