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.
I have the module configured to show titles, but it doesn't make sense to show titles when there is no content to display. Would probably work to either check if the item.content is empty before rendering the sitemap-box in the twig template or to check in the module code and pass a variable to the template, something like, "has_content" with a boolean and check against that before rendering the box in the template.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2828839-2.patch | 1.78 KB | akalata |
Screen Shot 2016-11-18 at 8.29.15 AM.png | 69.25 KB | anthorn305 |
Comments
Comment #2
anthorn305 CreditAttribution: anthorn305 as a volunteer commentedThis seems to just be an issue with Taxonomy Terms, I'm working on a patch now.
Comment #3
akalata CreditAttribution: akalata commentedThanks for the report!
Comment #6
akalata CreditAttribution: akalata commentedThe test needs to be updated; should check for no description when there are no terms, and for description when there are terms listed (requires content tagged w/ terms).
Comment #7
akalata CreditAttribution: akalata commentedComment #8
akalata CreditAttribution: akalata commentedComment #10
akalata CreditAttribution: akalata commentedFixed and refactored taxonomy-related tests.