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

additional detailsite as downloadsite

Quote Reply
additional detailsite as downloadsite
Hello,

I've using links sql for a downloadsite and need a additional downloadsite

between the detailpage and the jump.cgi.




So I've made a copy of the detail template, named as

download and made a copy of sub site_html_detailed

in sitehtml.pm as sub site_html_download

(The same way as I've made this in links 2.)

When I call the page with the following link:

<%db_cgi_url%>/page.cgi?p=download?ID=<%ID%>

I've get the errors: unknown tag 'Title' 'ID'

Also I can't find any other way to create a link which

works.



Any ideas? Thanks

eljot
Quote Reply
Re: [eljot] additional detailsite as downloadsite In reply to
<advertising>
You can do this very easily with the PageBuilder plugin, without having to modify any code.
</advertising>

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] additional detailsite as downloadsite In reply to
Sorry being a bit offtopic.
Yogi, I just wanted to note, that forum rules fully allows LSQL plugin advertisements, so IMHO you are not required to remark, that it's advertisement... You can remark that it's advertisement, but I think is unnecessary. Just my 2 cent.

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...

Last edited by:

webmaster33: Mar 9, 2003, 7:39 PM
Quote Reply
Re: [yogi] additional detailsite as downloadsite In reply to
Hello Yogi,

If you offer plugins, you can also offer the free plugins

detailed_page and Ask_frames which are can used with

small modifications.

But this is not what I want.

I did not understand why the same template and

the same subroutine gets another result without the <%field_data%>

Can anyone tell me which additional step I have to do?

best regards

eljot
Quote Reply
Re: [yogi] additional detailsite as downloadsite In reply to
In Reply To:
<advertising>
You can do this very easily with the PageBuilder plugin, without having to modify any code.
</advertising>


BTW Yogi,

I did not really understand your pagebuilder plugin.

Normally I need only a template for additional pages

and call them with page.cgi?p=template_name



Please describe the different, better functions of your

plugin or offer a fully working sample to see the plugin

in action.

best regards

Best regards from
Bremen/Germany

Lothar
Quote Reply
Re: [eljot] additional detailsite as downloadsite In reply to
Use <%GT::Template::dump%> to see what tags are available on your custom template.

You can also use a global like:
Code:
sub {
my $id = shift;
return $DB->table('Links')->get($id);
}
and use it like <%get_link_fields($ID)%>. This should load all the link fields so that they can be used on the template.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [eljot] additional detailsite as downloadsite In reply to
You are right, that in dynamic mode, you can call additional pages with something like page.cgi?p=template

What the PageBuilder plugin adds to this, is that you can easily define a 'links' kind of page, which automatically loads all the links tags (what you are trying to do). You can also define 'category', 'user', 'review', 'editor' page, and they work analogously. You can put conditions for pages (i.e. only certain links have the additional detailed page). The plugin also automatically builds a linked title, according to page hierarchy (which you define).

The main value of the plugin, though, is for static pages. All the pages you define can be built statically. That can be single pages, but also on page for every link etc.

One value the plugin adds to dynamic pages is that you can have pages with a different mime type, e.g. javascript pages, vCard pages, xml, etc You can even generate PDF pages on the fly.

A fullly working sample is e.g. my website (see signature), where all the additional pages are built with the PageBuilder plugin.

I hope that helps.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [eljot] additional detailsite as downloadsite In reply to
Ok I've used pugdogs detailed_page cgi.




Install the plugin

save a local copy of detailed_page.cgi

in line 88 change the template name to download

create the template download.html

thats all.

in your download.html template you can use the metatag

<meta HTTP-EQUIV="refresh" CONTENT="5; URL=<%db_cgi_url%>/jump.cgi?ID=<%ID%>">






Thanks to PUGDOG for the file

Best regards from
Bremen/Germany

Lothar
Quote Reply
Re: [yogi] additional detailsite as downloadsite In reply to
Thanks Yogi,

I've made it with the detailed_page.cgi from pugdogs plugin.

best regards

eljot

Best regards from
Bremen/Germany

Lothar
Quote Reply
Re: [webmaster33] additional detailsite as downloadsite In reply to
In Reply To:
Sorry being a bit offtopic.
Yogi, I just wanted to note, that forum rules fully allows LSQL plugin advertisements, so IMHO you are not required to remark, that it's advertisement... You can remark that it's advertisement, but I think is unnecessary. Just my 2 cent.

He was just joking Tongue

Its like putting;

<spam>
Visit my site, and you can get this script for $20....
</spam>

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: [Andy] additional detailsite as downloadsite In reply to
ok-ok Angelic Smile

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: [yogi] additional detailsite as downloadsite In reply to
Yogi;

In your example, how does the below code work?


<%get_link_fields($ID)%>.


Do we need to define get_link_fields ? Is anything else needed?

Thanks!
Quote Reply
Re: [webslicer] additional detailsite as downloadsite In reply to
The sub-routine yogi provided needs to be added via Build > Template Globals . At the bottom of that page, there is an option to add a new field. Enter that code into the main textbox, and called it 'get_link_fields'. Then, in the templates you can call <%get_link_details($ID)%>, and it should grab that links tags etc.

Hopefully that helps Smile

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: [eljot] additional detailsite as downloadsite In reply to
Thanks :)

I'm working on a new release of detail_page.cgi. A few fixes, tweaks, etc. and getting it ready for the SQL Widgets release.

I'll add in the ability to override the template (something I should probably have done) so you can pass in a p= as well.

detail_page.cgi is a subset of page.cgi, with a specific purpose. The actual origins are probably burried the forum here, but I still find I need to use it instead of page.cgi or jump.cgi even in version 2.12


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.