can't get {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.
rbeemsterboer

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

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
slloyd
Forum Members
Forum Members
Posts: 195
Joined: Mon Apr 24, 2006 9:09 pm

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

Post by slloyd »

Mark,

What does the oneline='true' mean?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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
slloyd
Forum Members
Forum Members
Posts: 195
Joined: Mon Apr 24, 2006 9:09 pm

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

Post by slloyd »

Thanks, Mark. I'll check it out.
rbeemsterboer

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

Post 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?
slloyd
Forum Members
Forum Members
Posts: 195
Joined: Mon Apr 24, 2006 9:09 pm

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

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

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

Post by rbeemsterboer »

Hi,

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

all pages with a single {content} tag work okay
mahjong

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

Post 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 ?
Last edited by mahjong on Sun Jul 23, 2006 1:01 am, edited 1 time in total.
rbeemsterboer

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

Post 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
mahjong

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

Post by mahjong »

rbeemsterboer wrote:All things work fine, execpt adding 2 or more pages within one template
You cannot add pages into templates !
rbeemsterboer

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

Post 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)
mahjong

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

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

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

Post by mahjong »

Reproduce this template:
Image

Create this page:
Image

You'll get this output:
Image
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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'}
 
 






Locked

Return to “CMSMS Core”