Page 1 of 1

[solved] template just made of global content blocks

Posted: Tue Oct 06, 2009 1:36 pm
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

Re: template just made of global content blocks

Posted: Tue Oct 06, 2009 1:41 pm
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.

Re: template just made of global content blocks

Posted: Tue Oct 06, 2009 1:54 pm
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

Re: template just made of global content blocks

Posted: Tue Oct 06, 2009 2:16 pm
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.

Re: template just made of global content blocks

Posted: Tue Oct 06, 2009 3:28 pm
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.

Re: template just made of global content blocks

Posted: Tue Oct 06, 2009 3:30 pm
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.

Re: template just made of global content blocks

Posted: Wed Oct 07, 2009 6:50 am
by Donni
okay thank you