Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Publised field not working when toggleable/form?

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

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
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?
Last Edit: 07 Jul 2014 11:24 by Romkabouter.
The administrator has disabled public write access.

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

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

Regenerate your component and replace the file
models/fields/ckstate.php
Coding is now a piece of cake
The administrator has disabled public write access.

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

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
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.
Last Edit: 19 May 2015 19:48 by Romkabouter.
The administrator has disabled public write access.
Time to create page: 0.100 seconds

Get Started