Page 1 of 1

display options for News

Posted: Thu May 25, 2006 9:50 pm
by warpdesign
I think I may need to modify a template to do this but I would like to customize the display of the news summary. I don't want it to show date posted or user it is posted by. How can I do this?

Re: display options for News

Posted: Thu May 25, 2006 10:55 pm
by Dr.CSS
goto Content>News summarry template and delete {$entry->formatpostdate} and {$entry->author}  and clik Submit at the bottom... if at some time in the future you need to add these just hit the Restore to Defaults button......
you can also copy these templates and then change it to your liking then call it out when calling the News Module....

{cms_module module="news" summmarytemplate="yourtemplatename.tpl"}  .....

Parameters

    * (optional) start="5" - Start at the nth item -- leaving empty will start at the first item.
    * (optional) number="5" - Maximum number of items to display =- leaving empty will show all items.
    * (optional) dateformat="%b %d, %Y" - Format to display the article's post date with. This is based on the strftime function and can be used in your template with $entry->formatpostdate. It defaults to %x, which is the default date format for the sever's locale.
    * (optional) makerssbutton="true" - Make a button to link to an RSS feed of the News items.
    * (optional) category="category" - Only display items for that category. Use * after the name to show children. Multiple categories can be used if separated with a comma. Leaving empty, will show all categories.
    * (optional) moretext="more..." - Text to display at the end of a news item if it goes over the summary length. Defaults to "more..."
    * (optional) summarytemplate="sometemplate.tpl" - Use a separate template for displaying the article summary. It have to live in modules/News/templates.
    * (optional) detailtemplate="sometemplate.tpl" - Use a separate template for displaying the article detail. It have to live in modules/News/templates.
    * (optional) detailpage="pagealias" - Page to display News details in. This can either be a page alias or an id. Used to allow details to be displayed in a different template from the summary.
    * (optional) sortby="news_date" - Field to sort by. Options are: "news_date", "summary", "news_data", "news_category", "news_title". Defaults to "news_date".
    * (optional) sortasc="true" - Sort news items in ascending date order rather than descending.
    * (optional) lang="en_US" - Parameter is used to specify what language to use for display on the frontend. Not all modules support or need this.

    HTH
          mark

Re: display options for News

Posted: Fri May 26, 2006 5:58 pm
by warpdesign
Thanks again! ;D