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

default path for a plugin

Quote Reply
default path for a plugin
hi,

I have the field ImagePath in my plugin and will
use the content of

$CFG->{build_root_path}/thumbnails/

as default in install.pm but I dont fin the
right variable for this...

Best regards from
Bremen/Germany

Lothar
Quote Reply
Re: [eljot] default path for a plugin In reply to
Huh?

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] default path for a plugin In reply to
When I use:
$mgr->install_options ( 'EyeCatcher', [ ['ImagePath', '$CFG->{build_root_path}/thumbnails/', 'Name of the directory where the images are saved.', 'TEXT', [], [], '' ] ] );
in install.pm

I've get

$CFG->{build_root_path}/thumbnails/ in the field
in the formfield of the config for the plugin.

Best regards from
Bremen/Germany

Lothar
Quote Reply
Re: [eljot] default path for a plugin In reply to
The problem is because you are using '' to quote the variables. ' will stop any variables from being used (pretty much like q| $var |; would print $var . Try the below;

$mgr->install_options ( 'EyeCatcher', [ ['ImagePath', "$CFG->{build_root_path}/thumbnails/", 'Name of the directory where the images are saved.', 'TEXT', [], [], '' ] ] );

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] default path for a plugin In reply to
thanks andy.

Best regards from
Bremen/Germany

Lothar