Created
October 22, 2012 19:04
-
-
Save glideranderson/3933408 to your computer and use it in GitHub Desktop.
Concrete5 Get attribute set by handle, loop thru attribute keys, output key name and key value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $attr_set = AttributeSet::getByHandle('boat_model_info'); ?> | |
<?php $attr_keys = $attr_set->getAttributeKeys(); ?> | |
<?php foreach($attr_keys as $ak) { ?> | |
<li class="spec-name"><?= $ak->akName ?></li> | |
<li class="spec-value"><?= $c->getAttribute($ak->akHandle) ?></li> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment