urecheatu007 Posted August 16, 2012 Share Posted August 16, 2012 What is o little funky about this override system is (in my opinion) that we have both the override for the classes and stuff and the hooks system, which in theory should be enough to add, override or erase into oblivion parts of the built in system. I think that in the long term this hybrid system must be replaced with a better, unitar way of adding/modifying stuff in the core, for both modules and themes. Maibe the Prestashop team developers should try to make custom themes, good ones without duplicating core modules , they'll hit the brick wall pretty fast. I know that they try to do your best under the circumstances, but there comes a time when you need to part with the past. PS: by the way, how can one specify with precision that a certain module should be displayed in only one certain page/position? This is very much tied with the override system / hooks, and quite a big limitation. I can do that in Magento, CS-Cart, even Opencart (and Opencart has only 2 developers). Link to comment Share on other sites More sharing options...
Dh42 Posted August 16, 2012 Share Posted August 16, 2012 urecheatu007, You can use this method http://www.prestashop.com/forums/topic/138978-the-global-page-name-in-blocktopmenu/ Link to comment Share on other sites More sharing options...
urecheatu007 Posted August 16, 2012 Author Share Posted August 16, 2012 (edited) urecheatu007, You can use this method http://www.prestasho...n-blocktopmenu/ I was refering about the interface and the way the system works. Right now you can add a module in a hook in all the pages with eventually defined exceptions. This system can not ensure that that module will be used/displayed in only one page. This is semantics, but it speaks about the philosophy behind the system. The $page_name global variable is a hack (better said it started as a hack), not a system feature per se. PS: this started as a post in another thread, about the override system Edited August 16, 2012 by urecheatu007 (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted August 16, 2012 Share Posted August 16, 2012 I don't remember where I saw it on the forum, but you can reverse the way that the exception works, and list only the pages that you want the module to be displayed on. Link to comment Share on other sites More sharing options...
urecheatu007 Posted August 16, 2012 Author Share Posted August 16, 2012 Hmm, in that case i should take a look into this inversion thing. By the way, the question was originally posted in the prestashop 1.5 subforum in a thread about the override system as an example . Link to comment Share on other sites More sharing options...
Dh42 Posted August 16, 2012 Share Posted August 16, 2012 I know, I figure a mod moved it for some reason or another Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now