display stack content getStackID not working (working with getStackName)
Permalink
Hi,
I'm building a block and I want to display a stack in each item of an accordion.
However I have an issue because in my view.php
This is working well
<?php $stack = Stack::getByName($contentStack); $stack->display(); ?>
This is not working:
<?php $stack = Stack::getByID($contentStackID); $stack->display(); ?>
Has someone an idea ? My object is valid and exist in both case it display the same information with var_dump($stack)
Thanks for your help
I'm building a block and I want to display a stack in each item of an accordion.
However I have an issue because in my view.php
This is working well
<?php $stack = Stack::getByName($contentStack); $stack->display(); ?>
This is not working:
<?php $stack = Stack::getByID($contentStackID); $stack->display(); ?>
Has someone an idea ? My object is valid and exist in both case it display the same information with var_dump($stack)
Thanks for your help