Replacing Field text with an Image - please help!!!

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

Moderator: Spunkmeyer

Replacing Field text with an Image - please help!!!

Postby neon_87 » Sat Jul 01, 2006 10:48 am

Hi guys,

this is my first post. I'm new to coranto - and i have to say its very good so far.
I'm trying to use coranto as a download section for my site - and i want to replace the hyperlink of the download with an image of a disc - like so: http://twixn.com/neon/twixnsoft/images/download.gif

At current, I have created a new field - CustomField_Download.
Users can post the URL of the download when they post news - but i want the hyperlink to be replaced by the image. I tried

Code: Select all
<a href="<Field: CustomField_Download>"><img src="images/download.gif"</a>


but it didnt work :(

Does anyone have any ideas on how to make this work? help is greatly appreciated.

Thanks.
.:NeOn:.
neon_87
 
Posts: 3
Joined: Fri Jun 30, 2006 4:22 am

Re: Replacing Field text with an Image - please help!!!

Postby SrNupsen » Sat Jul 01, 2006 12:41 pm

neon_87 wrote:
Code: Select all
<a href="<Field: CustomField_Download>"><img src="images/download.gif"</a>



Simple HTML magic:

< a href="<Field: CustomField_Download>"><img src="images/download.gif"></a>

:wink:

Good luck, and ask again if you run into more trouble!

SrNupsen
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby neon_87 » Sun Jul 02, 2006 7:41 am

thanks, i fixed that, but now its coming up with another problem.
The Field seems to be automatically inputting the links, and code - so the page source looks like this:

Code: Select all
<a href="<a href="http://www.twixn.com/downloads/SubliminalEngine.zip">http://www.twixn.com/downloads/SubliminalEngine.zip</a>"><img src="images/download.gif"></a>


My new code in the style is:


Code: Select all
<a href="<Field: CustomField_Download>"><img src="images/download.gif"></a>


Now, i think that looks right? I also tried disabling parse links and display html in fields for the CustomField_Download field - but no luck.

Is there any way to tell the CustomField_Download field NOT to create the html code for the link?

cheers
.:NeOn:.
neon_87
 
Posts: 3
Joined: Fri Jun 30, 2006 4:22 am

Postby Dale Ray » Sun Jul 02, 2006 3:17 pm

There are TWO places to change this setting.

Administration => Change Settings => Automatically Link URLs? (under advanced settings) This is a GLOBAL setting

You can also change the setting on a per field basis at:

Administration => Edit News Fields => Chose EDIT under the field you want to edit => Parse Links?

Make sure both are off (set to NO) and test again.

Please post if this solves your problem.
Dale Ray
User avatar
Dale Ray
 
Posts: 1001
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby neon_87 » Wed Jul 05, 2006 2:28 am

thanks :) that worked.
.:NeOn:.
neon_87
 
Posts: 3
Joined: Fri Jun 30, 2006 4:22 am


Return to Customization

Who is online

Users browsing this forum: No registered users and 1 guest

cron