Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Look in the documentation for a special macro.
dev.docs.umi-cms.ru/spravochnik_makrosov_umicms/st...
If we are not talking about all pages, but with certain typePages, then there is a custom solution described here:
http://wiki.umisoft.ru/Viewed_products
Maxim , on the product page you need to add the code
$this->macros('content', 'addRecentPage', array($variables['@pageId']));
, where $variables['@pageId'] is the id of the current page. $productList = $this->macros('content', 'getRecentPages', array(null,null,null,null,'3')); // 3 - получить количество просмотренных товаров
$hierarchy = umiHierarchy::getInstance();
$pageObject = $hierarchy->getElement($id);
<? foreach($productListas['subnodes:items'] as $item): ?>
<?$pageObject = $hierarchy->getElement($item[@id]);?>
<?$pageObject->getValue('h1');?>
<? endforeach; ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question