Skip to content
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

Update webtools calendar template with new urls #978

Open
1 task
magjarvis opened this issue Jan 9, 2024 · 3 comments
Open
1 task

Update webtools calendar template with new urls #978

magjarvis opened this issue Jan 9, 2024 · 3 comments
Assignees

Comments

@magjarvis
Copy link
Contributor

  • Update webtools calendar paragraph template with new URLs from Webtools
@magjarvis magjarvis self-assigned this Jan 9, 2024
@magjarvis
Copy link
Contributor Author

webtools

Copy link

github-actions bot commented Jan 9, 2024

@trubach
Copy link
Contributor

trubach commented Jan 18, 2024

The twig file that should be updated to fix this issue can be found at

<script src='https://calendars.illinois.edu/pc/{{ content.field_calendar_id['#items'].0.value }}/{{ content.field_calendar_type['#items'].0.value }}.js'></script>
{% if content.field_calendar_type['#items'].0.value == '13' %}
{% if content.field_calendar_more['#items'] %}
<div class="field--name-field-calendar__more ">
<a class="il-button" href="https://calendars.illinois.edu/list/{{ content.field_calendar_id['#items'].0.value }}">View all events</a>
</div>
{% endif %}
{% else %}
{% if content.field_calendar_more['#items'] %}
<div class="field--name-field-calendar__more ">
<a href="https://calendars.illinois.edu/list/{{ content.field_calendar_id['#items'].0.value }}">View all events</a>

It should just be a matter of adding "files." to the embed URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants