| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
re: default/en/category_description.tpl | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
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.
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#12
|
|||||||||
|
|||||||||
Re: default/en/category_description.tpl
That's fine. what about the rest ?
__________________
-- Scott Godin |
|||||||||
#13
|
|||||||||
|
|||||||||
[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:
because since it's not a member of @ListChild, this won't work: Code:
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:
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.
__________________
-- Scott Godin |
|||||||||
#14
|
|||||||||
|
|||||||||
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:
__________________
-- Scott Godin |
|||||||||
|
|||
X-Cart forums © 2001-2020
|