Author Topic: Create link based on tagged value  (Read 3693 times)

Robert Lelieveld

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Create link based on tagged value
« on: March 22, 2017, 11:39:04 pm »
Hi,

Is there a way to generate a link using tagged values?

Something like this:
Link Text   {Element.valueOf(value1)}
Link Code  https://www.link.to/{Element.valueOf(value1)}

Inserting a hyperlink with the above value just create a hyperlink named '{Element.valueOf(value1)}' pointing to 'https://www.link.to/{Element.valueOf(value2)}'.
Ideally, when value1 is not set, the link is not created at all.

While browsing the forum, I noticed an option to link to elements using GUIDs.
However, no word on generating links like this.

How could this be accomplished?

Thanks!


Kind regards,
Robert

Robert Lelieveld

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Create link based on tagged value
« Reply #1 on: March 23, 2017, 02:31:48 am »
Solved!

Found that this can be done by creating a SQL fragment and using the .Formatted option in combination with HTML code.
Nice.


Kind regards,
Robert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Create link based on tagged value
« Reply #2 on: March 23, 2017, 10:42:13 am »
Can you post a worked example?

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!