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
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.
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.