Forum Join our community

More module overrides?

  1. Normal
  2. Gerry
  3. -
  4. General Questions
  5. -
  6. Tuesday, 19 April 2022
  7. -
  8.  Subscribe via email
0
Votes
Undo
I need to use TZ Portfolio Plus Portfolio. I created a first override (System > Site Templates > Template > Create Overrides). Now in the html/mod_tz_portfolio_plus_portfolio folder there is the default.php.

I would like to create another override.

I repeated the procedure but you can no longer see the images of the articles :(
Comment
  1. DuongTV
  2. 1 week ago
  3. #37
You should override image add-on in module folder "html/mod_tz_portfolio_plus_portfolio" with file like module layout file.
Example: With module's layout file is "html/mod_tz_portfolio_plus_portfolio/default1.php", Image's add-on layout must have "html/mod_tz_portfolio_plus_portfolio/plg_mediatype_image/default1.php" file
There are no comments made yet.
Uchiha Itachi Accepted Answer Pending Moderation
  1. Thursday, 21 April 2022
  2. -
  3. # 1
0
Votes
Undo
Hi, regarding this issue, you can refer to this tutorial: https://www.tzportfolio.com/blog/override-an-add-on-in-module.html
Comment
There are no comments made yet.
Gerry Accepted Answer Pending Moderation
  1. Thursday, 21 April 2022
  2. -
  3. # 2
0
Votes
Undo
Unfortunately my english is not good ;-(

I want to know if I can create more overrides of the TZ Portfolio Plus Portfolio module.

default.php, default1.php, default2.php

It's possible?
Comment
There are no comments made yet.
Uchiha Itachi Accepted Answer Pending Moderation
  1. Friday, 22 April 2022
  2. -
  3. # 3
0
Votes
Undo
Hi, yes, it's absolutely possible. Pls, Go ahead.
Comment
There are no comments made yet.
Gerry Accepted Answer Pending Moderation
  1. Friday, 22 April 2022
  2. -
  3. # 4
0
Votes
Undo
Override 1
ok.jpg
Attachments (1)
Comment
There are no comments made yet.
Gerry Accepted Answer Pending Moderation
  1. Friday, 22 April 2022
  2. -
  3. # 5
0
Votes
Undo
Override 2 :(
no.jpg
Attachments (1)
Comment
There are no comments made yet.
Uchiha Itachi Accepted Answer Pending Moderation
  1. Tuesday, 26 April 2022
  2. -
  3. # 6
0
Votes
Undo
Hi, I'm not sure what you overrode in the module. Did you choose the same TZ Portfolio+ style or different styles?
Regarding the override, you're supposed to override not only the portfolio module but TZ Portfolio+ addons also.
1. Pls follow this folder path: components\com_tz_portfolio_plus\addons\[addon_group]\[addon_name]\modules\[module_name]. In this case, it's components\com_tz_portfolio_plus\addons\mediatype\image\modules\mod_tz_portfolio_plus_portfolio
Copy file default.php

2. Then browse to your /templates/ folder.
Open the folder for your current template. ex: our template is /tz_nish_ii​/
Open this folder (templates\tz_nish_ii\html\mod_tz_portfolio_plus_portfolio\plg_mediatype_image​) and paste file default.php​ here
Get started to modify your file

please see the attached images, I made with module tz portfolio+ articles
Comment
There are no comments made yet.
Gerry Accepted Answer Pending Moderation
  1. Tuesday, 26 April 2022
  2. -
  3. # 7
0
Votes
Undo
I would like to create different overrides in the same TZ Portfolio+
Comment
There are no comments made yet.
Gerry Accepted Answer Pending Moderation
  1. Sunday, 08 May 2022
  2. -
  3. # 8
0
Votes
Undo
I would like to create different overrides in the same TZ Portfolio+
Comment
There are no comments made yet.
Uchiha Itachi Accepted Answer Pending Moderation
  1. Wednesday, 11 May 2022
  2. -
  3. # 9
0
Votes
Undo
Hi,

You can send me an email to [email protected] and provide me with your site and login details, I will help you check the override.
Comment
There are no comments made yet.
Gerry Accepted Answer Pending Moderation
  1. Wednesday, 11 May 2022
  2. -
  3. # 10
0
Votes
Undo
Hi, thanks for the reply ;-)

I am working locally on XAMPP

As see from the attachment, it is clear to me how the override takes place. Everything works.

x-TZ.jpg

My question is: can I create a second override?
Attachments (1)
Comment
There are no comments made yet.
Uchiha Itachi Accepted Answer Pending Moderation
  1. Thursday, 12 May 2022
  2. -
  3. # 11
0
Votes
Undo
Hi, yes of course you can. You're supposed to follow the same steps as the first override. Let's give it a try.
Comment
There are no comments made yet.
Gerry Accepted Answer Pending Moderation
  1. Thursday, 12 May 2022
  2. -
  3. # 12
0
Votes
Undo
How do I assign this second override to articles?

secondo.jpg
Attachments (1)
Comment
There are no comments made yet.
Uchiha Itachi Accepted Answer Pending Moderation
  1. Thursday, 19 May 2022
  2. -
  3. # 13
0
Votes
Undo
You should override image add-on in the module folder "html/mod_tz_portfolio_plus_portfolio" with file like module layout file.
Example: With the module's layout file is "html/mod_tz_portfolio_plus_portfolio/default1.php", the Image's add-on layout must have "html/mod_tz_portfolio_plus_portfolio/plg_mediatype_image/default1.php" file
Comment
There are no comments made yet.
Gerry Accepted Answer Pending Moderation
  1. Monday, 23 May 2022
  2. -
  3. # 14
0
Votes
Undo
All clear. It works. Thanks
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Share Location

Sharing your current location while posting a new question allow viewers to identify the location you are located.

Latitude:
Longitude: