Welcome, Guest
Username: Password: Remember me

TOPIC: Using Filters with published / unpublished datas

Using Filters with published / unpublished datas 18 Feb 2012 11:40 #1360

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
Hello Admin,

In my jbreedm Project for j2.5, I have a data field 'Publish' at the end of each Table. Now, I try to add filters (backend side), to display only Published Items or Unpublished Items.

When I set the filter in the layout page, we can not drag and drop the publish field, becaude it's is not a foreigh key!

How can I do, what is the good method?

Thank you.
The administrator has disabled public write access.

Re: Using Filters with published / unpublished datas 18 Feb 2012 12:19 #1363

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Not available yet.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Using Filters with published / unpublished datas 20 Feb 2012 13:31 #1400

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Added !

You can now filter on a bool.
If you want to change 'True' and 'False' strings for 'published/unpublished', do it in the layout file.

Enjoy.


EDIT : If you want to see unpublished items in front-end, a filter will not do the job, because they can only reduce the existant query. In that case, please change your front-end model for that. (Have a look on the backend model of the same table)
Coding is now a piece of cake
Last Edit: 20 Feb 2012 13:34 by admin.
The administrator has disabled public write access.
Time to create page: 0.072 seconds

Get Started