sectionimage tag: default image?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
skypanther

sectionimage tag: default image?

Post by skypanther »

Is there a way to specify a default image that should be loaded if a section-specific image file isn't found? If not, what happens when new pages get added but a corresponding section image file isn't uploaded?

Thanks,
Tim
skypanther

Re: sectionimage tag: default image?

Post by skypanther »

I needed the ability to set a default image for pages. For example, if a new page is created but an image isn't uploaded to match, I still wanted some sort of image to show. So, I've modified the sectionimage tag and uploaded a patch. See http://dev.cmsmadesimple.org/tracker/in ... 6&atid=259 to download.

Comments, suggestions, bug reports welcome...

Tim
cyberman

Re: sectionimage tag: default image?

Post by cyberman »

Great work - thanks for that.
lmw
Forum Members
Forum Members
Posts: 16
Joined: Wed Jan 17, 2007 7:33 pm

Re: sectionimage tag: default image?

Post by lmw »

I tried to use this patched version of sectionimage, but it doesn,t seem to work (I'm using CMSMS 1.2.39.  It doesn't generate anything to page source ???

What is wrong I'm not good at php, so if you have any suggestions what's wrong. Original version without patch works fine .

regards,
mika w.
skypanther

Re: sectionimage tag: default image?

Post by skypanther »

Mika,

Sorry that the patched tag isn't working, though I'm glad the original version is working. The site for which I created the patched tag is running an older version of CMSMS. So, I hadn't yet discovered that there were issues. I won't have time to do a CMSMS upgrade for a week or so. Maybe if you can help me with sufficient info, I can figure it out just from looking at the code in the tag.

How does it fail? Only when you're relying on the default image? There's no output at all when you view the page source? Or, is it just outputting the wrong HTML? Can you post the tag's output and the template code you're using? (Not the whole template, just the part with the sectionimage tag.)

Tim
Locked

Return to “Modules/Add-Ons”