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

Enabling Relative Links PLUS Using Perl

Quote Reply
Enabling Relative Links PLUS Using Perl
Hi,

I have Links*SQL which was purchased just a few days back, so it must be v2.
I tried to first search in the forum, but didn't find (or didn't understand what I found) an answer for this:
  1. How can I enable relative links to be entered in Links*SQL - [Add Link] page? Right now I'm getting a client-side JavaScript validation error message. But in the on-line demo at gossamer-threads.com, I could add a relative URL with no validation error message.
  2. How can I use perl functions, say substr(..) in my templates?


.. appreciate your response in advance,
SP
Quote Reply
Re: [SoftwareParadis] Enabling Relative Links PLUS Using Perl In reply to
A relative URL, meaning internal to your site, without an "http://" ?

You need to edit the "match" regex in the Admin->Database->Links table.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Enabling Relative Links PLUS Using Perl In reply to
Thank you, Pugdog .. for responding so soon .. worked just as you hinted.

Any clue about how can I use perl functions in templates, or may be, build my own functions and use them? I tried GT::Template help, but over-head-transmission so far.

SP

Last edited by:

SoftwareParadis: Dec 22, 2003, 7:48 PM
Quote Reply
Re: [SoftwareParadis] Enabling Relative Links PLUS Using Perl In reply to
You can use globals, to return tags, and have the whole power of perl behind you.

you can also build modules, add functions, and call them with a tag like <%Path::To::Module::function%>


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Enabling Relative Links PLUS Using Perl In reply to
Thanks, I got it.
SP

Last edited by:

SoftwareParadis: Dec 23, 2003, 5:46 AM