How can I remove Category Headers in News sections?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Susan Altman
New Member
New Member
Posts: 3
Joined: Tue Feb 24, 2009 11:48 pm

How can I remove Category Headers in News sections?

Post 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
Peciura

Re: How can I remove Category Headers in News sections?

Post 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
Susan Altman
New Member
New Member
Posts: 3
Joined: Tue Feb 24, 2009 11:48 pm

Re: How can I remove Category Headers in News sections?

Post by Susan Altman »

thanks, I'll try it!
Susan Altman
New Member
New Member
Posts: 3
Joined: Tue Feb 24, 2009 11:48 pm

Re: How can I remove Category Headers in News sections?

Post 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}
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: How can I remove Category Headers in News sections?

Post 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  ;)

®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Peciura

Re: How can I remove Category Headers in News sections?

Post 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.
Attachments
news_summary_template.jpg
Post Reply

Return to “Layout and Design (CSS & HTML)”