Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [jai] access same template global within more than one template set

Quote Reply
Re: [jai] access same template global within more than one template set In reply to
As hennagaijin mentioned, you can create a file sample.pm in admin/Dbsql which contains:

package Dbsql::sample;

use strict;

sub dump() {
#----------------------------------------------
#
my $tags = GT::Template->tags;
use Data::Dumper;
return "<pre>".Dumper($tags->{home})."<pre>";
}

1;

And then, you can use <%Dbsql::sample::dump%> in your templates

TheStone.

B.
Subject Author Views Date
Thread access same template global within more than one template set hennagaijin 4472 Oct 7, 2002, 3:11 PM
Thread Re: [hennagaijin] access same template global within more than one template set
hennagaijin 4366 Oct 7, 2002, 3:42 PM
Thread Re: [hennagaijin] access same template global within more than one template set
jai 4332 Oct 7, 2002, 4:03 PM
Thread Re: [jai] access same template global within more than one template set
604 4325 Oct 7, 2002, 4:19 PM
Thread Re: [TheStone] access same template global within more than one template set
jai 4298 Oct 7, 2002, 7:04 PM
Post Re: [jai] access same template global within more than one template set
604 4257 Oct 8, 2002, 10:57 AM
Post Re: [jai] access same template global within more than one template set
hennagaijin 4325 Oct 7, 2002, 4:28 PM