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

Links::SiteHTML::display() - valid syntax?

Quote Reply
Links::SiteHTML::display() - valid syntax?
Hi,

Just wondering - is this syntax valid in Links::SiteHTML??

Code:
print Links::SiteHTML::display($hit->{Page_Name}, { %$hit, toolbar => \@toolbar } , { root => $CFG->{admin_root_path}. "/templates/$hit->{Template_Set}/" } );

It semeed to be working ok earlier -b ut I cleaned out some old templates from luna - and for some reason, it refuses to load now :/ (just saying 'xx template does not exist in luna" - even though I'm passing it in a valid root => path to a different tempalte set :/)

TIA - this ones got me a bit stumped Frown

Cheeres

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Links::SiteHTML::display() - valid syntax? In reply to
Ok, I found a fix.

Lets say I have 2 tempalte sets -

luna
my_test

I want to load a template in my_test, using Links::SiteHTML::display, with:

Code:
print Links::SiteHTML::display('test_page', { %$vars } , { root => "$CFG->{admin_root_path}/templates/my_test" } );

Now, if I just have:

luna
my_test/test_page.html

..then I get this error about it not existing in the luna tempalte set - *even though I'm specifying the root*

However, if I put a blank page here:

my_test/test_page.html (with just nothing in)

..then it works fine - and it loads the tempalte in my_test/test_page.html

A bug I'm guessing?

Just thought I would post my findings, as it had me baffled for a bit Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates