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, 21 July 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 JoomDev templates.
Buy our bundle and get 15% OFF from their template and extension.

Latest Posts

11 July 2019
Dear our beloved customers,Hope you're doing well there!TZ Portfolio team would like to shout out a big "thank you" for all of your love and sincere support for a long time. We've already been through different versions of TZ Portfolio+ and there is ...
30 June 2019
Hi guys, Are You are a photographer and specialized in capturing wedding shots for couples? If so, It is necessary for you to have an online presence which is to build credibility on every clients visiting your website. On the top of that, findi...
26 June 2019
Hi guys, Today, our team are so happy to announce that TZ Portfolio+ 2.2.8 is already public with some bug-fixes and improvement. There were several well known issues detected from version 2.2.7 and we really appreciate all of your kind feedback that...
17 June 2019
Hi guys, TZ Portfolio+ 2.2.7 has recently been released with latest improvements. Especially, since this version, both Free and Pro versions are included in only one package and according to this change, anyone who has a valid license needs to v...
11 June 2019
Hi folks, Today I'm so happy to announce that TZ Portfolio+ 2.2.7 is already released. In this new version, we made some bug-fixes of well known issues and important changes. Let's have a look at its changelog to see which issues has been addressed a...

Tag Cloud