Member
Member
harootun   03-08-2013, 21:52
#1

I'm sure this question has been asked before but I couldn't find the answer on the site. I have some text in the custom data field for an image that I'm including in image.php, but the links I put into the text aren't working - they aren't live links. I read about how you have to allow tags in the options to get this to work, but I'm not quite understanding how to do this. I tried putting

href => ()

into that field, but that's probably wrong. Can someone offer me advice on how to get links working in the custom data field?

Thanks so much!

Administrator
Administrator
fretzl   03-08-2013, 22:13
#2

If the "Allowed tags" are set to default the first line should read
a => (href =>() title =>() target=>() class=>() id=>())

Member
Member
harootun   03-08-2013, 22:14
#3

Wow. Talk about a speedy response! Thanks so much!

Administrator
Administrator
fretzl   03-08-2013, 22:44
#4

I guess you're right actually. Just tested it and a link in the "Custom data" field gets rendered as
http://www.site.org/albumname/link
So it looks for an image with the name "link" in the album in which the image with the custom data resides.

EDIT:
After some refreshes the link renders as
http://www.site.org/link

Administrator
Administrator
acrylian   04-08-2013, 07:49
#5

Actually a custom field should behave like another textarea field. You can even enable TinyMCE on it, there is a config file for that available.

Administrator
Administrator
fretzl   04-08-2013, 08:10
#6

Ah, found it.
External links used in custom data fields and codeblocks need to be prefixed with http://

Administrator
Administrator
acrylian   04-08-2013, 09:55
#7

Of course it would be no valid url without :-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.