I'm not in any way a developer, but I'm the person who's been making updates to our website for a while now. So please avoid technical language and assumptions that I might know what I'm doing--I need the remedial language!
I'm running CMS Made Simple 1.2.4 and use Windows XP.
I have several NEWS sectgions on my hopepage. I want to remove the Headers that say the KIND of news that an article relates to. For example, Under Headlines (which has a nice heading so readers can tell what section they are looking at), each article title is followed by the word Headlines. It happens on all browsers, and is taking up a lot of space. Can I get rid of it? Here's the page I'm talking about: http://www.massclimateaction.net/
Thank you!
Susan
How can I remove Category Headers in News sections?
-
Susan Altman
- New Member

- Posts: 3
- Joined: Tue Feb 24, 2009 11:48 pm
-
Peciura
Re: How can I remove Category Headers in News sections?
You have to remove smarty variable {entry->category} from corresponding news summary template.
or if you change it to {*entry->category*} category will become invisible. Later if you want you can uncomment it (remove *) and it will become visible again.
Read this first (including section "Templates", "News FAQ", "Troubleshooting"). http://wiki.cmsmadesimple.org/index.php ... ntent/News
or if you change it to {*entry->category*} category will become invisible. Later if you want you can uncomment it (remove *) and it will become visible again.
Code: Select all
{something_happens_here}
{*no_acction_or _output_here*}Read this first (including section "Templates", "News FAQ", "Troubleshooting"). http://wiki.cmsmadesimple.org/index.php ... ntent/News
-
Susan Altman
- New Member

- Posts: 3
- Joined: Tue Feb 24, 2009 11:48 pm
Re: How can I remove Category Headers in News sections?
thanks, I'll try it!
-
Susan Altman
- New Member

- Posts: 3
- Joined: Tue Feb 24, 2009 11:48 pm
Re: How can I remove Category Headers in News sections?
I found a News Templates, which contains the variable you said to look for. (The entire page of code is copied at the bottom of this message.) BUT it seems that this piece of code :
{if $entry->formatpostdate}
{*$entry->formatpostdate*}
is probably the correct section for adding the asterisks.
I tried the change in both places and it made no difference. But then I saw this comment at the top of the admin page:
Note: This tab contains text areas to allow you to edit a set of templates that are displayed when you create a 'new' summary, detail, or form template. Changing content in this tab, and clicking 'submit' will not effect any current displays.
So, I'm stuck. Any other ideas? Thanks.
{if $pagecount > 1}
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber
{/if}
{foreach from=$items item=entry}
{if $entry->formatpostdate}
{*$entry->formatpostdate*}
{/if}
{$entry->titlelink}
{$category_label} {$entry->category}
{if $entry->author}
{$author_label} {$entry->author}
{/if}
{if $entry->summary}
{eval var=$entry->summary}
[{$entry->morelink}]
{else if $entry->content}
{eval var=$entry->content}
{/if}
{if isset($entry->extra)}
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
{if $field->type == 'file'}
file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
{/foreach}
{/if}
{/foreach}
{if $entry->formatpostdate}
{*$entry->formatpostdate*}
is probably the correct section for adding the asterisks.
I tried the change in both places and it made no difference. But then I saw this comment at the top of the admin page:
Note: This tab contains text areas to allow you to edit a set of templates that are displayed when you create a 'new' summary, detail, or form template. Changing content in this tab, and clicking 'submit' will not effect any current displays.
So, I'm stuck. Any other ideas? Thanks.
{if $pagecount > 1}
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber
{/if}
{foreach from=$items item=entry}
{if $entry->formatpostdate}
{*$entry->formatpostdate*}
{/if}
{$entry->titlelink}
{$category_label} {$entry->category}
{if $entry->author}
{$author_label} {$entry->author}
{/if}
{if $entry->summary}
{eval var=$entry->summary}
[{$entry->morelink}]
{else if $entry->content}
{eval var=$entry->content}
{/if}
{if isset($entry->extra)}
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
{if $field->type == 'file'}
file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
{/foreach}
{/if}
{/foreach}
Re: How can I remove Category Headers in News sections?
Code: Select all
{*
<div class="NewsSummaryCategory">
{$category_label} {$entry->category}
</div>
*}
We are on 1.6.6 at the moment, you need to do some upgradingSusan Altman wrote: I'm running CMS Made Simple 1.2.4
®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
Peciura
Re: How can I remove Category Headers in News sections?
You are in wrong tab.Note: This tab contains text areas to allow you to edit a set of templates that are displayed when you create a 'new' summary, detail, or form template. Changing content in this tab, and clicking 'submit' will not effect any current displays.
Check picture bellow.

