Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Help to do a little Global ?

Quote Reply
Help to do a little Global ?
Hi All,

I would need a little Global for my Links which runs on Static mode. Can you help me please ?

In my Links SQL, the LinkOwner of the Links table is also the Username of the Users table - it's the case with all Links.

I have a detailed page for each link. And in this detailed page, I would like to show a Users column called 'infos' that corresponds with the LinkOwner.

In other words, I need a global that will :

* Go to the Users Table and gather a column called 'infos' where LinkOwner == Username.

* Return a variable with this info that will be displayed into detailed.html.

Can you help me to do this little global please ? Smile

Thank you a lot !

Gautier.
Quote Reply
Re: [Gautier] Help to do a little Global ? In reply to
Use:

<%Links::Utils::load_user%>

This will load all the tags associated with the link owner, like <%Username%>, <%Email%>, <%Status%> etc.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Help to do a little Global ? In reply to
This works like a charm Smile.

Thank you a lot Ivan !!

Regards,

Gautier.