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
Monday, 17 December 2018
If you'd like to register, please fill in the username, password and name fields.

Search Blogs

Latest Posts

03 December 2018
Hi all, Thanks to your feedback after TZ Portfolio+ 2.0.8 released, we noticed that there was an error of extra-field's style on front-end, so version 2.0.9 is updated immediately to fix this bug. Please check it out**Change-log**- Fix error sty...
29 November 2018
Good day, Today, our team is so happy to make an official announcement of new release on TZ Portfolio+ version 2.0.8. This version is to fix bugs detected from previous version 2.0.7 and reveal some important improvements. In particularly, there is a...
20 November 2018
It's November. Black Friday is coming. On this special occasion, TZ Portfolio is so happy to offer you an amazing DISCOUNT 30% on ALL new memberships. This is your big chance to join our premium club, so that to have a superb acce...
13 November 2018
Here below is a specific guide of creating a donation page using Charity add-on for Joomla. We believe that this instruction is quite simple for you to read and acknowledge. Please follow these steps below: 1. Firstl...
31 October 2018
​Today, our team is so pleased to inform you about the presence of Comment add-on 1.0.3. This released is to fix a bug of not being compatible with TZ Portfolio Plus 2.0.7. ...