About the Extension builder
Forum rules
This forum section can be used to submit suggestions for Extension Builder.
Note that this section is not monitored for support.
This forum section can be used to submit suggestions for Extension Builder.
Note that this section is not monitored for support.
- Patrik iden
-
- Posts: 477
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
About the Extension builder
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.
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
Yes, that is possible.
Enable the option 'This file requires processing...' for that file.
See also the documentation.
Enable the option 'This file requires processing...' for that file.
See also the documentation.
- Patrik iden
-
- Posts: 477
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: About the Extension builder
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.
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
You probably overlooked something. You can use as many variables as you like.
- Patrik iden
-
- Posts: 477
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: About the Extension builder
OK, even in .css files?support wrote:You probably overlooked something. You can use as many variables as you like.
Re: About the Extension builder
Yes, any file that has the option 'requires processing' enabled can contain variables.
- Patrik iden
-
- Posts: 477
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: About the Extension builder
Strage, i use other files in this extension to, and they work, but not the styles.css filesupport wrote:Yes, any file that has the option 'requires processing' enabled can contain variables.
Re: About the Extension builder
What did you do?
- Patrik iden
-
- Posts: 477
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: About the Extension builder
Well i just add code like this:support wrote:What did you do?
$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
Did you enable 'this file requires processing' for the CSS file?
Do the variables have the correct names?
Do the variables have the correct names?
- Patrik iden
-
- Posts: 477
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: About the Extension builder
Yes.support wrote:Did you enable 'this file requires processing' for the CSS file?
Do the variables have the correct names?
Yes.
Re: About the Extension builder
If you want me to help you, you'll need to be more specific.
Re: About the Extension builder
Most probably your css file does not have the correct format. Can you paste it here, if it's not too large?
- Patrik iden
-
- Posts: 477
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: About the Extension builder
OK, i'm sorry it was my mistake. I hade files going to a folder, this is wrong. It works now.presto wrote:Most probably your css file does not have the correct format. Can you paste it here, if it's not too large?
Thank you.