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

How can add pointing(numeration) to links

Quote Reply
How can add pointing(numeration) to links
How can add pointing(numeration) to links

Crazy

Last edited by:

hemo: Feb 13, 2002, 2:33 AM
Quote Reply
Re: [hemo] How can add pointing(numeration) to links In reply to
What do you mean? You mean a number next to each linke? If so, just use <%ID%> in link.html.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] How can add pointing(numeration) to links In reply to
<%ID%> adds the ID, it doesn't count incrementally.
Quote Reply
Re: [RedRum] How can add pointing(numeration) to links In reply to
If the post was more detailed (rather than a 1 liner, man i hate 1 liners)...then we may be able to help a little bit better Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] How can add pointing(numeration) to links In reply to
sub {
my $tags = shift;
$tags->{Increment} = 0 unless $tags->{Increment};
$tags->{Increment}++;

return $tags;

}

Then put <%Increment%> in your template. That should do it.
Quote Reply
Re: [RedRum] How can add pointing(numeration) to links In reply to
I needed the same feature, I tried it, but it didn't work (using as global) Frown

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] How can add pointing(numeration) to links In reply to
Where did you put the tag?
Quote Reply
Re: [RedRum] How can add pointing(numeration) to links In reply to
I did put the tag in the link.html template.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] How can add pointing(numeration) to links In reply to
What happened?
Quote Reply
Re: [RedRum] How can add pointing(numeration) to links In reply to
Nothing Unimpressed.There was nothing displayed.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] How can add pointing(numeration) to links In reply to
Hmm I've just been playing with this and it seems to be trickier than I thought.

I've not come up with anything yet.
Quote Reply
Re: [RedRum] How can add pointing(numeration) to links In reply to
Just think about, that it is a global template variable, which is triggered when a page is displayed, but it's not working with links, because they're part of the page.

Modifying links_loop keys, then using links_loop tag to display the links is more likely that will work.

But I HATE using globals for each problem, because globals are called each time a page is displayed. So using globals to modify or add link content, is waste of resource.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...