Re: default/en/category_description.tpl
Quote:
We are working on the manual update at the moment, hope this article will be also revised soon. |
Re: default/en/category_description.tpl
That's fine. what about the rest ?
|
[SOLVED] Re: default/en/category_description.tpl
so after much hair pulling and despite the lack of detailed information in the online documentation, I have managed to flail my way to a workable solution while at the same time learning the proper way to do this.
In addition, I would like to point out that I would NOT have figured this out using only webmaster mode... Webmaster Kit module was *invaluable*, ultimately, in figuring out just what was needed, by virtue of the trace image here: http://i67.tinypic.com/be9geo.jpg and the information here http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes The docs don't go into a great deal of detail on what you need to do (athough the first step is mentioned, which lent me a clue) when you need to override something that isn't a member of @ListChild -- in this case, what I needed to add to classes/XLite/Module/MHG/TemplateMods/Main.php was Code:
public static function runBuildCacheHandler() because since it's not a member of @ListChild, this won't work: Code:
\XLite\Core\Layout::getInstance()->removeTemplateFromList('category_description.tpl', 'center.bottom'); THEN, the other part that's not mentioned clearly in the docs, or earlier in this thread, is that after having done the above, when setting up your view widget, you need to add its template back since it will not do that automatically, specifying the location in your own module's skins/default/en/modules/{Module-ID}/{Module-Name}/, after making sure to get the Namespace right, and noticing we didn't need a Decorator : Code:
<?php The part that also threw me until I used App::Ack to search through the classes for it, was that the Category Title is not part of getCategory() but is instead part of the prime object. so $this->getCategory()->get[Page|Main]Title() etc variations are not going to work. I leave this here as an example in the hopes of saving someone else time and money. |
Re: default/en/category_description.tpl
Whoopsy, left a bit of code out of my above solution that caused Simple CMS pages to fail :
Code:
class Category extends \XLite\View\AView |
All times are GMT -8. The time now is 03:10 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.