Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Just a few question on managing the display of asset module elements.
- Is there a best method to hide the asset title from e.g. 'Image' asset type in this module itself?
- Is there a reason why you cannot modify the display parameters of the asset 'title' / 'asset module element' from 'Manage Display' of asset type?
- Would there be much work involved in patching this if it should be there and where should I start?
Thanks,
Paul.
Comment | File | Size | Author |
---|---|---|---|
manage_asset_display.png | 50.33 KB | mccrodp | |
manage_asset_fields.png | 66.21 KB | mccrodp |
Comments
Comment #1
aasarava CreditAttribution: aasarava commentedDoes anyone have any tips on how to hide the title on assets? I tried Display Suite, but the extras option doesn't seem to work on asset entities.
Comment #2
JonesUI CreditAttribution: JonesUI commentedAt the very least, could the title field be wrapped in a div with a class (e.g. asset-title) so we can hide it via CSS.
The title is currently wrapped in a
<strong>
tag which is not great for CSS targeting and not very correct semantically.Comment #3
Jody LynnCopy asset.tpl.php to your theme and remove the title.
Comment #4
mccrodp CreditAttribution: mccrodp commentedThanks. I have not used asset in a while and I should have included a reference to the template file method you mention Jody.
However, this ticket is referring to removal of the title at the module layer / level rather than theme level.