Same block on all pages, how to do that ?

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
quentin2

Same block on all pages, how to do that ?

Post by quentin2 »

Hello,

I'm trying to design  a few pages with three content block on them.
Only Once content changes on all pages and the other two are the same on all pages.

When i want to update the fixed two content, do i have to go to all pages and change the content ? Or is there a way to update the content just once and it wil be reflected on all pages ?

Thanks ;)
quentin2

Re: Same block on all pages, how to do that ?

Post by quentin2 »

Thanks a lot Patricia, that was very quick ! :D
mannivw

Re: Same block on all pages, how to do that ?

Post by mannivw »

Hi Patricia

In my Global Content Blocks I have this and it's called pageload:


And in one of my pages I have {global_content name='pageload'}
But when I view the page I see this:

Instead of the contents of pageload.php

What am I doing wrong? Do I have to enable something?
Thanks
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Same block on all pages, how to do that ?

Post by calguy1000 »

php stuff like this should go into a user defined tag, not an html blob.
but you could try putting {literal} and {/literal} at the top and bottom of your blob/global content block
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
mannivw

Re: Same block on all pages, how to do that ?

Post by mannivw »

calguy1000
Thanks for the quick reply.
I put this into my global content block
{literal}

{/literal}
and it still just shows what's between the literal's on the page.
In case it wasn't obvious today is my first attempt at using CMS made simple

Thanks
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Same block on all pages, how to do that ?

Post by calguy1000 »

then the best way would be to remove your global content block and create a user defined tag with the include statement on it.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Tips and Tricks”