Making changes to a template/div
Permalink
Hi Community
I want to change a div in the standard block "Event List", called
The code want to have in the div is
I've found the div in the following file: concrete/blocks/event_list/view.php and changed it from
to
but it doesn't work... I cleared the cache, refreshed the browser - I can't see any changes to the div...
Am I missing something?
Any help is much appreciated :)
Cheers,
Lars
I want to change a div in the standard block "Event List", called
<div class="ccm-block-calendar-event-list-event-description"> <p>some text out of the calendar event</p> </div>
The code want to have in the div is
<div class="ccm-block-calendar-event-list-event-description"> <details> <summary>show more</summary> <p>some text out of the calendar event</p> </details> </div>
I've found the div in the following file: concrete/blocks/event_list/view.php and changed it from
<div class="ccm-block-calendar-event-list-event-description"> <?=$description?> </div>
to
<div class="ccm-block-calendar-event-list-event-description"> <details> <summary>show more</summary> <?=$description?> </details> </div>
but it doesn't work... I cleared the cache, refreshed the browser - I can't see any changes to the div...
Am I missing something?
Any help is much appreciated :)
Cheers,
Lars
Second, make sure Overrides Cache is off for this type of testing (you can turn it back on when you are done):
Copy concrete/blocks/event_list/view.php to application/blocks/event_list/view.php
or create a Custom Template like "Show More" by copying the same file to application/blocks/event_list/templates/show_more/view.php
You can also copy/modify view.css if you want to change the appearance.
Make your modifications to the new file (or template) and let us know how it goes. - John