Gossamer Forum
Home : Products : Gossamer Links : Discussions :

setting config. variable

Quote Reply
setting config. variable
Question: Is there a way to set a config. variable.
for example. I want to set the following var:
<%set config.review_enabled = "Yes'"%> So I can turn on and turn of the reviews. But when I do this, the build all process actually writes the value to the config/data.pm file as a scalar reference so the next time I go or use this tag <%Links::Config::load_vars%> I get this error message:
Modification of a read-only value attempted at GT::CGI::html_escape line 570.

The value that was stored in the config file looks like this:
'review_enabled' => \'Yes',

The thing is, I want this variable saved in the config file.
Anway to accomplish that?

thanks.
Quote Reply
Re: [klangan] setting config. variable In reply to
If you want to modify config, you have to do it in a global, because it will always save it as a string ref.

Adrian
Quote Reply
Re: [brewt] setting config. variable In reply to
Okay, thanks.

I see, that'll work.

peace.