Extra Information - Custom Fields - Restrict access

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
7 years 5 months ago #118772 by David Unwin
We use the Extra Information facility.
We have set up the xml file
We have one field which we make available to all our members (access Group Registered this is the default to access our Event booking events.
We want to have another field , Let's call it 'Staff Rota' which can only be seen by our Staff (access group 'Manager')
I can't see a way to make field 'Staff Rota' only available to access Group 'Manager'
Is it possible to do this in any way???

David

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 5 months ago #118773 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Extra Information - Custom Fields - Restrict access
Hi David

No, it's not possible. For that, you will have to edit code in the file components/com_eventbooking/themes/default/common/event_properties.php

Regards,

Tuan

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

More
7 years 5 months ago #118847 by Donal
I really like this idea, and could use it extensively.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 5 months ago #118852 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Extra Information - Custom Fields - Restrict access
For now, the only way is customizing the code. In the future, we can try to add a new setting to each field, maybe called access or access level and only show the field base on the access level of current logged in users

If there are more customers need it, I would be happy to explode the idea and implement it

Tuan
The following user(s) said Thank You: David Unwin

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

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
7 years 5 months ago #118856 by David Unwin
Replied by David Unwin on topic Extra Information - Custom Fields - Restrict access
Hi Tuan,
I will add this to 'Features Wish list ' and see if any other customers would like it.
David

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 5 months ago #118867 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Extra Information - Custom Fields - Restrict access
OK, thanks. I'm busy at the moment, but asked a staff to look at this as well. If we get it implemented (maybe sometime this week), we will update you so that you can update and use this new improvement

Tuan
The following user(s) said Thank You: David Unwin

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

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
7 years 5 months ago #118882 by David Unwin
Replied by David Unwin on topic Extra Information - Custom Fields - Restrict access
Hi Tuan,
Thank you for considering this enhancement. I think many customers who organise events will appreciate it.
For Your Information:How we would use it?
Our event organisers organise events. For each event there is information they use both for the event and after the event. This includes, but no limited to the following:
. Speaker Notes
. Lists of Staff on duty at the event
. Catering arrangements
. Attendee feedback forms
. After event notes ( What went right, what went wrong)
All this information is very useful for the event organiser as they can review the event and then make changes for the next time they run an event on this type.
Most common Filed types used
Text Area (with wysiwyg editor) ie JCE editor)
Files (ability to include doc,docx and pdf files)

Kind regards

David

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 5 months ago #118893 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Extra Information - Custom Fields - Restrict access
We should be able to support access level for every file. However, from the list of field types you listed above, File custom field is not supported at the moment (the system does not processing upload files for file custom field type at the moment, so it does not work)

Maybe we can improve it in the future, too. But it will take time

Tuan

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

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
7 years 4 months ago #118916 by David Unwin
Replied by David Unwin on topic Extra Information - Custom Fields - Restrict access
Tuan, Re FILE custom field. We can get around that issue by having a text area field and using the text editor (Ie JCE editor) to include a file. Something else I just though of. Another thing you might want to consider in the future is integration with Edocman for files. We use Edocman extensively on our site. You could maybe give an option to the Attachment facility in Events Booking to select a file or Edocman. Then you could use Edocman's ACL facility to limit access? Just a thought?
Kind regards
David

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 4 months ago #118917 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Extra Information - Custom Fields - Restrict access
For file, for now, I guess you will use a text field, then put link to download the file directly here (or using HTML a tag to put link to download file)

For access level for fields, I just updated download package on server which implement this feature. You can download latest version, update to your site, and use this improvement:

For example, with the definition below:
Code:
<?xml version="1.0" encoding="UTF-8"?> <config> <fields name="params"> <fieldset name="basic"> <field name="field_speaker" type="text" label="Speaker" size="50" description="" access="2"></field> <field name="field_hours" type="text" label="Number Hours" size="50" description="" access="6"></field> </fieldset> </fields> </config>

Field speaker has access = 2, mean it has Public access level and visible to everyone

Field Number Hours has access=6, mean Super User access level, it will only visible to super users

Regards,

Tuan
The following user(s) said Thank You: David Unwin

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

Moderators: Tuan Pham Ngoc