So, adding stuff on Right Sidebar default Page Type doesn't update
Permalink
on pages with Right Sidebar selected as the design. Why would this happen? I uploaded a new template called right_sidebar.php to overwrite whatever default might have been. Is this a problem?
The full code of that Right Sidebar template that makes it different from Default.php is just ths:
So, I went into Page Types, selected Right Sidebar and added some content to these Left and Right areas. Concrete5 gave me a reminder that all updates would be instant and effect all pages with this template. Good. But, it was a lie. Never happened. :(
The full code of that Right Sidebar template that makes it different from Default.php is just ths:
<div id="leftSide"> <?php $a = new Area('Left'); $a->display($c); ?> </div> <div id="rightSide"> <?php $a = new Area('Right Sidebar'); $a->display($c); ?> </div>
So, I went into Page Types, selected Right Sidebar and added some content to these Left and Right areas. Concrete5 gave me a reminder that all updates would be instant and effect all pages with this template. Good. But, it was a lie. Never happened. :(
Erm... "set up on child pages" isn't the solution (see below)
NOT SOLVED.
When I add a new page of this type it does not update. Shouldn't it automatically pull in everything from the Page Type default? I have to keep going back and checking the new Child Page under Set Up On Child Pages, which is not convenient at all.
ALSO:
In the sidebar, I put a search box and an autonav. They are showing up on child pages in the wrong order (search box under the autonav).
So, getting pretty tired of effing around with this. Can someone provide me with a page that shows hardcoding for all the standard blocks. I'll just hardcode what I need into the sidebar template.
When I add a new page of this type it does not update. Shouldn't it automatically pull in everything from the Page Type default? I have to keep going back and checking the new Child Page under Set Up On Child Pages, which is not convenient at all.
ALSO:
In the sidebar, I put a search box and an autonav. They are showing up on child pages in the wrong order (search box under the autonav).
So, getting pretty tired of effing around with this. Can someone provide me with a page that shows hardcoding for all the standard blocks. I'll just hardcode what I need into the sidebar template.
Did you have the cahce enabled? Might be worth turning ot off and clearing it.
Also, instead of using Area, if the content is always going to be the same, use GlobalArea instead - this will then appear on every page, and you'd just add the content from any page that has the sidebar. You could use the Area as well, if you need to add page specific content.
Also, instead of using Area, if the content is always going to be the same, use GlobalArea instead - this will then appear on every page, and you'd just add the content from any page that has the sidebar. You could use the Area as well, if you need to add page specific content.
Thanks for your response.
Cache is disabled and the idea is to have some default blocks in there but also the ability for them to add new items to the sidebar when they want through Edit. I don't know if Global Areas would allow this (I don't even know what Global Areas are). It's unfortunate that the system acts like this when it clearly is not supposed to, but I've moved on to hardcoding what I want in the template. It's also unfortunate that the hard code I needed was not listed anywhere on the documentation. Something that should have been simple took me a day to do.
Cache is disabled and the idea is to have some default blocks in there but also the ability for them to add new items to the sidebar when they want through Edit. I don't know if Global Areas would allow this (I don't even know what Global Areas are). It's unfortunate that the system acts like this when it clearly is not supposed to, but I've moved on to hardcoding what I want in the template. It's also unfortunate that the hard code I needed was not listed anywhere on the documentation. Something that should have been simple took me a day to do.
<div id="leftSide"> <?php $a = new Area('Left'); $a->display($c); ?> </div> <div id="rightSide"> <?php // this area will be common to all pages, and if changed will change on all pages $a = new GlobalArea('Right Sidebar'); $a->display($c); // this area should follow the page defaults, or you can leave it // empty so that users can add page specific content $a = new Area('Right Sidebar'); $a->display($c); ?> </div>
Thanks again. I've marked this as the best answer. I will play around with the Global Area option and see if it works for me. In any case, it's good to learn about.
As for my current problem, I am thinking maybe when I moved items around on the default Page Type that somehow complicated my site's innards and it no longer knew which way was up. (I added an autonav, then I added a search box, then I moved the search box above the autonav. All the children showed it with the search box still on the bottom. Then, if I added a new page and gave it the Right Sidebar design, there was nothing on it. And if I went back to Page Types, there it was in the "Set up On Child Pages" list unchecked (even though I had checked all and applied it before).
As for my current problem, I am thinking maybe when I moved items around on the default Page Type that somehow complicated my site's innards and it no longer knew which way was up. (I added an autonav, then I added a search box, then I moved the search box above the autonav. All the children showed it with the search box still on the bottom. Then, if I added a new page and gave it the Right Sidebar design, there was nothing on it. And if I went back to Page Types, there it was in the "Set up On Child Pages" list unchecked (even though I had checked all and applied it before).