MobileSheets Forums

Full Version: Embedded URL handling?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As a practice aid, I like to include a URL that links to the song (typically YouTube, but not always). What do you reckon would be "best practice" for including a URL in a ChordPro file? Seems to me that a "meta" directive might be useful. Or would it be easier to just add URL handling to MobileSheets?
If you want it to be clickable, I would recommend dropping a smart button on top of the page which you can link to the URL. Tap the center of the screen to bring up the song overlay, tap the smart button icon at the bottom right that looks like a finger tapping a rectangle, tap the + icon to add a new one, then configure it as a URL.

ChordPro 6 has an extension to Pango markup for this. E.g.

{comment <span href="">View video</span>}

This should produce a comment that has a clickable link.
I'll have to make sure to support that when I add the pango markup syntax support.

I tried both 

<a href=''>Link: Revivalists To Love Somebody</a>


{comment <span href="">View video</span>}

To my surprise, both of these created a clickable link in MobileSheets. BUT ALL THE CAPITAL LETTERS in the "v" variable BECOME LOWER CASE when the link executes, so they don't link to the actual video. I don't think this is caused by YouTube, because I changed the domain to my own domain and the link variable also displayed as all lower case.

So close ...
Looks like an easy fix in MobileSheets. I just missed this for the 3.8.25 release, so it will be included with either 3.8.26 or 3.9.0.