Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Creating a sidebar with image ads
Have a form which currently contains a list of links like so:
<a href=“http://www.example.com” target=”_blank”><img src=“http://example.com/images/ads/myimage.gif” width=“125” height=“170” border=“0”></a>
Trying to think of a way that I can automatise the process of displaying ads (all of which are images, most of which should open in a new window) using a plugin or a TXP tag.
I have created a new image category called “sidebar-image-ads” and place all images in that category. Trouble is, I have a block figuring out a great and simple way to pull them all into my form, to be outputted in the page…!
Offline
Re: Creating a sidebar with image ads
havent tried this plugin but maybe something like this?
Last edited by iblastoff (2007-07-07 15:00:15)
Offline
Re: Creating a sidebar with image ads
Yes tried that plugin – smd_random_banner – but it outputs only a random image, not a sequence of images from a category. I was thinking of wet_for_each_image, but not sure its right for this, as I need a series of external links for the banners.
Offline
Re: Creating a sidebar with image ads
Hi Lamda,
I think you can use that and get what you want. I have done something similar. What I did was, I put this in my form :
<txp:smd_random_banner category=“advertisement” link_in=“caption” referer=”“ limit=“6” imgclass=“randomBanner”/>
And in my main css I added this:
.randomBanner {
margin: 4px 2px 4px 2px;
}
Once my site is up I can probably show you an example. But in summary, you can use this plugin. Its very good.
Offline
Pages: 1