Making changes to a template/div

Permalink
Hi Community

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

 
jasteele12 replied on at Permalink Best Answer Reply
jasteele12
First, never modify the concrete core code - it would be overwritten by any update.

Second, make sure Overrides Cache is off for this type of testing (you can turn it back on when you are done):
http://yoursite.com/index.php/dashboard/system/optimization/cache

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
steinersystems replied on at Permalink Reply
Worked like a charm - Thanks John!
jasteele12 replied on at Permalink Reply
jasteele12
Glad to hear it Lars :)