forum.easy-joomla.org
22. 01. 2010 22:15 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
Neueste Beiträge
Re: [help] Can't create a package von elkuku Heute um 21:11
[help] Can't create a package von bugay Heute um 04:12
Re: EasyCreator 0.0.12 von elkuku 15. 01. 2010 02:10
News:
Tutorials/Anleitungen rund um Joomla! oder
Filmchen herunterladen
 

 
 
    Übersicht   Hilfe Suche Spenden/Sponsors Impressum/Imprint Downloads Hauptseite Projects Tutorials Einloggen Registrieren  
Subject Statistics
Thema: Parameters missing in install manifest created by EasyCreator 0.0.11 Replies: 4 posts
Gelesen 507 mal 0 Mitglieder und 1 Gast betrachten dieses Thema.
Seiten: [1]   Nach unten
  Drucken  
Autor Thema: Parameters missing in install manifest created by EasyCreator 0.0.11  (Gelesen 507 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
ripper17
Newbie
*
OfflineOffline

Registriert seit: 15.04.09
Beiträge: 11


Profil anzeigen
« 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
Gespeichert
elkuku
Developer
Full Member
*
OfflineOffline

Registriert seit: 11.12.07
Beiträge: 127



Profil anzeigen WWW
« Antworten #1 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 Wink
Gespeichert

Gruss,
Nikolai - NiK-IT.de
Easy-Joomla Team
ripper17
Newbie
*
OfflineOffline

Registriert seit: 15.04.09
Beiträge: 11


Profil anzeigen
« Antworten #2 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.
« Letzte Änderung: 08. 01. 2010 14:07 von ripper17 » Gespeichert
forum.easy-joomla.org
« Antworten #2 am: 07. 01. 2010 17:39 »

all-inkl.com webhosting
 Gespeichert
elkuku
Developer
Full Member
*
OfflineOffline

Registriert seit: 11.12.07
Beiträge: 127



Profil anzeigen WWW
« Antworten #3 am: 11. 01. 2010 21:59 »

Hell Shocked- Thanks again Martin - I disabled the parameters... so you enabled them and everything works ok now ?
Gespeichert

Gruss,
Nikolai - NiK-IT.de
Easy-Joomla Team
ripper17
Newbie
*
OfflineOffline

Registriert seit: 15.04.09
Beiträge: 11


Profil anzeigen
« Antworten #4 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.
Gespeichert
Seiten: [1]   Nach oben
  Drucken  
 
Gehe zu:  


Audiovisuelle Filmanleitungen hosted by all-inkl.com joomladirectory.net joomla.org jahoart.eu joomla-in-berlin.de Joomla Toplist Spende/Donate
easy-joomla.org joomla.de webjobber.de snipersister-de xing.de
joomlacode.org joomlaos.de joomla24.com nik-it.de

Powered by MySQLPowered by PHP Powered by SMF 1.1.8 | SMF © 2006, Simple Machines LLC Prüfe XHTML 1.0Prüfe CSS
Seite erstellt in 0.235 Sekunden mit 28 Zugriffen.