Element-template link


#1

Hey,
I am using the element-template feature to put text inputs on the properties panel successfully. I am wondering if it’s possible to put a static link too. Is it possible?
Thank you!


#2

Could you provide a mock-up of the thing you’d like to accomplish?

I don’t quite understand why you’d like to put text / links without inputs into the properties panel.


#3

Hey nikku,
I need the links for the DataStore/ObjectReference.
I need the link to let the user select between different domains. Each domain should have a link which navigate the user to a page where he can check the servers in that domain.
Best would be something that is capable to generate from this JSON:

[
  {
    href: "https://www.google.com",
    title: "Google"
  },
  {
    onClick: "alert('ok');",
    title: "Message"
  }
]

this HTML:

<a href="https://www.google.com">Google</a><br />
<a href="#" onclick="alert('ok';")>Message</a>

This is not a feature request, but I need some help where to start. Can you point me in the right direction? Which files I should extend?
Thank you!


#4

Nevermind, I found this is also supported via Freemarker templates. See here for an example(search for href):