[SOLVED] Different pictures in sidebar on pages

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
qwalk
Forum Members
Forum Members
Posts: 55
Joined: Mon Sep 13, 2010 9:27 am

[SOLVED] Different pictures in sidebar on pages

Post by qwalk »

Hi,

How come it isn't possible to have 2 x content editing areas on each page?

I want to display some pictures in my sidebar, but i dont want to make Global Content Blocks, cause I don't want to make 100 different templates.

I have this:

#main
#main .content - this is here all my text goes in, and this is here in the HTML the {content} is
#main .sidebar - this is here i want pictures, but different pictures for each page

How should i fix this? Isn't it possible to get 2 x {content} areas when you click on a page to edit it? The first one for the text in {content} and another one for a {sidebar}?

The only other way I can figure out to solve this issue, is to make a template for each page, and in each template put in a Global Content Block with the pictures i want to display. But this isn't really handy since I need to create a new template and global content block every time I want to create a new site.

Please help me out, I'm on a deadline and I really need your help!

Thanks in advance,
Qwalk
Last edited by qwalk on Tue Nov 02, 2010 11:46 am, edited 1 time in total.
uniqu3

Re: Different pictures in sidebar on pages

Post by uniqu3 »

Never say something isn't possible  :)

You can enable second content block by {content block='sidebar' label='Sidebar Content'} for example which would go in your HERE
If you need it more flexible you could use some smarty logic to enable/disable these blocks or make use of AdvancedContent module http://dev.cmsmadesimple.org/projects/content2 where you are able to add for example dropdown for Global Content Blocks, this way you could also select specific Global Content Blocks per page.
qwalk
Forum Members
Forum Members
Posts: 55
Joined: Mon Sep 13, 2010 9:27 am

Re: Different pictures in sidebar on pages

Post by qwalk »

uniqu3 wrote: Never say something isn't possible  :)

You can enable second content block by {content block='sidebar' label='Sidebar Content'} for example which would go in your HERE
If you need it more flexible you could use some smarty logic to enable/disable these blocks or make use of AdvancedContent module http://dev.cmsmadesimple.org/projects/content2 where you are able to add for example dropdown for Global Content Blocks, this way you could also select specific Global Content Blocks per page.
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [SOLVED] Different pictures in sidebar on pages

Post by Dr.CSS »

@qwalk

Reading the default content would have helped you...

http://multiintech.com/defaultcontent/i ... tent_types
Post Reply

Return to “Layout and Design (CSS & HTML)”