Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] dru_random_image: Random image from image category
Is there a way to specify the alignment with this plugin? Thanks!
Offline
Offline
#33 2008-08-13 08:36:49
- fangonk
- Member
- Registered: 2007-07-12
- Posts: 44
Re: [plugin] [ORPHAN] dru_random_image: Random image from image category
I edited this plugin to display thumbs instead of full images but can anyone think of a way to link those thumbs to their full-size versions? I really want to avoid a situation where I have to individually link images to articles.
Offline
Re: [plugin] [ORPHAN] dru_random_image: Random image from image category
fangonk wrote:
a way to link those thumbs to their full-size versions? I really want to avoid a situation where I have to individually link images to articles.
Not sure what you mean by “individualy link images to articles”. Instead of using the Article Image field, Are you intending to just show a random image against each article and have it clickable? Two ways I can think of to do this (both involve my plugins, sorry) :
- smd_random_banner — which grew out of this plugin — can display thumbs with
thumb="1". You can also link the thumb to anywhere you like but the destination needs to be put into one of the image attributes (name, alt, or caption) so might be a little messy - smd_gallery can choose a single image from a category (using
limit="1") and can be made to choose a random image by usingsort="random". Again, you can display the thumbnail and have it automatically link to the full size either as a regular link, or as a popup, as a lightbox, a zoom, or anything you want
Do any of those meet your needs? I’m not sure this plugin can be used to link to images without some big mods.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline