ZenphotoCMS Forum
news on index and printNewsIndexURL() - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: news on index and printNewsIndexURL() (/thread-4589.html)



news on index and printNewsIndexURL() - fretzl - 02-02-2009

I use the news on index option to display one specific newsarticle on index.php
(I tweaked the "next_news loop" to get the article I want)

I ALSO have a seperate menu button to link to the news.php page using printNewsIndexURL().

This is what happens:
With the news on index option OFF, the printNewsIndexURL() function renders a link to my news.php.
With the news on index option ON, the printNewsIndexURL() function renders a link to my index.php.

Is there any way to get the printNewsIndexURL() to render the path to my news.php while using the news on index option?

Thanks




news on index and printNewsIndexURL() - acrylian - 02-02-2009

That is actually wanted behaviour as the newsindexurl points to the index and that is with "news on index" the index.php page.
You could of course make your own custom function for that.




news on index and printNewsIndexURL() - fretzl - 02-02-2009

Thanks, I'll try