I've been able to change the colors of the google maps block before.
But now, it suddenly stopped working (concrete 5.7.5.4).
To do this i edit the view.php file for the google_maps block:
<?phpdefined('C5_EXECUTE') or die("Access Denied.");$c= Page::getCurrentPage();if($c->isEditMode()){?>
<div class="ccm-edit-mode-disabled-item" style="width: <?phpecho$width;?>; height: <?phpecho$height;?>">
<div style="padding: 80px 0px 0px 0px"><?phpecho t('Google Map disabled in edit mode.')?></div>
</div>
<?php}else{?><?phpif(strlen($title)>0){?><h3><?phpecho$title?></h3><?php}?>
<div id="googleMapCanvas<?phpecho$unique_identifier?>" class="googleMapCanvas" style="width: <?phpecho$width;?>; height: <?phpecho$height;?>"></div>
<?php}?><?php/*
Note - this goes in here because it's the only way to preserve block caching for this block. We can't
set these values through the controller
*/
This sounds like you might have edited the Google Map block's view.php file directly in the concrete folder, instead of creating an override for it.
When concrete5 is updated, the core is effectively replaced, along with it any changes you've made to it. This is why you never modify the core, you always create override for it.
Your sample code looks correct, but this would live in:
/application/blocks/google_map/view.php
You can point towards an image if you'd like. In the above example, that will be images/beachflag.png. So just point towards an .png/.jpg or whatever image file you have!
Code
Post Reply
Delete Post
You are allowed to delete your post for 5 minutes after it's posted.
This website stores cookies on your computer. These cookies are used to improve
your website experience and provide more personalized services to you, both on this website and through
other media. To find out more about the cookies we use, see our Privacy Policy.
When concrete5 is updated, the core is effectively replaced, along with it any changes you've made to it. This is why you never modify the core, you always create override for it.
Your sample code looks correct, but this would live in:
/application/blocks/google_map/view.php