Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensions should have "default" values in the installer #16

Open
cybersonic opened this issue Apr 24, 2012 · 1 comment
Open

Extensions should have "default" values in the installer #16

cybersonic opened this issue Apr 24, 2012 · 1 comment

Comments

@cybersonic
Copy link
Contributor

The config.xml defines the steps, but if you want to set up default values, they need to be defined in the Install.cfc.

This should be as seamless as possible for the user, so it should be in the installation steps screen but the defaults setup at the top of the installer.cfc as follows:

 <!--- Download --->
        <cfif this.type EQ "download">
            <cfset group.setLabel("Download video components by an URL")>
            <cfset item=group.createItem('text', 'host','http://extbuilder.local', false, 'Provider URL', 
                        'URL of a provider offering the necessary (FFMpeg binaries) components.')>
        <!--- Upoad --->
        <cfelse>
            <cfset group.setLabel("Video components by upload")>
            <cfset item=group.createItem('file', 'zip','', false, 'Zip file', 
                        'Zip file that contain the necessary (FFMpeg binaries) components.')>
        </cfif>
@paulklinkenberg
Copy link
Contributor

Default values for installation form fields can be set in the config.xml. If I remember correctly, the xmlText of the item tag will be used as the default value: [item ...]default value[/item]

@cybersonic cybersonic removed their assignment Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants