About the Extension builder

This section can be used to submit suggestions for Extension Builder.
Note that this section is not monitored for support.
Forum rules
This forum section can be used to submit suggestions for Extension Builder.
Note that this section is not monitored for support.
Post Reply
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

About the Extension builder

Post 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.
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo »

Yes, that is possible.
Enable the option 'This file requires processing...' for that file.

See also the documentation.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post 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.
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo »

You probably overlooked something. You can use as many variables as you like.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post by Patrik iden »

support wrote:You probably overlooked something. You can use as many variables as you like.
OK, even in .css files?
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo »

Yes, any file that has the option 'requires processing' enabled can contain variables.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post 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
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo »

What did you do?
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post 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
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo »

Did you enable 'this file requires processing' for the CSS file?
Do the variables have the correct names?
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post 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.
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo »

If you want me to help you, you'll need to be more specific.
presto
 
 
Posts: 138
Joined: Tue Aug 24, 2010 5:19 pm
Contact:

Re: About the Extension builder

Post by presto »

Most probably your css file does not have the correct format. Can you paste it here, if it's not too large?
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post 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.
Post Reply