Sonny Blog

I write article for Joomla! and TZ Portfolio
1 minute reading time (228 words)

A Beginners Guide to Addon Overrides

addonoverride

Here's the Charity Addon we're going to modify in this example. We're going to change style of Charity in the article view. 

  • Login to your site's files and browser to the /components/com_tz_portfolio_plus folder.
  • Look for the /addons/ folder.
  • Addon-type of Charity is Content, so you look for the /content/ folder
  • You will see /charity/ folder
  • Inside the /charity/ folder, you'll hopefully find a /views/ folder. If there isn't, your addon won't support overrides.
  • Inside the /views/ folder, you may find several subfolders. Normally each one is logically named, according to the part of the component that they modify.
  • Look inside these folders and the /tmpl/ folders they contain . Look for the layout file you want to alter. In our example, the file is /article/tmpl/default.php.
  • Browse to your /templates/ folder.
  • Open the folder for your current template. In this example, our template is /tz_stchrist/.
  • Open the /html/ folder.
  • Inside the /html/ folder, create a new folder with the name is com_tz_portfolio_plus.
  • Create a subfolder inside /com_tz_portfolio_plus/, matching the subfolder of the original component. In this case, that's /article/.
  • Create a subfolder inside /article/, match with structure "plg_[addon_type]_[addon_name]". In this case, that's /plg_content_charity/.
  • Upload the layout file to this new folder.
  • You can now edit the layout file. In this example, I add bootstrap style and change background-color to orange.
  • Save the file and your change will be visible:
St. Christ - Free Church & Charity template for TZ...
Add-ons JContent & K2 migration have been released

Related Posts

 

Comments 1

Hedley Jackson on Tuesday, 11 December 2018 04:53

A beginner’s guide is expressed for the struggle and all available resorts for the products. The guidance is ensured for the movement of the https://www.topratedessayservice.com/bestdissertation-com-review/ for all issues. The change is done for the manufacturing of the elements for the students.

A beginner’s guide is expressed for the struggle and all available resorts for the products. The guidance is ensured for the movement of the https://www.topratedessayservice.com/bestdissertation-com-review/ for all issues. The change is done for the manufacturing of the elements for the students.
Already Registered? Login Here
Guest
Sunday, 17 February 2019
If you'd like to register, please fill in the username, password and name fields.

Search Blogs

Our Partner’s Templates

TZ Portfolio is working perfectly with JoomlaShine templates.
Buy our bundle and get 20% OFF from their template and extension.

Latest Posts

14 February 2019
Based on the interesting topic of education, there is another Joomla template recently developed, which is perfectly integrated with TZ Portfolio+ by our partner JoomDev. It's called - JD Paris. This template is the best match for any websi...
31 January 2019
TZ Portfolio team wish all of our beloved customers a new year full of luck, happiness, and prosperity. To thank for having accompanied with us during years and made such great contributions to the improvement of TZ Portfolio+, we...
17 January 2019
Dear our beloved clients, Today, We're so pleased to introduce a new template named JD Gurukul which is developed and designed by our Partner JoomDev. JD Gurukul is a complete solution for schools, universities, institutes, colleges​ a...
16 January 2019
Hey guys, Today, we're so pleased to announce that TZ Portfolio+ version 2.1.2 is already available. Now you can download and get some bugs below absolutely fixed. If you get any issues during this update, please report them to us and we'll help...
13 January 2019
Are you planing to start building a website for some specific purposes? So portfolio is concerned as an essential part that you're supposed to pay much attention to. Obviously, it takes time to looking for an ideal template that suits your expectatio...