Adding a left sidebar
Permalink Browser Info Environment
I am currently trying to add a left sidebar to the real_estate_listings.php page type. However, it looks as if the code in this .php file is placing itself within the main #content div and not calling in the different theme elements (such as the header and footer) and giving me the opportunity to add in the left sidebar code.
Could you direct me as to where I would add in the left sidebar code?
Could you direct me as to where I would add in the left sidebar code?
Type: | Discussion |
---|---|
Status: | New |
We are still having the issue but plan on installing it on a different domain to see if it's still having the issue.
As for the left sidebar, can you point us to where you are choosing to use view.php so we can choose for it to use another page type?
As for the left sidebar, can you point us to where you are choosing to use view.php so we can choose for it to use another page type?
it doesn't need to specify to choose view.php, that's just the way that concrete5 works with those page types that are defined within packages, they'll automatically be loaded within that view.php. does that make sense?
Thanks for the replies! We went ahead and added the sidebar in the page type and it worked perfectly.
if so can I close that ticket?
http://www.concrete5.org/marketplace/addons/real-estate/support-and...
back to your question here... correct, the code in that php file doesn't have the header and footer, but that's by design. It's suppose to be loaded into your theme's view.php, and it's that file that should link to your header and footer. One approach you could take here is to add the left nav to that view.php within your theme. That would then add the left sidebar to every page that uses that view.php, but you could add some logic to make it switch on or off depending on the url or page type. Or you could add the left nav to the page type itself, but that may be a bit trickier depending on how your markup is structured.