Page 1 of 2

can't get {content block=''} to work

Posted: Sat Jul 15, 2006 12:50 am
by rbeemsterboer
Hi,

i recently installed CMS Made Simple 0.13 "Canary" but i can't use {content block=''} to work.
I have never used this before,but i have read that this is possible..

i want 2 pages to fit in one template if possible

thanks in advance,

Rick
Amsterdam

Re: can't get {content block=''} to work

Posted: Sat Jul 15, 2006 3:11 am
by Dr.CSS
{content block='block1'}

is how i use it or block2, block3, etc....

actually more like this for me...

{content block='block1title' oneline='true'}
        {content block='block1'}

this gives me a littile oneline content edit box, when i edit the page, just above the other big content edit box, for titles and such...

Re: can't get {content block=''} to work

Posted: Sat Jul 15, 2006 2:57 pm
by slloyd
Mark,

What does the oneline='true' mean?

Re: can't get {content block=''} to work

Posted: Sat Jul 15, 2006 3:15 pm
by Dr.CSS
when you post a reply you see that little box up there /\ that you put the subject in... same thing...
it makes a one line box.... like i say i use it to put the title of the div in it...
Ted told me about it but if you goto Tags it is in the Help for Content, which i never looked at...
one of those things i overlooked...  :D DUH

Re: can't get {content block=''} to work

Posted: Sat Jul 15, 2006 4:19 pm
by slloyd
Thanks, Mark. I'll check it out.

Re: can't get {content block=''} to work

Posted: Sat Jul 22, 2006 9:09 pm
by rbeemsterboer
I've tried 2 sites where is use the CMS but still no result

{content} works fine, and if i add {content block='fitness'} further in the template it does nothing!

What can i do to debug and find a solution?

Re: can't get {content block=''} to work

Posted: Sat Jul 22, 2006 11:52 pm
by slloyd
Did you try adding your content to the first content block, then clicking publish and going back into it again. I think the first block only shows on the first enter. Once you publish, the other block will appear for you to add content.

Re: can't get {content block=''} to work

Posted: Sat Jul 22, 2006 11:55 pm
by rbeemsterboer
Hi,

Thank for you response,but it still doesnt work :-\

all pages with a single {content} tag work okay

Re: can't get {content block=''} to work

Posted: Sun Jul 23, 2006 12:56 am
by mahjong
Maybe, you don't use {content block=''} in the right context.

1) The {content block='somename'} tag must be inserted in a template (Layout->Templates) and saved (for instance, under the name 'test1')
2) A page must be created (Content->Pages->Add New Content) with Content Type set to 'Content' and Template set to 'test1'. Don't forget to press the Submit button.
3) An empty textarea named 'somename' will appear. You must filled it with some content.

Are those the steps you've used to create a {content block=''} ?

Also, check in Extensions->Tags->Content->About. Are you using Version: 1.1 ?

Re: can't get {content block=''} to work

Posted: Sun Jul 23, 2006 1:00 am
by rbeemsterboer
Correct!

This is the website i'm building right now: www.zomerpop.nl

All things work fine, execpt adding 2 or more pages within one template

Re: can't get {content block=''} to work

Posted: Sun Jul 23, 2006 1:04 am
by mahjong
rbeemsterboer wrote:All things work fine, execpt adding 2 or more pages within one template
You cannot add pages into templates !

Re: can't get {content block=''} to work

Posted: Sun Jul 23, 2006 1:18 am
by rbeemsterboer
i have got several templates

with {content} tags that point too pages..

{content block="home") or {content block='home') have never worked for me
primary i use {content} and once in a while I would like to use another block. but that doenst work, i have tried many times on 2 different servers. i have deployed cms made simple 3 times now, on 2 of them this block atribute doesnt work

maybe i can build it thru a smart or personal defined tag or so..
because it seems like a CMS bug to me. (in my environnements atleast)

Re: can't get {content block=''} to work

Posted: Sun Jul 23, 2006 1:27 am
by mahjong
rbeemsterboer wrote: i have got several templates with {content} tags that point to pages...
No, you simply don't understand what template and content blocks are.

You are mistaken. You think {content block='name_of_a_page'}. But this is completely false. Content blocks do NOT point to pages!

Each page have one or more content blocks and is linked to a single template. A template is a model of an empty page, not a container of multiple pages.

Re: can't get {content block=''} to work

Posted: Sun Jul 23, 2006 1:58 am
by mahjong
Reproduce this template:
Image

Create this page:
Image

You'll get this output:
Image

Re: can't get {content block=''} to work

Posted: Sun Jul 23, 2006 2:00 am
by Dr.CSS
This is the default Bulletmenu Vert 2 col... you will notice the 2 diff content blocks one is just {content} the other is {content block='block1'}.

If you want more content boxes you can continue to put these tags in, but you need to name each one something diff. or you will have only one content edit box and that content will be repeated.

These are the ones I am talking about, the template just tells how many of what is going to show up on the page, and as the dumb old joke goes the CSS is like the wife telling it where to go what clothes to wear and how to look.

My apologies to all the wives out there.







CMS Made Simple Demo - {title}

{metadata}
{stylesheet}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}

{global_content name='JavaScript for IE page width'}







   
   
      Skip to navigation
      Skip to content
   
   

   


 
 
          {cms_selflink dir="start"}
 
 
 

 
 
 
        {breadcrumbs starttext='You are here' root='Home' delimiter='»'}
 
 
 


 
 

     
     
        Navigation
        {cms_module module='menumanager' collapse='1'}
     
     
     


     
     
        {title}
        {content}


       


^ Top

       
            {cms_selflink dir="previous"}

            {cms_selflink dir="next"}
       


     
     
 


     
     
          {content block='block1'}
     
     


 
 


 
 
      {global_content name='footer'}