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

 

By accepting you will be accessing a service provided by a third-party external to https://www.tzportfolio.com/

Search Blogs

Latest Posts

03 November 2022
Hi folks, We're so pleased to announce a new version of TZ Portfolio+ is already available now. Version 2.6.2 was released to address some minor bugs which are well-known in previous versions. Let's see what was fixed in this version.  TZ P...
26 October 2022
Halloween 2022 is just around the corner. All the witches are talking about this sale. So trick or treat? On this occasion, no trick at all, treat yourself with the special deal offered by TemPlaza.  Offer Details: 65% Discount On All Packa...
22 March 2022
Presenting a healthy and professional website is one of the ways to show the crowd your credibility on your business. As a result, your website should be up-to-date, so as to be in the line with current web trends. Here today we come with another upd...
11 February 2022
Hi folks,  Today I'm happy to inform you that a new version 2.5.5 of TZ Portfolio+ component is already available for download. This version was made to address a critical issue detected in the previous version. In particular, users were unable ...
25 January 2022
Happy the year of the tiger 2022! Lunar New Year is celebrated yearly in Vietnam according to the lunar calendar and this time is the year of the tiger among 12 zodiac animals. On this occasion, we would like to offer you a special deal. Yo...

Tag Cloud

Extensions Salon Goldena Addons TZPortfolio+2.2.8 Reyla TZPortfolio+ Amuda slider Jollyany CSS3 Password InstallationWizard TZ Portfolio Plus Search Joomla Template Christ Photography JDArchi One-Click Install laborday freetemplates freelicense TemPlaza add-ons.TZ Portfolio users fundraising Videocontent lunarnewyear2019 Flipbook Installation TZFlexGrid Cybermonday Creative K2 discount Joomla template memberships collection freetemplate JD Gurukul Besley charity add-on TZ Portfolio Astroid LeaderPrice flexslider WordPress Gallerycontent charity TokenKey Music color addon Joomlaextensions Templates Carousel Improvements K 2 migration CSSFramework CharityAddon Joomla 4 PortfolioStyles personalbundle JQuery Activation Portfolio Joomla templates JDCoax FlipBookGallery JSN Elegantstyle Gaia RealEstate add-ons Selena TZ Portfolio+ 2.1.2 SingleArticle OpenSource TetHoliday New features 100%discount Joomla3.x TZ Portfolio Plus Pro COVID19 Festival Besley style Saleoff TZPortfolio2.1.5 eastersale Layout Builder Bootstrap3 Happynewyear InfiniteCarousel PHP7.4 Bug-fix PortfolioDesign XMas TZPortfolio+2.1.7 supportcampaign multilevelfilter Keira joomla3.10.x TZPortfolio+2.2.1 imagegallery megadiscount extrafields Update Survey tzportfolio+articles Override selena template Christmas 2018 labourday Portfolio templates TreeFilter License Christmas font Featurebox 30% OFF music add-on Mayastyle joomlatemplate Partners Pricing join our club Joomlaextension TZPortfolio+2.2.0 WebsitePortfolio Fixes TZPortfolio+2.1.4 CustomerSupport Events freeversion Tutorials extension TZPortfolio+2.1.9 ArumStyle Migration Article TZPortfolio+2.1.6 LunarNewYear customlinks WeddingGallery Joomla halloween gridgallery updates add-ons Jcontent domainregister Joomla3.9.4 googlefont Free Extension Colors Easter2019 personallicense JDSalon Photographer jdnewyork tzportfolio+carousel Oraz template Dino Sass TZ Portfolio+ 2.1.1 ArtGallery ​ Profiler Free overrides Styles protectcontent Bug-fixes Joomlatemplates JDParis Masonry Responsive Joomla4 JSN Agency blackfriday Joomdev Portfolio comment add-on Elegant TZPortfolio Joomla3.9 Folio template free template Birthday collaboration Button Add-on V2.1.0 TZPortfolio+Pro consulta Template Styles Grid Gallery BootstrapLibrary lightbox stayhome ArticleLimit portfolioextension Bootstrap4 Joomla Content vani Security Zalta Folio AdvancedSearch Contentaddon JDAgency