Show Page Attribute in Masonry Cards
Permalink Browser Info Environment
Hi,
i would like to show a created page attribute "news" in the masonry cards page list. It will be positioned in a css-styled div right before the closing tag </a> in line Line 157 in view.php:
<?php echo h($news) ?>
The variable is:
$news = $page->getAttribute('news', 'display');
As a non-programmer I can barely even tweak the built in concrete page list and of course I failed to show the news attribute in the Grand Gallery page list. I can display static text or the page title for testing in the div with:
<?php echo h($image['view_title']); ?>
but not my page attribute. Any hints?
Regards
i would like to show a created page attribute "news" in the masonry cards page list. It will be positioned in a css-styled div right before the closing tag </a> in line Line 157 in view.php:
<?php echo h($news) ?>
The variable is:
$news = $page->getAttribute('news', 'display');
As a non-programmer I can barely even tweak the built in concrete page list and of course I failed to show the news attribute in the Grand Gallery page list. I can display static text or the page title for testing in the div with:
<?php echo h($image['view_title']); ?>
but not my page attribute. Any hints?
Regards
Type: | Discussion |
---|---|
Status: | Archived |
if you want to display any Page attribute, you can do something like that: