Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display page child
#1
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. Shy
Reply
#2
maybe simplepagecontent is for you? http://get-simple.info/extend/plugin/sim...ontent/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
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
PageCaching is obsolete and is included in the core of GetSimple since 3.1


I'll remove it from Extend.
My Github Repos: Github
Website: DigiMute
Reply
#4
Does simplepage allow me to have different content in this block for every page?
Reply
#5
hanker,

please try it out, it will only take some minutes and you know your needs the best
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#6
Ah i got it to work Smile 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 Smile
Reply
#7
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)
Reply




Users browsing this thread: 1 Guest(s)