Page 1 of 1

Problems getting new {content block=''} to work

Posted: Mon Jan 23, 2006 10:54 am
by docomo
Hi,

I am new to cmsms, but i must say after trying quite a few cms's (joomla, drupal, microsoft mcms, vignette) I am very impressed with cmsms - it so flexible, easy to use, and has alot of innovations!

I'm having trouble adding a new placeholder to a template. I have tried adding a {content block="PageDescription"} element to my page, however in 'Add new content' or 'Edit content' modes a placeholder doesn't show up in my page (for me too enter content). Perhaps i have not done some extra configuration?

Here is an example of the code i added to my template definition:


    {title}
   
    {content}

   
    {content block="PageDescription"}




I am using version '0.11.2'. Any assistance you could provide me would be appreciated!

Re: Problems getting new {content block=''} to work

Posted: Mon Jan 23, 2006 11:12 am
by Ted
I think this is related to a bug with the handling of " in FCKeditor.  Try using a ' instead in your block definition and you should get better results.

Thanks for the kind words.

Re: Problems getting new {content block=''} to work

Posted: Mon Jan 23, 2006 12:37 pm
by docomo
Thanks wishy, i tried your suggestions and it's now working .... with mixed results ....

When i 'add new content' the 'PageDescription' placeholder area doesn't appear, however when i 'edit content' it does appear.

Some more information about my current cmsms implementation which may assist you:
- The template i added the 'PageDescription' placeholder too, already had existing pages created using it (before the new 'PageDescription' placeholder was added).
- Only 2 of the new templates have the 'PageDescription' placeholder. However the other 7 templates are currently disabled (not-active).
- I have clicked the 'Site Admin > Global Settings > Clear Cache' after each template change.

Let us know if you have any more suggestions.

Re: Problems getting new {content block=''} to work

Posted: Mon Jan 23, 2006 6:15 pm
by westis
docomo wrote: Thanks wishy, i tried your suggestions and it's now working .... with mixed results ....

When i 'add new content' the 'PageDescription' placeholder area doesn't appear, however when i 'edit content' it does appear.
Well, when you add new content there is no way to know what template that you are going to use for that page and if that template includes content blocks. So it's only once you have saved the content/page once, with a template that includes a content block that next time you edit the content block is there.

Re: Problems getting new {content block=''} to work

Posted: Mon Jan 23, 2006 10:54 pm
by docomo
Thanks Westis, that makes sense.

Another newbie question. If all of my templates have the same 'content blocks' will the template load with all the blocks (As editable text areas) when i 'add new content'?

It's not a problem if it doesn't behave this way - just thought it would be a neat feature.

Re: Problems getting new {content block=''} to work

Posted: Tue Jan 24, 2006 12:49 am
by docomo
Thanks for your help Patricia. I will investigate it further.