following blueprint configuration i have made.
the things filled right in the txt file.
featuredpages:
label: Read my Dear
help:
type: structure
style: table
fields:
reading:
label: Extract
type: select
options: query
query:
page: /
fetch: pages
template: referenz
theme:
label: Topic
type: text
help: Editorial, Corporate, Storytelling, freies Stück
now i cant output my data to my template. i tried the loop way, but i didnt achieve anything.
cn you help me.
<?php // get all structure fields
$featuredpages = $page->featuredpages()->toStructure(); ?>
<ul class="pages">
<?php foreach($featuredpages as $feature): ?>
<li>
<h4><?php echo $feature->reading()->html() ?></h4>
<p> <?php echo $feature->theme()->html() ?></p>
<a href="<?php echo $feature->reading()->url() ?>"> Read on my dear </a>
</li>
<?php endforeach ?>
</ul>