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: 657
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

About the Extension builder

Post by Patrik iden » Wed Sep 12, 2012 2:20 pm

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: 19287
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo » Wed Sep 12, 2012 2:59 pm

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

See also the documentation.

User avatar
Patrik iden
 
 
Posts: 657
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post by Patrik iden » Thu Sep 13, 2012 7:41 am

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: 19287
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo » Thu Sep 13, 2012 7:45 am

You probably overlooked something. You can use as many variables as you like.

User avatar
Patrik iden
 
 
Posts: 657
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post by Patrik iden » Thu Sep 13, 2012 9:30 am

support wrote:You probably overlooked something. You can use as many variables as you like.
OK, even in .css files?

User avatar
Pablo
 
Posts: 19287
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo » Thu Sep 13, 2012 9:44 am

Yes, any file that has the option 'requires processing' enabled can contain variables.

User avatar
Patrik iden
 
 
Posts: 657
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post by Patrik iden » Thu Sep 13, 2012 10:23 am

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: 19287
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo » Thu Sep 13, 2012 10:29 am

What did you do?

User avatar
Patrik iden
 
 
Posts: 657
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post by Patrik iden » Thu Sep 13, 2012 10:57 am

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: 19287
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo » Thu Sep 13, 2012 11:49 am

Did you enable 'this file requires processing' for the CSS file?
Do the variables have the correct names?

User avatar
Patrik iden
 
 
Posts: 657
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post by Patrik iden » Thu Sep 13, 2012 12:24 pm

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: 19287
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: About the Extension builder

Post by Pablo » Thu Sep 13, 2012 12:59 pm

If you want me to help you, you'll need to be more specific.

presto
 
 
Posts: 300
Joined: Tue Aug 24, 2010 5:19 pm

Re: About the Extension builder

Post by presto » Thu Sep 13, 2012 4:31 pm

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: 657
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: About the Extension builder

Post by Patrik iden » Thu Sep 13, 2012 4:41 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest