Hiding or showing fields in front end

9 posts / 0 new
Last post
holmesg
Hiding or showing fields in front end

I'm drawing a blank here ... where in the admin interface do I go to control which fields show for the front end view of a resource?

 

For example, if I didn't want "Release Flag" to show in the full record view on the front end, but I do want it to be editable for admins (and perhaps searchable), where do  I set that?I 

chalpin
Re: Hiding or showing fields in front end

To determine who can view a field, you'll want to set that field's "Viewing Permissions" in EditMetadataField (accessed via Administration / Metadata Field Editor / (Name of Field) ).  Search settings are also configured on EditMetadataField, though note that users must be able to view a field before they can search it.  For example, if Release Flag has "Include in Advanced Search = Yes", then those users who can view release flag will see it as an Advanced Search option.

If you haven't already, it may be useful to read Help / Collection Administration Help / Permissions and Access Control before editing your permission settings.

holmesg
Re: Hiding or showing fields in front end

I must be doing something wrong. 

 

When I adjust the Viewing Permissions to try to prevent ordinary users from seeing the field, the full record view starts prompting for login. What I want is for it to simply not display the field.

chalpin
Re: Hiding or showing fields in front end

Is there a chance you could attach a screenshot of the permissions for your Release Flag?  Without seeing your settings, it's hard to say what might go wrong.

I've attached a screenshot of the default permissions in new installs, in which Release Flag is only visible to privileged users.

holmesg
Re: Hiding or showing fields in front end

Hmm, I can't seem to add any permission requirements (before I had mistakenly edited the schema!).

 

Whern I try to add that user must be Master Resource Admin, it doesn't save. No errors are logged either.

holmesg
Re: Hiding or showing fields in front end

I am unable to add any permission requirements to a field. When I click Update Field I am taken back to the Metadata Field Editor, but no change has occured. 

chalpin
Re: Hiding or showing fields in front end

Do you have a custom version of EditMetadataField.html ?

holmesg
Re: Hiding or showing fields in front end

No, at this point that was the first thing I checked :)

chalpin
Re: Hiding or showing fields in front end

Hm.  Do you have a customized StdPageStart, and does it have <script> elements that pull in CW-Base.js and CW-Helpers.js ?  If those are missing, it may break the previlege editing functionality.

It might be a good idea to switch your user to the default 'CWIS' interface in your user preferences, and see if that resolves the problem.