![]() |
|
Making zenpage content load on non zenphoto pages - 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: Making zenpage content load on non zenphoto pages (/thread-5284.html) |
Making zenpage content load on non zenphoto pages - celshader - 06-06-2009 Hi guys, I am using zenphoto 1.2.3 and zenpage 1.1 I would like however to be able to load a page of zenpage content on a regular html/php page outside of the root of the zenphoto section of my site So far I have Obviously I need to now require/include some zenpage functions and pass some variable to the functions between the brackets of Can anyone please give me some pointers? Making zenpage content load on non zenphoto pages - acrylian - 06-06-2009 You can't pass variables to those function to do that (did you look at the documentation?). May I ask why you need to show that outside of Zenphoto? Anyway, first you should upgrade to Zenphoto 1.2.5 as the internal setup has changed regarding Zenpage since it became an official plugin with 1.2.4 that makes things like this much easier. Therefore this will be for 1.2.5 and its included Zenpage 1.1.1 (its actually 1.1.2 but we forgo to raise the version number...). You can use the method described here: Additionally you need to include the four Zenpage main files like template-functions.php in the example: Then you need to setup a page object and use the ZenpagePage methodes to get the data like this: |