Hi,
i use the Template "portalpage_sport" for my website. For a Newspage i have created a New Page called "News". Then i have installed the "AdvancedNews"-plugin from www.jat-at-home.be. All works fine, but the Newsbox in the Template keeps empty. Only when the Newspage is displayed the Box displays the News. On all other Pages the Newsbox keeps empty. I use the following command on the Newspage: #cmsimple $output=shownewsbox('showlatest =5,alwayspublish=true');#
I don't know anything about PHP and how i must change the template.
Thanks for any help.
Best Regards
Edmund
AdvancedNews-plugin and Portalpage_Sport Template
Moderator: Tata
-
- Posts: 4
- Joined: Thu Nov 13, 2008 6:27 pm
- Location: Ostseebad Nienhagen, Mecklenburg-Pomerania
Re: AdvancedNews-plugin and Portalpage_Sport Template
Hi Edmund,
If you have a plugin command on a page, this command will only be executed when you are on the page where you put the command. If you are on another page, the command is not used. So it will not work with a newsbox, because the newsbox displays content, when you are on another page.
If you want a plugin command to generate something always, you have to put the commant into the template. Something like:
If you want the plugin command only on certain pages and on other pages a newsbox, try this:
The command for the pages that will suppress your plugin and display the newsbox is
Hope this helps
Frank Z.
If you have a plugin command on a page, this command will only be executed when you are on the page where you put the command. If you are on another page, the command is not used. So it will not work with a newsbox, because the newsbox displays content, when you are on another page.
If you want a plugin command to generate something always, you have to put the commant into the template. Something like:
Code: Select all
<?php echo MY_PLUGIN_COMMAND(); ?>
Code: Select all
<?php if ($news==''){echo MY_PLUGIN_COMMAND();}else{echo newsbox($news);} ?>
Code: Select all
#CMSimple $news = "Name_of_page_containing_your_news";#
Frank Z.