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

TOPIC:

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

  • liubov
  • liubov's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
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.

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

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

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

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.059 seconds

I'm playing around with the new mvc and the FORK feature is FANTASTIC!!! it's saving me a lot of time! you are doing a very good job!!

Tomaselli (Forum)  

Get Started