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

TOPIC:

Incorrect form field type generated by cook 28 Jun 2013 02:20 #7733

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Hi,
I just noticed the form field types for access level,created_by and modified_by is generated as cktext instead of the correct values of accesslevel and user.

Here is the incorrect code generated by cook.

<field name="access"
label="XXXXX_FIELD_ACCESS"
alias="access"
filter="INT"
access="core.edit"
type="cktext"/>

<field name="created_by"
label="XXXXX_FIELD_CREATED_BY"
alias="created_by"
filter="INT"
access="core.edit"
type="cktext"/>


Here is the correct code in joomla.

<field name="access"
label="XXXXX_FIELD_ACCESS"
alias="access"
filter="INT"
access="core.edit"
type="accesslevel"/>

<field name="created_by"
label="XXXXX_FIELD_CREATED_BY"
alias="created_by"
filter="INT"
access="core.edit"
type="user"/>


Regards
Vivek.

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

Incorrect form field type generated by cook 30 Jun 2013 16:56 #7770

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
FIXED
Coding is now a piece of cake

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

Incorrect form field type generated by cook 30 Jun 2013 17:01 #7771

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Cook is not using joomla native fields.

You can use them if you want, but I made the choice to use JDom.
Because in the way Cook is doing, the datas are separated from the control. Very important to my point of view.

So your user field most be a combo or what you want. The list of users is filled from YOUR component. So you can filter the list or do what you want.
Cook is keeping JDom for long.

Have a look how Joomla standard is creating filters, it is a mess.
Cook uses XML + JDom.
Coding is now a piece of cake
The following user(s) said Thank You: vivek

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

Incorrect form field type generated by cook 30 Jun 2013 19:15 #7775

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Hi,
I don't have any problems with using the jcook fields if it is working properly.

I just tested the access level field, it is showing a dropdown now but with empty values.Can you please check that.

Regards
Vivek

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

Incorrect form field type generated by cook 30 Jun 2013 19:25 #7776

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Thanks Admin..It works fine now after I flushed the dataset.

Regards
Vivek

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

Incorrect form field type generated by cook 01 Jul 2013 16:12 #7787

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Latest download of the component still shows empty values in the access level list.

Regards
Vivek

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

  • Page:
  • 1
Time to create page: 0.070 seconds
In the begining i would like to say that j-cook is absolutly fantastic tool! And the person who created it is a genius.
Czyżak (Forum)  

Get Started