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
sectionimage tag: default image?
Re: sectionimage tag: default image?
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
Comments, suggestions, bug reports welcome...
Tim
Re: sectionimage tag: default image?
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.

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.
Re: sectionimage tag: default image?
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
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