Div tag that duplicates its content all over the site
Permalink 1 user found helpful
I need to make a div tag that would include temperature and wind information. That info would be typed in this div tag manually and i would like this info to be changed on all pages that include this specific div tag.
To elaborate a bit, i type new temp. and wind info in just one of #temperature div tags and it changes across the whole site, so i don`t need to change it manually for every page. Whats the proper way to accomplish this?
To elaborate a bit, i type new temp. and wind info in just one of #temperature div tags and it changes across the whole site, so i don`t need to change it manually for every page. Whats the proper way to accomplish this?
Assuming you're on version 5.4.something, I think the best way to achieve this is using Page Defaults.
Go to Dashboard -> Pages and Themes -> Page Types, and next to the page type you want to put this on, click "Defaults" (you may need to repeat these steps for all of the page types in the list if you want this on all pages in your site).
Edit the page defaults page, click "Add to whatever" (whichever area you want to add it to), and choose "Paste from Scrapbook", choose your global scrapbook from the dropdown list and click on the block you just made. Before exiting edit mode here, click on the new block you just added and choose "Setup on Child Pages". Check the boxes next to the pages you want to add this to, and click the "Update" button.
(You will need to repeat this step for other page types if you want this block on ALL kinds of pages).
Now when you want to change the information, go back to page defaults and edit the block there (if you edit the block from a specific page, it will only change it in that one place, not everywhere else).
Another option is to use the "global scrapbook", but this only makes sense if you want this block on a few pages (because you have to manually add it to all the pages you want it on -- unlike the "Setup on Child Pages" functionality of the Page Defaults).
Hope that helps!
Go to Dashboard -> Pages and Themes -> Page Types, and next to the page type you want to put this on, click "Defaults" (you may need to repeat these steps for all of the page types in the list if you want this on all pages in your site).
Edit the page defaults page, click "Add to whatever" (whichever area you want to add it to), and choose "Paste from Scrapbook", choose your global scrapbook from the dropdown list and click on the block you just made. Before exiting edit mode here, click on the new block you just added and choose "Setup on Child Pages". Check the boxes next to the pages you want to add this to, and click the "Update" button.
(You will need to repeat this step for other page types if you want this block on ALL kinds of pages).
Now when you want to change the information, go back to page defaults and edit the block there (if you edit the block from a specific page, it will only change it in that one place, not everywhere else).
Another option is to use the "global scrapbook", but this only makes sense if you want this block on a few pages (because you have to manually add it to all the pages you want it on -- unlike the "Setup on Child Pages" functionality of the Page Defaults).
Hope that helps!
Thank you for quick and helpful replies. Currently i am going with latest stable version 5.4.2.2. so i`ll use Scrap book to accomplish this.
Global area option in 5.5 version sounds pretty good though and i am probably going to try it out.
Thank you for advices.
Global area option in 5.5 version sounds pretty good though and i am probably going to try it out.
Thank you for advices.
Sure, no problem... Global Areas are definitely something you have to try out...
If you're using Concrete5.5, you can use a new element called Global Areas, this will allow you to edit once and it will automatically change on all of them.
I can't offer any actual help with Scrapbooks because I've never used them, but I'm sure someone will help you with them soon.