CGContentUtils and Products
Posted: Sat Nov 23, 2019 4:40 pm
Hello! Please help if it is possible to show the list of the hierarchy of the Products module using the CGContentUtils module.
I tried using
, but this does not work.
then I created a UDT tag
in the module Calguys Content Utilities created a drop-down list with parameters
but when editing the page I get only the first record, although udt shows me all the positions of the hierarchy.
I tried using
Code: Select all
{cms_module|strip_tags module='Products' action='hierarchy' 'hierarchytemplate ='options'}
then I created a UDT tag
Code: Select all
$db = cmsms()->GetDb();
$query = "SELECT * FROM cms_module_products_hierarchy";
$result = $db->Execute($query);
while( $result && $row = $result->FetchRow() ) {
echo ($row['id']).'|'.($row['name']).'<br>';
}
Code: Select all
{myudt|strip_tags}