INTERACT FORUM

More => Old Versions => JRiver Media Center 19 for Windows => Topic started by: MarkCoutinho on December 23, 2013, 03:16:00 am

Title: Manage links: how do I send title capitalized?
Post by: MarkCoutinho on December 23, 2013, 03:16:00 am
Hi all,

In my database I have my song titles written like this: Abba - The day before you came.
In one of my links I want to send this information like this: Abba - The Day Before You Came (every first letter of the word in the Title (not the name) is capitalized)

This is my link right now: http:////lyrics.wikia.com//[Artist]:[Name]
But that is obviously not sending the right information.

What can I do to send it the way I want?

Thanks for helping me out on this one!
Title: Re: Manage links: how do I send title capitalized?
Post by: Matt on December 23, 2013, 07:30:43 am
See FixCase(...) here:
http://wiki.jriver.com/index.php/Expression_Language
Title: Re: Manage links: how do I send title capitalized?
Post by: MarkCoutinho on December 23, 2013, 07:42:11 am
Thanks, Matt. It took some searching, but I managed to edit my link.

For people who bump into the same problem, this is the code I use now:

http:////lyrics.wikia.com//[Artist]:fixcase([name], 1)
Title: PSA: Direct links to functions on Expression wiki
Post by: MrC on December 23, 2013, 11:55:55 am
FYI: Function names have direct Wiki links in the expression language page.

   http://wiki.jriver.com/index.php/Expression_Language#FixCase

The first sentence of each Description starts out with "The function <function()>...", and <function()> is a link.  Links are always camel-cased function names following a hash-tag.