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

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
docomo
Forum Members
Forum Members
Posts: 44
Joined: Mon Jan 23, 2006 10:39 am

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

Post 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!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

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

Post 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.
docomo
Forum Members
Forum Members
Posts: 44
Joined: Mon Jan 23, 2006 10:39 am

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

Post 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.
westis

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

Post 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.
docomo
Forum Members
Forum Members
Posts: 44
Joined: Mon Jan 23, 2006 10:39 am

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

Post 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.
docomo
Forum Members
Forum Members
Posts: 44
Joined: Mon Jan 23, 2006 10:39 am

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

Post by docomo »

Thanks for your help Patricia. I will investigate it further.
Post Reply

Return to “CMSMS Core”