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:
- 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).
- 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.
| Comment | File | Size | Author |
|---|---|---|---|
| recent_comments_block__Comment____My_Family_Travels-4.png | 101.43 KB | sam moore | |
| recent_comments_block__Comment____My_Family_Travels-5.png | 126.23 KB | sam moore |
Comments
Comment #1
nevets commentedI would start by looking in the JavaScript console window for errors.
Comment #2
sam mooreThanks - sadly, nothing useful there (I should have mentioned I already checked).
Comment #3
sam mooreOK, 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.
Comment #4
nevets commentedAre you using the version of jQuery that comes with core or using jQuery Update?
The behavior you describe suggests the JavaScript code is failing.
Comment #5
sam mooreWell you're right - it was jQuery Update that was causing the problem.
Thanks for the tip.
Pity it wasn't throwing any errors though...
Comment #6
mike_san commentedI fixed my similar problem by setting the Jquery update settings to ver 1.5 on admin pages.
Home » Administration » Configuration » Development » JQuery update
Comment #7
jenpasch commentedthank 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
Comment #8
renatog commented#6 solves the similarly problem
Comment #9
renatog commentedThank you very much for your help @mike_san