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

getting dynamic version of pages

Quote Reply
getting dynamic version of pages
When calling the as_url method or just using a tag we have like <%URL%> to link together subcategories, the returned URL is always the static version. How can we return the dynamic version if in dynamic mode or the static version if in static mode?
Quote Reply
Re: [scorpioncapital] getting dynamic version of pages In reply to
The tag <%URL%> will always be the same, because this is the URL of the link in the database.

All links that are pointing to categories, detailed pages etc in you Links SQL directory are 'dynamic' (e.g. page.cgi?g=....) when you are in dynamic mode and 'static' (e.g. /Category/SubCategory/index.html) when you are in static mode.

You also need to make sure that you have set dynamic_pages to yes in Setup->Build Option if you want to use dynamic pages.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] getting dynamic version of pages In reply to
the reason I ask is that for example in subcategory.html you have the info to format a subcategory link. I use <%URL%> and it always appears as static. E.g. /category/index2.html

What would you use so that the subcategory link appears dynamic in dynamic and static in static?
Quote Reply
Re: [scorpioncapital] getting dynamic version of pages In reply to
<%URL%> is a special tag in subcategory.html (not the same as <%URL%> in the links templates).

It should automatically give you a dynamic url if you use d=1.
Quote Reply
Re: [afinlr] getting dynamic version of pages In reply to
you mean <%URL%>&d=1?

==> /mycat/index2.html&d=1 =-> I think this fails, but I can check it
Quote Reply
Re: [scorpioncapital] getting dynamic version of pages In reply to
If you put in as the address in your browser

http://yourdomain/.../index2.html&d=1

you should see the subcategories as dynamic links - something like

http://yourdomain/...t/index.html&d=1

Quote Reply
Re: [scorpioncapital] getting dynamic version of pages In reply to
Please see PM.

Cheers

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!