OS Property support center

SOLVED !!! Modifying component files

  • Herb Trevathan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago - 10 years 5 months ago #59723 by Herb Trevathan
SOLVED !!! Modifying component files was created by Herb Trevathan
Hello,

If I modify component files, should I add the modified files to the template the same way I did with the layout files...in a folder /html/os_property...etc.

I did not see how to do that in the support docs.

What is the best way to do that with OS Property and OS Membership?

Thank You
Last edit: 10 years 5 months ago by Dang Thuc Dam.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #59725 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Modifying component files
Hi,
Depend on the layouts that you want to make the change, you can make the modification on files in folder
components > com_osproperty > classes
components > com_osproperty > templates > your _current_template
components > com_osproperty > helper > layouts
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Herb Trevathan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #59732 by Herb Trevathan
Replied by Herb Trevathan on topic Modifying component files
right, I have changed those files already.

should I move them to the html folder in my template, like I did with the agentlist and agentdetails ?

maybe like: publichtml/templates/my-template/html/com_osproperty/component...?

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #59759 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Modifying component files
Hi,
If you already modified files in folder: "helpers > layouts", you can copy those files to folder "publichtml/templates/my-template/html/com_osproperty/layouts"
And in future, when you install new OS Property, those layouts won't be overwritten
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Herb Trevathan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #59770 by Herb Trevathan
Replied by Herb Trevathan on topic Modifying component files
Dam,

Thank you so much for your help.

I can move these into my template easily, just like the others I moved following the support docs:

public_html/components/com_osproperty/classes/agent.html.php

public_html/components/com_osproperty/classes/agent.php

I assume all OS Property modified files I can move this way? Just drop them into the HTML folder in my template correct?



Can I also move files in from Membership Pro? For example three of these I located quickly are all named ‘default.php’ so I can not copy the individual files into the same folder? Do I need to nest them or use a different folder structure?

Is there a way to add these to the template folder like the OS Property files moved into the html folder?

public_html/components/com_osmembership/views/categories/tmpl/default.php

public_html/components/com_osmembership/views/plans/tmpl/default.php

public_html/components/com_osmembership/views/register/tmpl/default.php

public_html/components/com_osmembership/views/common/default_plans.php

Thank You again for your help, I apologize if I missed this in the support docs for Membership Pro…

-Herb

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #59773 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Modifying component files
Hi,
In this category, i can only answer you any questions related to OS Property, with Membership Pro, you can post your questions on category Membership Pro.
Regarding to questions on OS Property, you can overwrite the layout files in: components > com_osproperty > helpers > layouts.
We don't have feature to overwrite files in folder "classes"
Thanks
Dam
The following user(s) said Thank You: Herb Trevathan

Please Log in or Create an account to join the conversation.

  • Herb Trevathan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #59790 by Herb Trevathan
Replied by Herb Trevathan on topic Modifying component files
Thank You for the clarification regarding the files in the classes folder.

I moved my question (re-posted it) in the Membership Pro section.

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamNguyen Phu Quan