-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit display of person names in browse view #75
Comments
Note that I tried Browse -> Edit View -> Content -> Manage Display -> Adding a number after the Format ("Separated") in "People", which should have limited the number that displays, but evidently this only works for some formats (if you adjust this when the format is "List", for instance, it works fine). "Separated" format is necessary to display the terms linked and separated by commas, however. |
It sounds like the limit handing changes with more recent versions of Drupal, so it may be worth waiting to work on this until Mukurtu 4 is released. Alternatively, "People" could be removed from teaser view for now. |
We might be able to use CSS, though it might not be a great long term solution https://www.benmarshall.me/max-character-length-ellipsis-css/ |
That CSS approach looks viable and would certainly be easier than messing with code which could be completely changed with Mukurtu 4 |
Adding the following to the bottom of the genoa.css file seems like the best option: .view-mode-search_result .field.field-name-field-people { This limits the display of names in the search results but not the individual item page. We may also want to do this for the teasers? |
For items with more than 100 names, we want to limit the number that display in the browse view:
Ideally that view would display the first 100 names, then an ellipsis to indicate that there are more.
The text was updated successfully, but these errors were encountered: