Page 1 of 1
Global content blocks & images
Posted: Thu Apr 02, 2009 11:19 am
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!
Re: Global content blocks & images
Posted: Thu Apr 02, 2009 2:42 pm
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.
Re: Global content blocks & images
Posted: Thu Apr 02, 2009 3:04 pm
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?
Re: Global content blocks & images
Posted: Thu Apr 02, 2009 3:27 pm
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.