Page 1 of 1
About the Extension builder
Posted: Wed Sep 12, 2012 2:20 pm
by Patrik iden
Hi, i wonder if i add files to the extension builder, can i before i add thees files relpase a value in thees files with the ones i use in properties in extension builder.
Example: In a file that i want to add i have the value: $targetFolder = '/uploads';
And in properties i have $uploadfolder$
Can i shange the $targetFolder = '/uploads'; in the file to $targetFolder = '$uploadfolder$';
Will this work?
Thank you.
Re: About the Extension builder
Posted: Wed Sep 12, 2012 2:59 pm
by Pablo
Yes, that is possible.
Enable the option 'This file requires processing...' for that file.
See also the documentation.
Re: About the Extension builder
Posted: Thu Sep 13, 2012 7:41 am
by Patrik iden
Hi, OK that worked. But i try to set thees values and This file requires processing to an .css file but this dont seam to work?
I have this in the index file: <link rel="stylesheet" type="text/css" href="styles.css" /> and i have entered ex, $fontsize$ in the .css file and this setting appears in the extension settings but nothing changes in the .css file when i change the settings?
(if i manuly open the .css file and change settings it works)
Can you figure?
Thank's
Patrik.
Re: About the Extension builder
Posted: Thu Sep 13, 2012 7:45 am
by Pablo
You probably overlooked something. You can use as many variables as you like.
Re: About the Extension builder
Posted: Thu Sep 13, 2012 9:30 am
by Patrik iden
support wrote:You probably overlooked something. You can use as many variables as you like.
OK, even in .css files?
Re: About the Extension builder
Posted: Thu Sep 13, 2012 9:44 am
by Pablo
Yes, any file that has the option 'requires processing' enabled can contain variables.
Re: About the Extension builder
Posted: Thu Sep 13, 2012 10:23 am
by Patrik iden
support wrote:Yes, any file that has the option 'requires processing' enabled can contain variables.
Strage, i use other files in this extension to, and they work, but not the styles.css file
Re: About the Extension builder
Posted: Thu Sep 13, 2012 10:29 am
by Pablo
What did you do?
Re: About the Extension builder
Posted: Thu Sep 13, 2012 10:57 am
by Patrik iden
support wrote:What did you do?
Well i just add code like this:
$fontsize$
$fontcolor$
$title$
$buttonfontname$
etc
in a fue files like incl, the styles.css file. And the settings works in all files, but not styles.css
Re: About the Extension builder
Posted: Thu Sep 13, 2012 11:49 am
by Pablo
Did you enable 'this file requires processing' for the CSS file?
Do the variables have the correct names?
Re: About the Extension builder
Posted: Thu Sep 13, 2012 12:24 pm
by Patrik iden
support wrote:Did you enable 'this file requires processing' for the CSS file?
Do the variables have the correct names?
Yes.
Yes.
Re: About the Extension builder
Posted: Thu Sep 13, 2012 12:59 pm
by Pablo
If you want me to help you, you'll need to be more specific.
Re: About the Extension builder
Posted: Thu Sep 13, 2012 4:31 pm
by presto
Most probably your css file does not have the correct format. Can you paste it here, if it's not too large?
Re: About the Extension builder
Posted: Thu Sep 13, 2012 4:41 pm
by Patrik iden
presto wrote:Most probably your css file does not have the correct format. Can you paste it here, if it's not too large?
OK, i'm sorry it was my mistake. I hade files going to a folder, this is wrong. It works now.
Thank you.