Config panel on Package Install

Permalink
Hi!

I am creating a package that requires the end user to enter some key information when the package is installed.

Is it possible to create a lightbox/popup window with a basic form that initiates when the package is installed? How could this be achieved?

I thought about setting up a manual redirect after the assets have been installed but I cannot get this to work.

Any assistance would be greatly appreciated.

dclmedia
 
JohntheFish replied on at Permalink Reply
JohntheFish
You can put a pre-install flash page in
/elements/dashboard/install.php

Any post data (ie form fields) in that file will be available to the package installer.

Have a look at hereNT's boilerplate package for an example
http://www.concrete5.org/marketplace/addons/c5-boilerplate/...
dclmedia replied on at Permalink Reply
dclmedia
Thanks for the prompt response JohntheFish.

Would I place the 'element' folder in my main packages folder or does it get placed elsewhere? The examples you give are for 5.6 and I am using 5.7.3.1, is it the same process?
dclmedia replied on at Permalink Reply
dclmedia
I've just answered my own question.

Thanks for pointing me in the right direction JohntheFish!!! :-D
dclmedia replied on at Permalink Reply
dclmedia
If I may possibly tap into your extensive C5 knowledge one more time please?

I have created the pre-install page sucessfully and for most of it it is working prefectly. Part of the process is that I want the end user to upload their logo. I have copied and pasted the code from the update details page that works perfectly , but cannot get my pre-install page to launch the File Manager. It gets as far as the line
ConcreteFileManager.getFileDetails(data.fID, function(r) {
from
$(".property-manager-add-image-gallery").click(function () { 
                ConcreteFileManager.launchDialog(function (data) {          
                    $('body').addClass('ccm-loading');
                    ConcreteFileManager.getFileDetails(data.fID, function(r) {
                        (0 == $("#property_image_list li").length) && $(".property-manager-image-gallery fieldset").show();
                        $(r.files).each(function() {
                        var temp_file_path = this.url;
                  var tpath = temp_file_path.replace("files", "files/thumbnails/property_manager");
                  var tpath2x = temp_file_path.replace("files", "files/thumbnails/property_manager_2x");
                  var newpath = '<img src="'+tpath+'" data-at2x="'+tpath2x+'">';
                           $('li#company_logo').replaceWith(_templateSlide({
                                fID: this.fID,
                                path: this.url,
                                thumbnail: newpath
                            }));
and crashes the JQuery.

I have placed all of the 'Use' lines that are in the working 'controller' php file in to the pre-install file
use \Concrete\Core\File\Image\Thumbnail\Type\Type;
use \Package;
use \BlockType;
use \SinglePage;
use \Loader;
use \File;
use \FileSet;
use \Form;
use \Core;
use \Concrete\Core\File\FileList;
$includeAssetLibrary = true;
$form = Loader::helper('form');
$u = new User();   
$fp = FilePermissions::getGlobal();
$tp = new TaskPermission();
but it makes no difference.

Any ideas?