Welcome, Guest. Please login or register.
Did you miss your activation email?
09 May 2008, 19:43

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: sectionimage tag: default image?  (Read 377 times)
0 Members and 1 Guest are viewing this topic.
skypanther
Forum Member
*

Karma: 6
Offline Offline

Posts: 125

Location: Rochester, NY



WWW
« on: 08 Feb 2007, 08:18 »

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
Logged

spBackup - PHP-based web site backup tool for files and MySQL databases
skypanther
Forum Member
*

Karma: 6
Offline Offline

Posts: 125

Location: Rochester, NY



WWW
« Reply #1 on: 02 Mar 2007, 14:54 »

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/index.php?group_id=46&atid=259 to download.

Comments, suggestions, bug reports welcome...

Tim
Logged

spBackup - PHP-based web site backup tool for files and MySQL databases
cyberman
Support Team
Dev Team Member
Power Poster
*****

Karma: 139
Offline Offline

Posts: 6055

Location: Dohna / Germany


Reality.sys is corrupt. Reboot universe (Y/N)?


WWW
« Reply #2 on: 02 Mar 2007, 15:27 »

Great work - thanks for that.
Logged

Für deutschsprachige Anwender / for german speaking users only
http://www.cmsmadesimple.de/ - die deutschsprachige Seite für CMSms
http://demo.cmsmadesimple.de/ - die Informationen der CMSms-Musterinstallation in deutsch
http://wiki.cmsmadesimple.org/index.php/Main_Page/de - deutschsprachiges CMSms-Wiki
http://dev.cmsmadesimple.org/projects/german/ - deutsche Sprachdateien für CMSms
lmw
Forum Member
*

Karma: 0
Offline Offline

Posts: 4


« Reply #3 on: 27 Mar 2008, 17:46 »



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 Huh

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.
Logged
skypanther
Forum Member
*

Karma: 6
Offline Offline

Posts: 125

Location: Rochester, NY



WWW
« Reply #4 on: 28 Mar 2008, 07:20 »

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
Logged

spBackup - PHP-based web site backup tool for files and MySQL databases
Pages: [1]
Print
Jump to: