Using Page Content Blocks as Global Content Blocks

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
Tino
Forum Members
Forum Members
Posts: 44
Joined: Mon Apr 28, 2008 7:58 pm

Re: Using Page Content Blocks as Global Content Blocks

Post by Tino »

Hi there,

This looks like exactly what I need but I'm completely unfamiliar with this level of CMSMS development so could do with some help :-[

Basically, I have a sidebar that contains, in the top half, the news summary from the news module. Below that, I want the website editors to be able to edit what appears in the lower half of the sidebar.

I tried adding a content block ({content block="Sidebar"}) to that section of the sidebar. When I went to edit one of the pages, I had a 'Sidebar' text area and that worked fine. However what I wanted was for that content block to then be repeated on all the pages that use the sidebar, without manually going through them all.

Which is what brought me here.

I've created the User Defined Tag and entered the piece of code into the sidebar. It shows no errors, but now I don't know how I add content to that section of the sidebar as there isn't a text area when I go to edit a page now.

Can anyone help me?

Many thanks,
tino
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Using Page Content Blocks as Global Content Blocks

Post by RonnyK »

I dont understand the issue to begin with....

GCBs can have a wysiwyg, that is what you set in GlobalSettings and/or UserPreferences...
UDTs CANT have wysiwyg, but that is for code, where GCBs are for (as the word says) Global Content....

GCBs can then be called either in template, or in content of a page.

Regular pages can be used as well, as with CGSimpleSmarty you can pull the content of a block of a page, and use that elsewhere.

So both are possible, and both dont require regular coding.

Ronny
Tino
Forum Members
Forum Members
Posts: 44
Joined: Mon Apr 28, 2008 7:58 pm

Re: Using Page Content Blocks as Global Content Blocks

Post by Tino »

Ok so now I feel silly :-[

I was previously under the impression that GCBs could only be created as .php files, I didn't realise there was a WYSIWYG side to them as well.

Many thanks for pointing that out Ronny, my problem is now solved!
Post Reply

Return to “Tips and Tricks”