Display page child - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Display page child (/showthread.php?tid=4376) |
Display page child - hanker - 2013-02-27 Hello, I could not find the answer to this question somehow so here is my first post. I want to be able to display the child page of the parent page in a seperate content area on the same page. So every page on the website will have its own content and its childs content in a seperate box. (I want a different picture to be displayed for every page) Is there an easy way to achieve this or how can i do this? Thanks alot in advance. RE: Display page child - Connie - 2013-02-27 maybe simplepagecontent is for you? http://get-simple.info/extend/plugin/simplepagecontent/87/ or this plugin: Page Caching: http://get-simple.info/extend/plugin/page-caching/65/ I am sure you will find help if you are stuck, I do not use these plugins, but they seem reasonable to me Cheers, Connie RE: Display page child - n00dles101 - 2013-02-27 PageCaching is obsolete and is included in the core of GetSimple since 3.1 I'll remove it from Extend. RE: Display page child - hanker - 2013-02-28 Does simplepage allow me to have different content in this block for every page? RE: Display page child - Connie - 2013-02-28 hanker, please try it out, it will only take some minutes and you know your needs the best RE: Display page child - hanker - 2013-03-01 Ah i got it to work for other people interested I installed the simplepage content which allows you to echo a page by its slug "echo get_page_by_id('pages-slug'); " and then it is very easy to use "if (return_page_slug()=='page-slug')" to create a page-dependency. My code now looks like this and works like a charm: <?php if (return_page_slug()=='page-slug') echo get_page_by_id('pages-slug'); ?> etc. thanks for the help RE: Display page child - Carlos - 2013-03-01 Since GS 3.1 you can do that without a plugin. Instead of get_page_by_id you could use the built-in function getPageContent (more info here: http://get-simple.info/wiki/config:caching-function ) (AFAIK the only difference is that SimplePageContent's function doesn't run the content filter) |