Page 1 of 1

Re: Using Page Content Blocks as Global Content Blocks

Posted: Wed Jan 27, 2010 6:13 pm
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

Re: Using Page Content Blocks as Global Content Blocks

Posted: Wed Jan 27, 2010 6:58 pm
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

Re: Using Page Content Blocks as Global Content Blocks

Posted: Thu Jan 28, 2010 10:32 am
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!