Page 1 of 1
[SOLVED] Questions for setting up site
Posted: Mon Jan 14, 2008 4:13 am
by hig
I am a newbie to cms and am wondering how to set up my site. I have loaded cmsmadesimple and have my template working. My question is:
I will have multiple areas on a page that need to be editable and multiple images. How do I set up these areas in my html to be able to see them and edit them in cms?
This may be a very simple question or not. I am clueless. I used the {content} tag in an area and it works fine. But like I said, I have multiple areas.
The page can be found at khcreativemedia.com/cms.
The area under the left menu is set up as the content area. I need to be able to change the area under "current exhibition" including the text and image. I would like the image area to be separate from the text area in the admin area.
Thank you,
Keith
Re: Questions for setting up site
Posted: Mon Jan 14, 2008 5:45 am
by hexdj
You can use the following:
Throw that in your template as many times as you like and when you edit your pages you will see multiple WYSIWIG blocks which you can then fill out. For example, I have a site that uses {content block='sidebar'} and {content block='pictures'}
Hope this helps.
Re: Questions for setting up site
Posted: Mon Jan 14, 2008 5:49 am
by Dr.CSS
If you go to Extensions > Tags > content you will see the parameters it takes...
Re: Questions for setting up site
Posted: Mon Jan 14, 2008 8:26 pm
by hig
I knew it had to be easy. Thanks.
I still have to have the {content} selector first, correct?
Thanks again,
Keith
Re: Questions for setting up site
Posted: Mon Jan 14, 2008 8:55 pm
by hexdj
Yes, as I said this is the use of the tag:
You just need to replace block_name to whatever you want yours to be called
Re: Questions for setting up site
Posted: Mon Jan 14, 2008 10:08 pm
by Dr.CSS
The {content} tag is most often used where the main Content will be, if it is removed from a template it will still show when editing/adding a page, but if you do and then add text to it it won't show on the page...
Any name you use for the secondary content blocks will show with uppercase first letter...
Re: Questions for setting up site
Posted: Mon Jan 14, 2008 11:15 pm
by hig
Terrific. I am going to give it a go. So far....I am loving cmsmadesimple.
Thanks,
Keith
Re: Questions for setting up site
Posted: Tue Jan 15, 2008 1:05 am
by hig
O.K., so I know that this will click one day and everything will make sense. Until then, I have to lean on you guys. So, sorry about all the questions.
I have added additional blocks in my template and I see them in the content / pages area. But when I add content to my second block, I see nothing in the preview. And when I preview site, I am getting text in the content area that I am not sure where it is coming from. It looks like content from one of the templates.
Could someone please assist?
Thanks again,
Keith
Re: Questions for setting up site
Posted: Tue Jan 15, 2008 1:07 am
by calguy1000
Additonal content blocks don't show in the preview.... save the page and see what happens.
Re: Questions for setting up site
Posted: Tue Jan 15, 2008 3:20 am
by hig
Got it. I deleted and reloaded and everything is working. I forgot to delete the install directory and I believe this was causing problems.
Only question left is:
I can't leave content blank because it is requiring info. I use a space and it works. Can I just leave it blank?
Re: Questions for setting up site
Posted: Tue Jan 15, 2008 3:32 am
by hexdj
You can leave it blank, but then again what's the point of having a content block if it's gonna be empty?

Re: Questions for setting up site
Posted: Tue Jan 15, 2008 4:11 am
by hig
Well I thought I had to have a {content} selector if I was going to have multiple content areas. I found I can delete {content} out of my template and solve the problem. The site I am working on has many areas that need content, so I didn't want the one generic one. I want to be able to make specific blocks.
So not having a {content} selector solved my problem.
Thanks
Keith
Re: [SOLVED] Questions for setting up site
Posted: Tue Jan 15, 2008 5:42 am
by calguy1000
Put it back in
if you don't have a generic (default) content block somewhere in your template, many modules won't be able to output their code.
Most module actions will replace {content} with their results by default....