Page 1 of 1

Help: I still dont get the multiple content block

Posted: Sat Apr 22, 2006 2:05 am
by Chuky
Hello everyone.
I know that someone talked about using {content block="column1"} {content block="column2"} for placing more than one content block on a page. But the problem is that its still not working for me. Could anyone be kind enough to explain it very well for me? I placed two {content} tags on the default template but didnt work, Also tried the above content block ="colunm1 etc. What am i not getting? I have content pages created alread that i want to display on the homepage of the site(still working in localhost) . Where exactly are the content tags to be placed? When i go to content- pages- edit pages, i dont see the option of editing two blocks like i read in this forum. Please , help.

Thanks

Re: Help: I still dont get the multiple content block

Posted: Sat Apr 22, 2006 2:43 am
by Dr.CSS
put this in your template somewhere,, prefferably in a div,

{content block='content2'}

more blocks higher number, then go to pages and open one that uses that template, you should now see 2 or more 'content' boxes to edit/fill

  mark

Re: Help: I still dont get the multiple content block

Posted: Sat Apr 22, 2006 5:29 pm
by kodibear
Hi Hate to break in on a thread but I am having the same issue.
I did what Mark suggested and have two edit boxes.
But when I put something in the second box (content2) it is not showing on the page.

My code is

         
         {content block='content2'}
     
     

Thanks for any help

Re: Help: I still dont get the multiple content block

Posted: Sat Apr 22, 2006 7:38 pm
by Dr.CSS
of course you have a page using that template  ;)
when you edit the page and use preview the second content sometimes wont show,, no idea why.
do you have any CSS style for that 'content2' box?
i have one with 5 or 6 boxes.

    mark

Re: Help: I still dont get the multiple content block

Posted: Sat Apr 22, 2006 11:47 pm
by Chuky
Thanks Maksbud. Your tip worked . Its showing now. Thanks a lot

Re: Help: I still dont get the multiple content block

Posted: Mon Jun 19, 2006 12:12 pm
by ganeshXL
OK, I was first searching this forum and found a similar thread about my problem, so I thought I'd post a reply here instead of writing a new thread...

I can very well create several content blocks, and they do show up fine:

{content block='topNav'}
{content block='leftNav'}
{content block='mainContent'}


However, and this is the confusing part: I get a 4th content block in the WYSIWYG page!
It's not doing anything. It just sits at the top. If I enter some text there, it's not displayed anywhere on the published page.
Why is that? If I define three blocks, why am I getting four blocks instead?
Is that "expected behaviour" or some bug?

And yes, I did the global "clear cache" thing too, I still get that.

Thanks for help + tips.

Re: Help: I still dont get the multiple content block

Posted: Mon Jun 19, 2006 12:31 pm
by Dr.CSS
got a screen shot and template code...
what does it say for the name of that block...
are you using default template or one you made...
Got Link?
wysiwyg? do you mean...  Content » Pages » Edit Page: yourpage

Re: Help: I still dont get the multiple content block

Posted: Mon Jun 19, 2006 12:40 pm
by ganeshXL
mark wrote: got a screen shot and template code...
what does it say for the name of that block...
are you using default template or one you made...
Got Link?
wysiwyg? do you mean...  Content » Pages » Edit Page: yourpage

Thanks for the quick reply.

Yes, under Content > Pages -> Edit Page.
The FIRST edit-box is "anonymous", i.e. it's not titled with any of my content block names I assigned in my template.
Then the other 3 boxes show up, that's fine.
This happens both when I want to create a new page, as well as when I want to edit an existing page.

I'm using a modified template. A very simple structure, and simple HTML/CSS too.

The only content blocks are the ones I listed above, in my first post.
I'm using the latest CMSMS version, "Canary".

It's not a major problem really, just slightly confusing (and especially when the client will eventually ask "but what is this box doing here?" later on...)

Re: Help: I still dont get the multiple content block

Posted: Mon Jun 19, 2006 1:01 pm
by Greg
I found that one of the blocks needs to be created with {content} only as it appears anyway. That is the anonymous block.


Try
content block='topNav'}
{content block='leftNav'}
{content}

Re: Help: I still dont get the multiple content block

Posted: Mon Jun 19, 2006 1:04 pm
by Dr.CSS
if you have taken out the default {content}
try changing this {content block='mainContent'}  to  {content}
i have just changed my default template in a clean install, no changes to anything else, with your code {content block='mainContent'} and no {content} and the top box still has all the default words in it but it doesn't show on the published page, if you look about one line or so above that box just below the  Template:  dropdown you should see  Content:
mine  http://mit-computers.com/index.php/content_types
the default words are still in the Content » Pages » Edit Page: yourpage  Content: box  but they don't show...
this is a default setting that is somewhere in a .php file... i would have to hunt this down, no time at the moment... must goto day job make money...  ;)

Re: Help: I still dont get the multiple content block

Posted: Mon Jun 19, 2006 8:31 pm
by ganeshXL
Alright, that did it!

CMSMS wants at least one content block simply named {content}, whether you define it in the template or not...

Thanks a lot for your help.  :D