Fork me on GitHub

Need help with the News Templates  Bottom

  • Hello all,
    I want to modify the look of my articles which I do with the News module. But I cant figure out which template does what. As I'm no programmer I'm stuck with all that smarty/pnrender codes that are too cryptic for me.

    My site is www.rhein-sieg-freizeit.de (scroll down to see the news), I just started to add pictures (using HTML) in News.
    Now I need help in doing the following.

    Remove the "Date" when an article was postet and the "_POSTEDBY RSF-Admin" - but I dont find the corresponding lines in pntemplates myself.
    Also, where is the "Read more" link in the template as I want to put that under the text so that text and picture are aligned better.



    edited by: Technobilder, Dec 24, 2008 - 02:51 AM
  • Hi,

    there are several templates used in News, you have the list view in News and the display view when you open a specific article. There are seperate templates for this.

    news_user_view.htm takes care of the display in the news list mode. For every item in the news list the template news_user_index.htm is used for its layout. So when used as the homepage module or during listing of news items. In news_user_index.htm you will see the display of the title and hometext, etc.
    You can remove the date and postedby by removing this part:

    Code

    <p class="news_meta"><!--[pnml name=_NEWS_POSTEDBYANDON username=$info.informant date=$info.briefdatetime]--></p>

    Or disable it by means of Smarty code in the template to be used again later on with

    Code

    <!--[* <p class="news_meta"><!--[pnml name=_NEWS_POSTEDBYANDON username=$info.informant date=$info.briefdatetime]--></p> *]-->


    news_user_article.htm and news_user_articlecontent.htm takes care of the display of articles with use of the display function, so when clicking on a newsitem. news_user_article.htm includes articlecontent (check out the files in /modules/News/pntemplates/*)
    You will see the maintext and a lot of other parameters being displayed.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Thanks for the hint. After I changed the templates in modules/news with no effect I finally realized that there are extra templates in my theme GoFlexible for the News module....
    That was the solution. icon_smile



    edited by: Technobilder, Dec 24, 2008 - 10:14 PM

This list is based on users active over the last 60 minutes.