forum.easy-joomla.org

Projects/Projekte => J! 1.5.x Serie - EasyCreator => Thema gestartet von: ripper17 am 15. 12. 2009 13:53



Titel: Parameters missing in install manifest created by EasyCreator 0.0.11
Beitrag von: ripper17 am 15. 12. 2009 13:53
Hi,

I've just noticed that something quite vital is missing in the install manifest created by EasyCreator:

The Parameters and their default values. Right now, if a user installs a component created by EasyCreator, (s)he must first go to the Configuration of the component and save the values, otherwise there won't be any parameters entered in the database.

It would be cool, if you could integrate this in an upcoming version of this still very, very useful tool!

Best

Martin


Titel: Re: Parameters missing in install manifest created by EasyCreator 0.0.11
Beitrag von: elkuku am 01. 01. 2010 17:46
Hi Martin,
so the parameters are present in the xml manifest but on installation there is no entry in the database ?

I think this is a normal Joomla! behavior - really bad in my opinion.

Hope i understood your problem ;)


Titel: Re: Parameters missing in install manifest created by EasyCreator 0.0.11
Beitrag von: ripper17 am 07. 01. 2010 17:39
Hi elkuku

I'm sorry, that was a bit unclear.
I'm developing my component in a Joomla environment, which means that my development files are located in
/administrator/components/com_mycompname/ (for the backend)
There is a file called config.xml which holds all parameters (same as com_easycreator)
There is also a file called mycompname.xml - an install manifest I created by hand, which holds all parameter names and default values, as described http://docs.joomla.org/Component_parameters ( I hope it's the correct URL, seems to be down at the moment)
However, when EasyCreator creates the install manifest file (from scratch, I guess?), it skips all parameters.
Perfect situation would be to parse config.xml in the admin folder, take out all names and default values from it, and put them in the newly created install manifest.xml file

Right now, what I do is this: I create the package, download it, unzip it, edit the install manifest.xml file, add the parameters by hand, re-ZIP it, install it. This works (and sets the parameters in the DB as desired), but is a bit of work which I would love to skip :-)

Hope it's clearer now :-)

Martin

Edit: (Edit2: This applies to 0.0.12 - dont know about 0.0.11)
You know how they say "Those who can see are in advance?" :-)
I found it... it's in helper/manifest.php, line 414, change
Code:
if(false)//$params->_xml)
to
Code:
if($params->_xml)

Kind of obvious, sorry for not noticing earlier.


Titel: Re: Parameters missing in install manifest created by EasyCreator 0.0.11
Beitrag von: elkuku am 11. 01. 2010 21:59
Hell :o - Thanks again Martin - I disabled the parameters... so you enabled them and everything works ok now ?


Titel: Re: Parameters missing in install manifest created by EasyCreator 0.0.11
Beitrag von: ripper17 am 13. 01. 2010 09:16
Hi elkuku,

yes, after enabling the parameters, everything works great, default values are added to the DB upon installation.


Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC