Member
Member
WhyT   2014-02-17, 13:50
#1

Hi!
i use mod_rewrite and for albums and images it works fine, but if i add a link to a page it returns the wrong url.
when i use:
printCustomPageURL("my Page","thepage");
i get this URL back:
/page/thepage (deliver a 404)
but the right url must be /pages/thepage
i have the laterst ZP and it is a fresh install i dont changed anything in the .htaccess or core files.

ideas?

greets from Austria
Michael

Administrator
Administrator
acrylian   2014-02-17, 14:58
#2

Quote:printCustomPageURL("my Page","thepage");
i get this URL back:
/page/thepage (deliver a 404)
but the right url must be /pages/thepage
No, you are calling a (static) custom page and that is the correct url. For that to work you have to have a theme page name thepage.php.

/pages/thepage would be the url of a Zenpage CMS plugin page which is something different. If that works depends if the theme used has Zenpage support.

Member
Member
WhyT   2014-02-17, 15:50
#3

thx for reply!

i made my own theme with Zenpage CMS support.
so printCustomPageURL is the wrong way to get a link of a CMS page?
how get i the right link? or do i have to format it manualy via a static

Administrator
Administrator
acrylian   2014-02-17, 17:18
#4

You can do both via the template functions (for bascially all functions: get = plain data, print = full html element):
http://www.zenphoto.org/documentation/plugins/zenpage/_zp-extensions---zenpage---zenpage-template-functions.php.html#functiongetPageLinkURL
http://www.zenphoto.org/documentation/plugins/zenpage/_zp-extensions---zenpage---zenpage-template-functions.php.html#functionprintPageLinkURL

Or use the object model behind this all directly.

Member
Member
WhyT   2014-02-18, 11:42
#5

thx!
printPageLinkURL is what i need

Administrator
Administrator
acrylian   2014-02-18, 12:35
#6

Be aware for some changes in 1.4.6 regarding some function names.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.