Thanks Ganesh, ill try’em.
@ Eol
the code have some problem,
[+comment.custom.web:isnot=``:then=`<a href="http://[+comment.custom.web:nohttp+]" target="_blank"><img src="[(base_url)]manager/media/style/MODx/images/icons/globe.gif" width="16" height="16" alt="Web site" title="[+comment.custom.web:nohttp+]" border="0" /></a>`+]
Here i try to explain:
- My custom field name is "web".
- Its pretty clear that its trying to prefix the "http://" to the link itself, ie: <a href="http:// .
- Also removes the "http://" prefix entered by users ie: [+comment.custom.web:nohttp+] .
- If i use this code, the output will be "http:///" (note the triple slashes) without any address or title of the specific url.
- Also if i remove the "http://" prefix from the link itself, ie: <a href="[+comment.custom.web:nohttp+], then the url will be internally linked!.
- if i leave the http:// intact, if users enter the url with http:// then the code attaches another http:// and it will be something like http://
http://www.google.com
So how can i fix this?
Thanks