Phoca
Phoca Seal

How to override, not overwrite html and css in phocamenu PRO

How to override, not overwrite html and css in phocamenu PRO

Postby jms on 26 Nov 2012, 23:03

How can I add html and css to style my menus without destroying the original phocamenurenderviews.php and phocamenu.css?
In case I make a mistake I want to be able to go back to the original files....and also I don' t want to have to make my custom
changes when I update to a new version.
for example, I want to reduce the width of the "quantity" table cell and use different color font on certain menu items.

Where/how can I customize my menus by simply overriding but not overwriting the files.
I am using phoca restaurant PRO version 2.0.3
Thanks!
jms
Phoca Newbie
Phoca Newbie
 
Posts: 3
Joined: 26 Nov 2012, 22:45

Google Ads


Re: How to override, not overwrite html and css in phocamenu

Postby Jan on 27 Nov 2012, 17:19

Hi, Phoca Restaurant Menu uses the Joomla!'s MVC, so you can override some of the view and if the rendering comes from render method, you can do some extended class of the render method, which means:

- you will write own views in your template (you are independent to views in component)
- you will call the extended class of render class, this means, the render class will be not changed, but your entended class will be changed.

Jan
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 32042
Joined: 10 Nov 2007, 18:23
Location: Czech Republic


Return to Phoca Restaurant Menu

Who is online

Users browsing this forum: No registered users and 1 guest

cron