passing custom block output value to page list
Permalink
Hi,
I would like to pass a value from a block on a page to the page list output.
The client adds a custom created block to a page in which a value is chosen from a select box.
I would like the chosen value from this selectbox to be shown on the page list teaser.
(I have created a custom page_list template)
custom block view.php:
(this is outputting the value to the page).
and a custom page list template:
Thanks,
Una
I would like to pass a value from a block on a page to the page list output.
The client adds a custom created block to a page in which a value is chosen from a select box.
I would like the chosen value from this selectbox to be shown on the page list teaser.
(I have created a custom page_list template)
custom block view.php:
<?php if (isset($selectbox) && trim($select) != "" && array_key_exists($select, $select_options)) { ?> <?php echo $select_options[$select]; ?><?php } ?>
(this is outputting the value to the page).
and a custom page list template:
// get value from block, something like: $test = $page->getValue($select_options[$select]); //output of select value: <?php echo $test ?> </div>
Thanks,
Una