Place default image in placeholder if none is present

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

Place default image in placeholder if none is present

Postby Esstee » Thu Jun 02, 2005 2:11 pm

I have a very specific main news layout where images must be included
in the news elsewise the placeholders are left empy.

Is there a way to make it so if the user does not upload and image there
would be a a default image instead?

also... what if the image field was left blank is there a way to notify them
that they need to place one, or choose a default one from a drop down
or something.

I don't know if this is a tall order or not.
User avatar
Esstee
 
Posts: 320
Joined: Thu Nov 25, 2004 4:13 pm
Location: Deep in some project

Postby kriko » Thu Jun 02, 2005 2:41 pm

Didn't I already answer this question? http://coranto.org/forum/viewtopic.php?t=8177

Use:
Code: Select all
<If: Field: CustomField_IMAGEFIELD><img src="<FilePath: CustomField_IMAGEFIELD>"><If: Else><img src="no_image.jpg"></If>
Kristjan aka. kriko
now a wireless expert
User avatar
kriko
 
Posts: 3328
Joined: Sat Feb 24, 2007 8:13 pm

Postby Esstee » Thu Jun 02, 2005 2:59 pm

Right you are!

My appologies on that, there has been so much stuff going on these past few
its hard to keep track.

thx for the response.
User avatar
Esstee
 
Posts: 320
Joined: Thu Nov 25, 2004 4:13 pm
Location: Deep in some project

Postby Parahead » Thu Jun 02, 2005 6:57 pm

Esstee wrote:My appologies on that, there has been so much stuff going on these past few its hard to keep track.
And *you* think it is hard to keep track? I am just glad not all users spread questions around like you do... ;-)
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby kriko » Thu Jun 02, 2005 8:11 pm

Parahead wrote:
Esstee wrote:My appologies on that, there has been so much stuff going on these past few its hard to keep track.
And *you* think it is hard to keep track? I am just glad not all users spread questions around like you do... ;-)

Yeah, same here. :D
Kristjan aka. kriko
now a wireless expert
User avatar
kriko
 
Posts: 3328
Joined: Sat Feb 24, 2007 8:13 pm


Return to Customization

Who is online

Users browsing this forum: No registered users and 1 guest

cron