Page 1 of 1
How can I remove Category Headers in News sections?
Posted: Fri Nov 27, 2009 4:58 pm
by Susan Altman
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
Re: How can I remove Category Headers in News sections?
Posted: Fri Nov 27, 2009 5:24 pm
by Peciura
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.
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
Re: How can I remove Category Headers in News sections?
Posted: Fri Nov 27, 2009 5:29 pm
by Susan Altman
thanks, I'll try it!
Re: How can I remove Category Headers in News sections?
Posted: Fri Nov 27, 2009 5:59 pm
by Susan Altman
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}
Re: How can I remove Category Headers in News sections?
Posted: Fri Nov 27, 2009 6:03 pm
by Rolf
Code: Select all
{*
<div class="NewsSummaryCategory">
{$category_label} {$entry->category}
</div>
*}
Susan Altman wrote:
I'm running CMS Made Simple 1.2.4
We are on 1.6.6 at the moment, you need to do some upgrading
®
Re: How can I remove Category Headers in News sections?
Posted: Fri Nov 27, 2009 7:11 pm
by Peciura
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.
You are in wrong tab.
Check picture bellow.