Can I create a hyperlink from a Lightroom album field?

I’m using the same album template in Backlight for multiple albums. I’d like to add a link in each album to the corresponding video page on YouTube. If I put a link in Lightroom’s Album Description it doesn’t show up as a link because it doesn’t recognise HTML - in PHP getDescription() it shows up as text.

Can I use one of the LR fields to add a link and get it into Backlight as a link so it looks like this:

Page Title → from Album Title with PHP getTitle() - already works
For YouTube Video see: (link to YouTube page)

how are you writing the link in the metadata field? Have you tried using html mark up:

<a href="https://youtube.com/......">view video</a>

Yes, I should have thought of that. I was using this which works:

echo 'For YouTube video see: <a href="'.$this->album->getDescription().'" target="_blank">'.$this->album-getKeywords().'</a></h3></center>';

and I was hoping to use the keywords field in LR albums since I’ve run out of fields to use, but the only way to do that is to enable smart albums and it cuts off the rest of the page.

Unless I can use a metadata field from one of the photos for the href name.

Maybe??
By adding php that looks to see if any photo has data in a specific field and then using that data?
I’m out of my depth as to how exactly to do that though.

Out of my league too and not a very efficient way to do it. I’m just wondering why that smart albums toggle enables the keywords field. I’ve never used that. I’m guessing you need to create smart albums instead of regular albums. I guess they auto-populate from smart folders? They look a lot more (overly) complicated. I’ll probably just go with having the actual YouTube link clickable without it being hidden in the href.

because smart albums are based on keywords

It does get complicated. Probably easiest to add the link manually to the album copy.

Nothing wrong with doing it like this:

The link works and it opens in a new window as it should.