[solved] template just made of global content blocks

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Donni
New Member
New Member
Posts: 8
Joined: Mon Mar 30, 2009 8:44 am

[solved] template just made of global content blocks

Post by Donni »

for the reuse i've structured my templates with the help of gbc's, the generated content is working at the frontend
unfortunally i am not able to edit pages with this template at the backend, because the inputboxes for editing the content are gone

if i create a new site with a normal template then i'll see these boxes to edit the content, but when i change the template the boxes disappear http://img190.imageshack.us/img190/2282/editboxesaregone.png

gbc: 1

Code: Select all

<__html>
<head>
</head>
gbc: 2

Code: Select all

</__body>
gbc: 3

Code: Select all

{content}
gbc: 4

Code: Select all

<__body>
</__html>
template:

Code: Select all

{process_pagedata}
{global_content name="1"}
{global_content name="2"}
{global_content name="3"}
{global_content name="4"}
i'm using CMSMS 1.66

any help appreciated
Last edited by Donni on Wed Oct 07, 2009 6:51 am, edited 1 time in total.
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Re: template just made of global content blocks

Post by Ziggywigged »

Global Content Block are edited through Content > Global Content Blocks. Not within the pages.

You can use multiple content tags: {content block="Second Content Block"} in the same template and this may be what you're lookng for. Then you will have the multiple content blocks with in your pages.
Take a penny, leave a penny.
Donni
New Member
New Member
Posts: 8
Joined: Mon Mar 30, 2009 8:44 am

Re: template just made of global content blocks

Post by Donni »

thank you for your quick reply but..
i dont want to edit the gbc, i want to create / edit pages based on this template
as you can see on the screenshot editboxes are gone there are no edit boxes for the content anymore
these will appear if i don't use this template (just choosing another one)

my example code for the gbc is just for reproducing the problem, because my gbc's have many more content
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: template just made of global content blocks

Post by jmcgin51 »

What ziggywigged is saying is that you will not see edit boxes in your page template, because your page template is composed solely of GCBs.  GCBs must be edited in the Content > GCB section of the Admin panel.

I don't understand exactly what you are trying to do, but I think Ziggywigged is steering you in the right direction.

Rewrite your template as:
{process_pagedata}






{content}
{content block="block2"}
{content block="block3"}
{content block="block4"}

Now you will see four separate editing windows when you go to edit any page that has this template.
Donni
New Member
New Member
Posts: 8
Joined: Mon Mar 30, 2009 8:44 am

Re: template just made of global content blocks

Post by Donni »

ok i'll try to explain what i want to do:
i've i'ld like to use the module "custom content" with like 5 templates (one for each group)
to avoid editing one by one if the layout changes i've have to edit just one gbc

this will affect to all templates which are using this gbc
one gbc is for the content to check if the user is allowed to view this content with the help of "frontend users"

You say if there is no {content} tag in the template then i'll not see these boxes to edit pages?
Then i've to move the content of gbc 3 directly into the template.

It would be useful (at least for me) if it would be enough that the {content} tag is in a gbc OR in the template.
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Re: template just made of global content blocks

Post by Ziggywigged »

Donni wrote: You say if there is no {content} tag in the template then i'll not see these boxes to edit pages?
Correct.
Take a penny, leave a penny.
Donni
New Member
New Member
Posts: 8
Joined: Mon Mar 30, 2009 8:44 am

Re: template just made of global content blocks

Post by Donni »

okay thank you
Post Reply

Return to “CMSMS Core”