Gossamer Forum
Home : Products : Others : Gossamer Community :

Custom Templates ^

Quote Reply
Custom Templates ^
When editing templates in community i noticed I could save as and create "Custom Templates"

For example user_test.html

It then appears as user_test.html ^

What are these used for? Can they be access? and do they have the variables available?

I tried community/community.cgi?do=user_test

But this didn’t work.

Just wondered what they were for.
Quote Reply
Re: [catlovette] Custom Templates ^ In reply to
The way the templates are stored, is;

/admin/template_set_name/ - All the original template files are here, in case you need to use the "restore" function.

/admin/template_set_name/local - The modified templates are kept here. If a copy of the template is found in this folder, the ^ will show up Smile

Hope that explains it :)

Cheer

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] Custom Templates ^ In reply to
I had a played around with them and understand what they can do now. Which is not what i want them to do.

I want to embed another page into the community main page (user_home.html). The page is actually a .pl file that produces html.
Normally i could do this with something like SSI;
<!--#include virtual="cgi-bin/calendar/calendar.pl" -->

I can’t do this within the user_home.html.

How can I embed this page/.pl into the user_home.html generated page?

Help me!Smile
Quote Reply
Re: [catlovette] Custom Templates ^ In reply to
A global should do the job Smile

<%calander_grab%>

Code:
sub {
use LWP::Simple;
my $got = get("http://www.yoursite.com/cgi-bin/calendar/calendar.pl");
return $got;
}

... or this MAY work (little shorter);

Code:
sub { use LWP::Simple; return get("http://www.yoursite.com/cgi-bin/calendar/calendar.pl"); }

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!

Last edited by:

Andy: May 12, 2004, 8:51 AM
Quote Reply
Re: [Andy] Custom Templates ^ In reply to
Thanks Andy,

hurmmm...

They both return the number 512! into the HTML

Im calling them with;
<%cal%>

The script should return a html calendar. The script works fine when called normally by the way!
Crazy
hurmmm..

Any ideas?
Quote Reply
Re: [catlovette] Custom Templates ^ In reply to
How about the modified version?

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!
Quote Reply
Re: [Andy] Custom Templates ^ In reply to
Frown
Both returns nothing. Blank.