Support Team
posted this
06 December 2016
Hi Robert,
Hover Box is a simple html control. This is container for other controls and it has no connection to CMS. Therefore there is no easy way to achieve this except adding Post image to the hover slide. Post Image is an image link to the article.
To navigate the CMS article you need to place something to the hover slide which will navigate to the article. In other words you need a link to the article.
As a possible solution you can place CMS Code control (Insert tab >> More) on the hover slide and add the following code:
<?php if (isset($data['header-text']) && strlen($data['header-text'])) : ?>
<?php if (isset($data['header-link']) && strlen($data['header-link'])) : ?>
<a <?php echo funcBuildRoute($data['header-link'], 'href'); ?>>
<?php echo $data['header-text'];?>
</a>
<?php else: ?>
<?php echo $data['header-text']; ?>
<?php endif; ?>
<?php endif; ?>
This code creates a link to the article.
Bu removing <?php echo $data['header-text'];?> line you can create empty link.
This empty link can be stretched to the whole size of the CMS Code control:
< a style="display: block; width: 100%; height: 100%" <?php echo funcBuiltRoute...
The control itself should be stretched the the whole size of the hover slide.
Thank you,
Olivia
Hi Robert,
Hover Box is a simple html control. This is container for other controls and it has no connection to CMS. Therefore there is no easy way to achieve this except adding Post image to the hover slide. Post Image is an image link to the article.
To navigate the CMS article you need to place something to the hover slide which will navigate to the article. In other words you need a link to the article.
As a possible solution you can place CMS Code control (Insert tab >> More) on the hover slide and add the following code:
` <?php if (isset($data['header-text']) && strlen($data['header-text'])) : ?>
<?php if (isset($data['header-link']) && strlen($data['header-link'])) : ?>
<a <?php echo funcBuildRoute($data['header-link'], 'href'); ?>>
<?php echo $data['header-text'];?>
</a>
<?php else: ?>
<?php echo $data['header-text']; ?>
<?php endif; ?>
<?php endif; ?>`
This code creates a link to the article.
Bu removing `<?php echo $data['header-text'];?>` line you can create empty link.
This empty link can be stretched to the whole size of the CMS Code control:
`< a style="display: block; width: 100%; height: 100%" <?php echo funcBuiltRoute...`
The control itself should be stretched the the whole size of the hover slide.
Thank you,
Olivia