Hi,
I have this on my blueprint.
If I select a page that is on level 2, than the page link is broken.
How to resolve this?
Blueprint
slider:
label: Slider
type: structure
style: table
fields:
title:
label: Title
type: text
text:
label: Text
type: text
image:
label: Image
type: image
url:
label: Target
type: select
options: pages
Template
<img src="<?php $image=$slide->image()->toFile(); echo thumb($image, array('width' => 1920, 'height' => 808, 'crop' => true))->url() ?>" alt="<?php echo $slide->title()->html() ?>" class="slider-bg">
<div class="container">
<div class="row">
<div class="col col-md-8 col-sm-10 slide-caption">
<h2><?php echo $slide->title()->html() ?></h2>
<p><?php echo $slide->text()->kirbytext() ?></p>
<?php if(!$slide->url()->empty()): ?>
<div class="btn-group">
<a href="<?php echo $slide->url()->html() ?>" class="theme-btn-s2"><?php echo l::get('btn-more-info') ?></a>
</div>
<?php endif ?>
</div>
</div>
</div>
</div>
<?php endforeach ?>