Add external links in database

Hi, I’d like to add a Plant Stockists field to my Plant database, but need to add their website link within the database cell so it populates on each plants dynamic page. I read that the add link in the database feature is being considered. Could you give me a timeline as it could be a great advertising feature for my website.
Many thanks. Anno

Hi Anno,
There’s a URL field type that you could use. Does that satisfy your needs?

Ah, yes, that looks to be just what I need. Thanks so much Ohad.

Hi, I’ve read that for a business to pay me every month for a link from my website it must not affect ranking so I should use a redirect that is blocked by robots.txt or “rel=nofollow”. I am looking to add the link using the URL field type; how would I add the rel=nofollow code?

You could try using a data hook and add the suffix “rel=nofollow” whenever a url is submitted.

Thanks, Ohad. I’ve had a look at the data hook, but, unfortunately, I don’t know enough to understand it. Would you be able to help with this? Many thanks. Anno

Hi Ohad, would it work with an onclick event? Like

export function text49_click() {
‘wix-location’;

// …

wixLocation.to(“http://randomharvest.co.za”); “rel=nofollow”;
}

The link works but is this because it is included as a URL field type already and so overrides this onclick event? Would this code with the “rel=nofollow” even be read and implemented?
Many thanks?

Yes, I believe that If the text link property isn’t bound to anything, then your code (text_click()) will be executed.

Ok, great. Thanks very much, Ohad.