module - prestashop/blocklayered - a way to propagate the current page value to all the page components? -
i've found if 1 uses blocklayered module, current page param ($p, frontcontroller) not updated globally when change page. means relative smarty var available in small areas such ul.pagination in pagination.tpl. that's due ajax nature of module.
and that's awful. need pagination data outside small chunks , in every point of category tpl components. should in fact this, since there $p var in frontcontroller doesn't updated , cannot read in $_get or $_post, , should. @ least should posted, or there should kind of hook read onchange.
is there way achieve this?
thank
i found way @ least 'expand' scope of $p.
in pagination.tpl, wrap ul.pagination in say, div.pagination-box
then modify blocklayered.js, expecially in reloadcontent(), in ajax onsuccess callback what's updated div.pagination-box instead of ul.pagination.
that lets me updated {$p} in div.pagination-box (and since child, in ul.paginationof course). can add arbitrary things outside ul, in div.pagination-box.
hope helps people having same issue.
anyway, have updated $p in every chunk of every .tpl.
if find better solution, please post here.
Comments
Post a Comment