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

TOPIC:

Publised field not working when toggleable/form? 07 Jul 2014 11:11 #12507

Hi,

I came across some weird behavior recently.
In one of my projects I have a "published" field (called Active) toggleable in the backend collection.
When toggling, this works as expected. The item is published/unpublished accordingly.

But I also have this field "Active" on the editpage.
The state of this field does not represent the state of the item correctly, it looks as if it is never saved.
When clicking yes or no and then saving the item, it always goes back to unpublished and the state is not saved.

I have created this active field by adding a bool field to the database, naming is active (published is not allowed) and then adding a wizard "publish" and connecting "active" to it. In the database, j-cook renames the field to "published" and keeps the label "Active"

For this purpose I created a project "Test" with 1 table "Test".

I would also like to have a field with relates to mysql "LONGTEXT", all the fields have TEXT, which is to limited for a specific project for me.

*edit* images upload does not work?

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

Last edit: by Romkabouter.

Publised field not working when toggleable/form? 06 Aug 2014 15:27 #12580

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This ticket is now fixed.

Regenerate your component and replace the file
models/fields/ckstate.php
Coding is now a piece of cake

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

Publised field not working when toggleable/form? 15 May 2015 14:25 #12996

Hi Admin,

This problem seems to be current again, can you check?
Problem can be found in Trailrides/Ritten/Rit

Toggle in collection works, but when going to the edit screen, the active field is not set.
Setting it to yes does not publish the item, also it is not saved.

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

Last edit: by Romkabouter.
  • Page:
  • 1
Time to create page: 0.061 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started