PhotoWebMax Posted May 5, 2014 Share Posted May 5, 2014 Quick question: The default PS install has a sidebar_item in the main head.inc template file: <div class='sidebar_item'> <?php // if the current page has a populated 'sidebar' field, then print it, // otherwise print the sidebar from the homepage if($page->sidebar) echo $page->sidebar; else echo $homepage->sidebar; ?> </div> </div><!--/sidebar--> The thing I notice is that the all the pages in the default site will echo the Summary text from the Home page. I was expecting the other pages to print the text from the individual summaries? Link to comment Share on other sites More sharing options...
diogo Posted May 5, 2014 Share Posted May 5, 2014 Go to the admin. Edit the page "about". write "lalalalalalalalalalalalalalalalalalalalalalalalalalalalala" in the field called "sidebar". save the page. open the "about" page in the browser. 1 Link to comment Share on other sites More sharing options...
Pete Posted May 5, 2014 Share Posted May 5, 2014 The clue is here: if($page->sidebar) echo $page->sidebar; else echo $homepage->sidebar; It literally means "if this page has a value in the sidebar field, echo that, else echo the sidebar text from the homepage". 2 Link to comment Share on other sites More sharing options...
PhotoWebMax Posted May 6, 2014 Author Share Posted May 6, 2014 Sorry, but I started this thread after briefly mixing up the summary and sidebar feeds in one of my test projects. Makes sense now... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now