[SOLVED] Questions for setting up site

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
hig
Forum Members
Forum Members
Posts: 11
Joined: Mon Jan 14, 2008 4:04 am

[SOLVED] Questions for setting up site

Post 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
Last edited by hig on Tue Jan 15, 2008 4:11 am, edited 1 time in total.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: Questions for setting up site

Post by hexdj »

You can use the following:

Code: Select all

{content block='block_name'}
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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Questions for setting up site

Post by Dr.CSS »

If you go to Extensions > Tags > content you will see the parameters it takes...
hig
Forum Members
Forum Members
Posts: 11
Joined: Mon Jan 14, 2008 4:04 am

Re: Questions for setting up site

Post by hig »

I knew it had to be easy. Thanks.

I still have to have the {content} selector first, correct?

Thanks again,
Keith
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: Questions for setting up site

Post by hexdj »

Yes, as I said this is the use of the tag:

Code: Select all

{content block='block_name'}
You just need to replace block_name to whatever you want yours to be called
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Questions for setting up site

Post 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...
hig
Forum Members
Forum Members
Posts: 11
Joined: Mon Jan 14, 2008 4:04 am

Re: Questions for setting up site

Post by hig »

Terrific. I am going to give it a go. So far....I am loving cmsmadesimple.

Thanks,
Keith
hig
Forum Members
Forum Members
Posts: 11
Joined: Mon Jan 14, 2008 4:04 am

Re: Questions for setting up site

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Questions for setting up site

Post by calguy1000 »

Additonal content blocks don't show in the preview.... save the page and see what happens.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
hig
Forum Members
Forum Members
Posts: 11
Joined: Mon Jan 14, 2008 4:04 am

Re: Questions for setting up site

Post 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?
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: Questions for setting up site

Post 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?  ???
hig
Forum Members
Forum Members
Posts: 11
Joined: Mon Jan 14, 2008 4:04 am

Re: Questions for setting up site

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [SOLVED] Questions for setting up site

Post 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....
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Developers Discussion”