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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Need help with the News Templates
-
- Rank: Registered User
- Registered: Sep 03, 2007
- Last visit: May 14, 2010
- Posts: 48
-
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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 -
- Rank: Registered User
- Registered: Sep 03, 2007
- Last visit: May 14, 2010
- Posts: 48
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.
edited by: Technobilder, Dec 24, 2008 - 10:14 PM
- Moderated by:
- Support
