Persistent Content

Permalink
Hi All - Must be missing something obvious (having a slow brain day)

How would I have a "Content" block that appears on every page with the same content and is editable from any page you browse to?

Eg. I want to have a "site maintenance message" that appears in a right column on every page

5fly
 
wagdi replied on at Permalink Reply
wagdi
You can do this in the default page types.

Go to Dashboard>> pages and themes>> page types (at the top)>> now you'll see all the page types>> select the 'defaults' for your required page type and start editing it. Add your content block with the 'site maintenance' message>>

Once you finish editing and save it; those edits will appear every time you create that page type.

Hope that helps.
5fly replied on at Permalink Reply
5fly
Thanks - this nearly works... the problem being I have quite a few pages already created... I was hoping there could be something I could add to the theme template?

Cheers
wagdi replied on at Permalink Reply
wagdi
I think I read somewhere before that in the page types defaults, you can edit the block you've added to 'setup on child pages'; that should add the same block on the already existing pages.

Will try to find it for you.
wagdi replied on at Permalink Best Answer Reply
wagdi
Found it. Much more concise than mine. The best answer is by Jordanlev-

In the Page Defaults, click on a block and choose "Setup on Child Pages" -- this will allow you to add blocks to pages that already exist.
HOWEVER, it is a bit clunky and you have to be careful that it doesn't add duplicates to pages. Basically if the block is already on a page, but wasn't put there by the original page default, it will add a second copy of the block instead of being smart enough to know it's already there.
Also, you unfortunately can't rearrange the order of blocks and have them apply to this "child page setup" -- they are always added to the bottom of the existing area's blocks.

A different solution for this situation that I've been using is to install the free "Global Areas" addon (http://www.concrete5.org/marketplace/addons/global-areas... ), then pick one page on your site to be the "single source of content" for a particular area, then add the Global Area block to the page defaults and point it to that page you decided was going to be the "single source of content", then "setup on child pages" the global area block for all pages except the "source" page you decided upon. Now when you edit content on that "source" page, it will automatically be updated across the entire site -- including moving blocks around within the area.

I wish this were simpler to deal with :)

SOURCE:http://www.concrete5.org/community/forums/customizing_c5/default-bl...

Hope that clarifies things for you.

Best wishes,
Wagdi
snapcridge replied on at Permalink Reply
Don't know if this is too late, but I stumbled across the following that JordanLev also spoke of and created. I have tried it and it works great!

http://www.concrete5.org/community/forums/usage/a-new-approach-to-a...

Hope it helps!