Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Grid view/Collection view

Grid view/Collection view 26 Mar 2014 02:41 #12356

  • naude
  • naude's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Karma: 0
Is there a way for a user to only view the entries he/she created and NOT the entries another user created?


I have tried using Joomla's default permission settings with no success.
Regards,
The administrator has disabled public write access.

Grid view/Collection view 26 Mar 2014 10:51 #12357

  • mtifinn
  • mtifinn's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 2
  • Karma: 0
Yes I struggled with this at first too. But it does work

When creating your tables make sure you add the Wizards for Joomla Access. For completeness I also routinely add the wizards for Created by and Modified By, checkin/checkout, creation date etc. These are all Joomla standard fields and it makes sense to have them.

With all of this in your tables then your views should limit based n the ACL settings you set in Joomla. ie: Load your component, go to your component in backend, and amend Options to allow user groups to view and edit their own only. (ps: I have not seen where I can set permissions directly in J-Cook Builder)


:)

PS: One gotcha I have found is that if you create a fly view, which has no fields or tool bar (a blank canvas which you create the fields yourself) then obviosuly you will have to add your own code to limit the that view via the ACL
Last Edit: 26 Mar 2014 10:54 by mtifinn.
The administrator has disabled public write access.
The following user(s) said Thank You: naude

Grid view/Collection view 26 Mar 2014 12:00 #12358

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
You need to instance the published wizard and set default to 0.

When items are unpublished + author wizard, only author can see them.
I should write a doc on this.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: naude
Time to create page: 0.145 seconds

Get Started