If Page attribute in page list
Permalink
Within the template of a theme I used the following code once to get the value of a attribute. If bigger then, show the rest.. quite easy.
<?
Loader::model('collection_attributes');
$ak = CollectionAttributeKey::getByHandle('add_products_masts');
$value = $c->getCollectionAttributeValue($ak);
?>
<?php if($value == "1") { ?>showwwwwww?php } ?>
This same thing I would like to do in a custom page list template. Though I tried some, this does not seam to work. Any thoughts on what I should try?
<?
Loader::model('collection_attributes');
$ak = CollectionAttributeKey::getByHandle('add_products_masts');
$value = $c->getCollectionAttributeValue($ak);
?>
<?php if($value == "1") { ?>showwwwwww?php } ?>
This same thing I would like to do in a custom page list template. Though I tried some, this does not seam to work. Any thoughts on what I should try?