[solved] modify summarySample

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.
Locked
warlock2009
New Member
New Member
Posts: 3
Joined: Tue Nov 17, 2009 6:57 pm

[solved] modify summarySample

Post by warlock2009 »

i just want to give CMS a chance! ... but i'm trying for 2 days to realize how to work with it.

i know very well php, mysql, smarty... but this cms is driving me crazy

well,

in the default instalation, with the default content and "Left simple navigation + 1 column" template i want a simple way to display the "news" list in the left sidebar. i just dont know how and where to find the template. well, it is stored in DB, and now way to customizing this.

or a useful link....
Last edited by Anonymous on Tue Dec 01, 2009 6:07 pm, edited 1 time in total.
JeremyBASS

Re: modify summarySample

Post by JeremyBASS »

warlock2009 wrote: i just want to give CMS a chance! ... but i'm trying for 2 days to realize how to work with it.

i know very well php, mysql, smarty... but this cms is driving me crazy

well,

in the default instalation, with the default content and "Left simple navigation + 1 column" template i want a simple way to display the "news" list in the left sidebar. i just dont know how and where to find the template. well, it is stored in DB, and now way to customizing this.

or a useful link....
if you know very well php, mysql, smarty ... IMHO this is the best cms app you'll ever find.  PLUS if you know smarty this should be a snap... it's all smarty in the templates... Yes most everything is in the db in regards to the templates.  What you’ll want to if you wishing change/add/edit is to look to the news section (content tab >> News).  

There are tons of useful links...

http://wiki.cmsmadesimple.org/index.php/Main_Page
http://www.cmsmadesimple.org/support/irc/
http://www.cmsmadesimple.org/apidoc/



also read the forums (Tips and tricks is a good one)... and read the admin helps in your install, click around in there and look at things like tag and events and what not.

At your level you should have no troubles once you find where things are....

Hope this helps
Cheers
Jeremy
Peciura

Re: modify summarySample

Post by Peciura »

In you page template you should find smarty tag "{news number='3' detailpage='news'}"
this one shows up to 3 news entries. To show summary it uses news summary template, news summary template is not set explicitly - so it is default one - Content » News >> Summary Templates >> Sample.

As you can guess tag {news number='3' detailpage='news'} is equal to {news number='3' detailpage='news' summarytemplate='Sample'} in default CMSms instalation.

If you want simple list of news headlines delete things you don't need in news summary "Sample" template.

As Jeremy mentioned there are tones of reading to do - so start with module help at Content » News >> Module Help and wiki.cmsmadesimple.org/index.php/Main_Page .
warlock2009
New Member
New Member
Posts: 3
Joined: Tue Nov 17, 2009 6:57 pm

Re: modify summarySample

Post by warlock2009 »

thanks guys. i've figured out how to change detail page for news or page;
I think i will stay with CMSMS.

I do not want to make site in php just for commodity reason. Joomla seems too heavy for my scope.

Now, i had another problem, i guess is a matter of smarty variables.

In the template for detail news i want to display {title}. For page type content it is ok, but for a news page it keeps me last title showed;

{assign var='title'  value=$entry->title}
in newsDetailTemplate doesnt rewrite the title variable.
Peciura

Re: modify summarySample

Post by Peciura »

Code: Select all

{title}
is function and

Code: Select all

{$title}
is variable you just created with

Code: Select all

{assign var='title'  value=$entry->title}
JeremyBASS

Re: modify summarySample

Post by JeremyBASS »

warlock2009
New Member
New Member
Posts: 3
Joined: Tue Nov 17, 2009 6:57 pm

Re: modify summarySample

Post by warlock2009 »

you pointed me in the right direction.
after you learn to use/modify templates/content CMSMS seems nice. in a few days i will release a modified version site (made with joomla)

thank you guys
Locked

Return to “CMSMS Core”