Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Use of Params with Cook 13 Feb 2012 20:18 #1279

Hi there,

I am trying to add a params field to a table that I can populate and render with Joomlas JParam- I think that is what it is called I am a bit new to this- because I know that there are parameters that will a) be numerous b) dont need individual fields and c) need to be inherited.

yet when I try to create a 'params' field I get the message 'The value you entered is not allowed'.

Is there anything I can do about this?

Thanks in advance...

Edited this to update question, as I see the params field is in the database, I just can't work out how the get the usual Joomla 2.5 functions for outputting the xml into form fields...

Please Log in or Create an account to join the conversation.

Last edit: by admin.

Use of Params with Cook 14 Feb 2012 07:03 #1282

I looked into this a bit more by creating a 'free' version of the component I want to make and this is what I discovered while playing around:-

Cook makes a great collection of files that work really well, but seems to maybe be 'out of date' a little with joomla 2.5?

I home the community wont hammer me for this, I am learning as I go along, but Cook's model files are very different to standard J!2.5 model components like contacts, newsfeeds etc

Firstly these have a number of 'batch' files and secondly whereas Cook seems to use getData and _initData Joomla! 2.5 seems to use different functions like getForm, getItem and loadFormData, and these seem to 'plugin' with the params fields you can manually add in to a whatever.xml file you put in your models folder.

I am very new to this, so please dont take any of this as criticism (and also I have looked all over the Joomla wiki and all the stuff on there seems to relate to J!1.5, J!1.7 at best), but looking at the J! components in 2.5 it does look like some of this parameter stuff could work 'out of the box' with the right functions in the model? i.e. that the user after downloading the component would only have to modify the xml file for them to basically work if Cook did the default 2.5 stuff, like it does all the other Joomla stuff by default- i.e. writing all the save and delete functions etc?

I don't quite see how anyone is supposed to know how to use this stuff since the Joomla! wiki and documentation dont cover it at all, but if anyone can the Cook team can! they seem to know by divine intervention how this all works to an amazing level, so if they could help that would be awesome!

I really think the ability to use params with Cook genertaed components would the the diamond in the ring here. I appreciate that Cook cant do params and that these would need to be created manually in an xml file and tailored to the application, but if Cook could basically make it so those things were ready to go then that would be amazing!

As I say I am not very advanced on this, so any advice would be most welcome. My component needs what Cook can do and then masses of params- some of which are inherited etc, so I dont want to get myself in a mess with Cook doing things one way and J!2.5 doing things another.

Any clarification would be really helpful

D

Please Log in or Create an account to join the conversation.

Last edit: by davidosullivan. Reason: was not clear I was criticising J! Wiki not Cook

Use of Params with Cook 14 Feb 2012 14:12 #1290

I really need some clarification on this. Is this something that is different because of jDom or something? I really cannot buy the component I have until I know that params are going to work and or how I am going to make them work...

Any pointers anyone pleeese :side:

Please Log in or Create an account to join the conversation.

Use of Params with Cook 14 Feb 2012 14:24 #1291

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Thank you for your review.

Serialized parameters in your component are planned in the roadmap.
You are totally true, since Joomla 1.6, the MVC structure changed.

For the moment it stay like that because of the 1.5 support.
It will evolve for sure.

Such modification wil be hard for users that already beginned their component in this way.
For sure this way of coding will still been available after the migration.

JDom is also a big collection of file that are now handled more or less by Joomla.
While Cook handle 1.5, we continue in this way.

But thank you very much for your review because we are aware of this it was a difficult choice.
You are the first to give a such comment about this.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Use of Params with Cook 14 Feb 2012 15:06 #1300

can you make them JSON parameters please- that seems to be the format all J2.5 params are in...

Also any idea when I might expect this to arrive, days, weeks, months?

And is there a short term solution you can suggest or is it the case that if I need to use Joomla 2.5 and params I need to write the component manually?

Please Log in or Create an account to join the conversation.

Re: Use of Params with Cook 14 Feb 2012 15:18 #1302

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
No idea.

For sure, the more time I spend on the forum, the less I develop.

I really do all my possible and for the moment Cook don't has the feature you ask.
Cook is only released since sept 2011.
Please understand that for the moment the priority is for stabilization of the product and few extensions sometimes.
Coding is now a piece of cake
The following user(s) said Thank You: davidosullivan

Please Log in or Create an account to join the conversation.

Config.xml 12 Mar 2012 13:55 #1568

is it possible to add all image field preference in j-cook into the config.xml?

like for thumb size and mime type accepted.

Please Log in or Create an account to join the conversation.

Re: Config.xml 12 Mar 2012 14:24 #1569

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Manualy for the moment.

Moved here : Config XML and params JSON field are under developpement.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.

Re: Config.xml 09 Sep 2012 15:58 #3425

Any news about this feature?

Please Log in or Create an account to join the conversation.

Re: Config.xml 09 Sep 2012 16:12 #3426

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
Looks like v2 is for tonight... we'll see

Please Log in or Create an account to join the conversation.

Re: Use of Params with Cook 09 Sep 2012 16:38 #3433

I want to add some parameters, how & where can I do this?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.074 seconds

Hi guys Before I ask for help just like to say I tried the tutorials on how to make a 2.5 component WOW.... HECTIC!! J-Cook is really amazing in its simplicity!!
Dorac (Forum)  

Get Started