I'm thinking this is a Views UI thing, but if it belongs somewhere else I'd be grateful for a pointer.

I'm editing a view that was originally built by the previous developer on my project.
In my dev environment, I can set certain options for fields exposed by my view; but in my production site, those options are gone from the interface.
Dev and production are on the same server.

Specifically:

  1. I'm adding an image field that has unlimited instances in the content type. Normally I'd expect some settings in the Multiple Field Settings section to allow me to set both the number of images displayed, and the offset (1st one, second one, etc.) These options appear, and work fine, on the dev site. However on the production site these options simply don't appear (see screen shot).
  2. I have a text field that I'd like to trim. The "Trim this field..." check box is there, but there's no option for number of characters, trim only on word breaks, add an ellipsis, etc. (See other screen shot).

I have no idea even how to go about debugging this, so any pointers will be greatly appreciated.

Comments

nevets’s picture

I would start by looking in the JavaScript console window for errors.

sam moore’s picture

Thanks - sadly, nothing useful there (I should have mentioned I already checked).

sam moore’s picture

OK, so I did discover that the fields I need which are not being displayed have display:none applied at the element level (that is, not by a style sheet).
By turning off this property I can make the fields accessible - and their settings do "take", so functionality is there.
It's odd though, and I can't figure out where this is being set.
I doubt it's theme-related, as I'm using Seven for admin theme, and the problem persists if I switch the admin theme to Bartik.

I have an earlier version of the site (I inherited this project from the client's previous developer) where everything works, so I guess I'll start comparing modules & config settings.

nevets’s picture

Are you using the version of jQuery that comes with core or using jQuery Update?

The behavior you describe suggests the JavaScript code is failing.

sam moore’s picture

Well you're right - it was jQuery Update that was causing the problem.
Thanks for the tip.
Pity it wasn't throwing any errors though...

mike_san’s picture

I fixed my similar problem by setting the Jquery update settings to ver 1.5 on admin pages.

Home » Administration » Configuration » Development » JQuery update

jenpasch’s picture

thank you mike_san, setting the Jquery update to ver 1.5 on admin pages fixed a similar problem I was having setting field classes etc

renatog’s picture

Status: Active » Reviewed & tested by the community

#6 solves the similarly problem

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Thank you very much for your help @mike_san

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.