• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RM 1.1 Custom Fields Display HTML Markup

MRaburn

Active member
#1
I cant seem to get this to work. I created a custom field. Chose TEXT and inserted HTML markup in the Value Display so it would display an image from the URL that I paste into the field.

I am wanting to create URLs and Image call with the custom fields, URL and Image both Hex like example below.

Using: <img src="{$valueUrl}"> or <img src="{$value}">

This will not work because Xen is replacing all the url structure with hex...

<a+href%3D"http%3A%2F%2Fws-na.amazon-adsystem.com%2Fwidgets%2Fq%3F_encoding%3DUTF8%26amp%3BASIN%3D0760336857%26amp%3BFormat%3D_SL160_%26amp%3BID%3DAsinImage%26amp%3BMarketPlace%3DUS%26amp%3BServiceVersion%3D20070822%26amp%3BWS%3D1%26amp%3Btag%3Dstangnet-20"+rel%3D"nofollow"+class%3D"externalLink"+target%3D"_blank">http%3A%2F%2Fws-na.amazon-adsystem.com%2Fwidgets%2Fq%3F_encoding%3DUTF8%26amp%3BASIN%3D0760336857%26amp%3BFormat%3D_SL160_%26amp%3BID%3DAsinImage%26amp%3BMarketPlace%3DUS%26amp%3BServiceVersion%3D20070822%26amp%3BWS%3D1%26amp%3Btag%3Dstangnet-20<%2Fa>

Any suggestions?

Thanks!
 
#2
It looks like {$value} gets converted into a link automatically if the value is a URL and {$valueURL} gets encoded so it can be used in a URL. I'm assuming that {$valueURL} is acting properly and {$value} is not. Why would {$value} just automatically be converted to a link if it's a URL? It should just be the value right?

Code:
http://www.google.com is the value in the field.

Value Display HTML: <a href="{$value}">Link</a>

Expected: <a href="http://www.google.com">Link</a>

Actual: <a href="&lt;a href=" http:="" www.google.com" rel="nofollow" class="externalLink" target="_blank">http://www.google.com</a>">Link</a>
 
Last edited:

MRaburn

Active member
#4
Then is it possible to use it the URL with markup by using $valueUrl. Currently its converting it with Hex.

In the custom fields options, there is a check value to make sure input was a URL. Would be nice to use that variable URL in markup for image calls, or href links.