Problem/Motivation
During the conversion the links are turned into
links:
- 'https://designsystem.digital.gov/components/combo-box/'
But the code in the templates
{% if component.links %}
<div class="ui_patterns_component__links">
{% if component.links|length > 1 %}
{{ "Links:"|t }}
<ul>
{% for link in component.links %}
<li class="ui_patterns_component__link">
<a href="{{ link.url }}">{{ link.title|default("Documentation") }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<p class="ui_patterns_component__link">
<a class="usa-button" href="{{ links[0].url }}">{{ links[0].title|default("Documentation") }}</a>
</p>
{% endif %}
</div>
{% endif %}
Expect a url and title key
Steps to reproduce
Proposed resolution
Remove need of url / title key
Or update links conversion.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork ui_patterns-3462146
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pdureau commentedlet's wait #3438360: Use Drupal entities & plugins for the Library pages before doing anything
Maybe a field formatter plugin will fix that
Comment #3
pdureau commentedComment #4
pdureau commentedComment #5
pdureau commentedComment #7
pdureau commentedComment #8
pdureau commented