News Module Customization Question

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"
Locked
vangabond

News Module Customization Question

Post by vangabond »

Greetings. I am running the latest version of CMSMadeSimple (installed only a few days ago) and I am wondering how I might go about modifying the News Module functionality so that news postings include the item Title and Date, but not the Category or Posted By information. Can I make these changes from within the CMSMS framework itself, or do I need to independently access a file on my server?

Any help would be greatly appreciated.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: News Module Customization Question

Post by Nullig »

You can change/remove those in the display templates (summary, detail, etc.) of te News module.

Nullig
vangabond

Re: News Module Customization Question

Post by vangabond »

thanks for the response. honestly though, it was not nearly specific enough to really help me. i have thoroughly explored every module / template option within CMSMadeSimple and have not found any options to make the changes you suggest. I am just at a loss.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: News Module Customization Question

Post by Nullig »

Ok let's look at the News Summary DefaultTemplate:


{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}                                                                author}                                                  author}                                                      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}



Does that make it more clear?

Nullig
leslie894

Re: News Module Customization Question

Post by leslie894 »

Or you can use the News stylesheet to control whether or not to display the info:

Code: Select all

.NewsSummaryCategory {
  display: none;
 }

.NewsSummaryAuthor {
  display: none;
}
vangabond

Re: News Module Customization Question

Post by vangabond »

thank you all very much for your time and help. much appreciated.
fijiwater
New Member
New Member
Posts: 9
Joined: Sat Aug 02, 2008 2:28 am

Re: News Module Customization Question

Post by fijiwater »

I did that but through FTP, didn't upload on the the actual page Im calling the news module, do i HAVE to do it through the admin cp? Its not saying my permissions are right (or .htaccess file) but i dont even have a htaccess file on the server right now I don't believe.

What do I need to chomd?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News Module Customization Question

Post by Dr.CSS »

To get anything to show up on a page using CMSMS you have to do everything in the admin, this is not like a flat file html website where you make changes on your computer, using notepad/dreamdeceiver, then FTP it to the site...

All the content/pages/templates/css are in the DB, that's why you don't see a bunch of contact.html,about us.html,etc.html,etc.html, files when you install it or make pages...

All changes have to be made after you log in to the admin...
Locked

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