Global content blocks & images

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
yesfan
New Member
New Member
Posts: 9
Joined: Sun Dec 07, 2008 10:22 am

Global content blocks & images

Post by yesfan »

I have created a global content block for "special offer" and "featured item" content which I need to display on each page.

I have added text to the content block which displays ok on each page, what code would I need to place an image there too?

The global content block is not ideal for this job as it has to be manually edited each time it changes, are there any modules available that could do this job in place of the global content block.  Creating modules is a bit beyond me at the moment, noob!
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Global content blocks & images

Post by tyman00 »

You need to tell us a little more about these "items" we don't know how you setup your site especially since we haven't seen a link.

Placing an image in the global content block is as simple as using the tag.

There are a few modules that might fit the bill, but we need to know more about your site.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
yesfan
New Member
New Member
Posts: 9
Joined: Sun Dec 07, 2008 10:22 am

Re: Global content blocks & images

Post by yesfan »

Heres the site (still in deep development stage)

http://test.yesfan.eu/

The site will be updated by someone else eventually so I wanted to make the Featured Product and Special Offer sections as easy to update as the news section, so the only real answer would probably be modules.

I have managed to get images into the global content with and {content_image}, the current Featured Product image is entered in this way but the updating process is a little more complicated for the novice user than something like the news module.  These types of modules would normally be included as part of a shop type script but I was hoping they might be available individually.  Alternatively, could I create and use other instances of {news} on the same page and adapt those?
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Global content blocks & images

Post by tyman00 »

It seems like a really extensive solution for just a couple small content blocks... but you can look at the Products module and create a custom field that will allow you to "select" which items you want to be featured. Then you can modify your summary template to just show one or two items.

In the future if you decided to list numerous products on the site you could use products for this.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Post Reply

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