Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Creating duplicate php files, so that originals are not modified - HELP?

7 years 11 months ago
  • Kevin's Avatar
    Topic Author
  • Kevin
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 3
Licenses:
JomSocial Active

OK, so I have created duplicates of certain files under my template's HTML folder, so that I can modify them and not worry about the original files being overwritten every time I update. How do I know what files can be duplicated like this, and how do I determine how to structure the file system under HTML to make this work? For example, I have successfully made a duplicate of the following file:

public_html/n2/components/com_community/templates/jomsocial/layouts/profile/focus.php
into the following folder:
public_html/n2/templates/protostar/html/com_community/layouts/profile/focus.php

This allows me to modify my HTML folder version and leave the original alone. So again, how do I determine which files I can do this with? How do I determine where to place them within my HTML folder? For example, I now need to modify this file:

public_html/n2/components/com_community/views/profile/view.html.php

but I have no idea where to place it within my HTML folder to make it work properly. Please help me understand how to do this and how to determine where they go in HTML. Thanks!

PS - By the way, if there is a better forum section to place this question, please let me know where. Thanks!

7 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Kevin,

You only can override any file inside templates file and you cant do the similiar override method on views file :)

To modify views file you should modify it directly..

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW