Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Not Able To Set Unpublished as default

Not Able To Set Unpublished as default 28 Sep 2013 17:18 #11215

  • Collins
  • Collins's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • Karma: 0
I am not able to set unpublished as the default.

I do not know if this is an error in Cook.

Here is what I did:

I set unpublished as required with default value zero, however it did not work.

I have only one project, it contains one table "Prayers"

In the "Prayers" Table in the "publish field" I set:

Required = checked
Default Value = 0
Edit Check = 0

But it doesn't work. All records I create are published. I know this because: Every user can still view all entries by other users.
The administrator has disabled public write access.

Not Able To Set Unpublished as default 28 Sep 2013 18:59 #11218

  • yves
  • yves's Avatar
  • Offline
  • New Member
  • Posts: 6
  • Karma: 0
Same trouble for me, setting 0 as default doesn't work.

Also, if I clic on "Unpublished" button and save, I have a Warning - Invalid field: Published.

Thanks for help
The administrator has disabled public write access.

Not Able To Set Unpublished as default 29 Sep 2013 23:28 #11240

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Did you tried to remove the field validator ? It is not necessary, but instancied per default because Published is an integer.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: yves

Not Able To Set Unpublished as default 29 Sep 2013 23:44 #11245

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
The first problem is fixed.
The second is linked to the validation that should not occur.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: yves

Not Able To Set Unpublished as default 02 Oct 2013 17:22 #11278

  • Collins
  • Collins's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • Karma: 0
I removed the validator.
But every user can still see every other user.

I have been trying to do this for weeks.
Please just tell me how to do it with a fork.

I have only one table.
How do I change the query that displays that table in the grid, so that the user can only see their own records?

Please tell me how to access the query and how to bring the current user-id into that query.
The administrator has disabled public write access.

Not Able To Set Unpublished as default 02 Oct 2013 18:10 #11280

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Your Publish wizard was not good instancied.
Was it old ?

Because when I recreated it it has worked.
The way it create its link with the field has changed, but long time ago. I am surprised.
For the moment I cannot see the problem clearly, but it has happened already that we need to recreate the link between wizard and field.

I have downloaded your project, tested and it works now.
Coding is now a piece of cake
The administrator has disabled public write access.

Not Able To Set Unpublished as default 03 Oct 2013 03:16 #11287

  • Collins
  • Collins's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • Karma: 0
Yes !
It works now :)

Thank you !
The administrator has disabled public write access.
Time to create page: 0.085 seconds

Get Started