× Feature Requests

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

[Closed] PHP override

3 years 8 months ago 3 years 6 months ago by Antonio Durán.
Justin
Posts: 99
More
Topic Author
[Closed] PHP override #1
Hi Antonio

I have another feature request, but I assume this one would take some time, it is more of a nice to have.

Currently, I am modifying the core Joomdle PHP files when trying to customise layouts of "My Grades" or other views such as "My Courses", "My Certificates" etc.

Would it be possible to implement a system similar to what Hikashop has under the "views" menu which allows you to modify the PHP views files in Joomla and it saves it as an override?
The reason I as is every time I update Joomdle I need to remember to manually override all the modified files via FTP, if the override file remained on the system it would mean that no customisation would not be removed every time Joomdle is updated

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

3 years 8 months ago
Antonio Durán
Posts: 7417
More
[Closed] PHP override #2
Hi.

In Joomla, you don' need to modify core component code to make layout changes. That's what template overrides are for.
You can read more here: www.joomdle.com/wiki/Modifying_Joomdle_look_and_feel k

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

3 years 8 months ago
Justin
Posts: 99
More
Topic Author
[Closed] PHP override #3
Great, Thanks I missed that some how

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

3 years 8 months ago
Justin
Posts: 99
More
Topic Author
[Closed] PHP override #4
just to be sure if I wanted to create an override for the "Course Grades" would I put it in the following directory

TEMPLATE_NAME/html/com_joomdle/views/coursegrades/tmpl/default_cats.php

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

3 years 8 months ago
Antonio Durán
Posts: 7417
More
[Closed] PHP override #5
You need to remove the tmpl.
I think it would be:
TEMPLATE_NAME/html/com_joomdle/views/coursegrades/default_cats.php

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

3 years 8 months ago
Justin
Posts: 99
More
Topic Author
[Closed] PHP override #6
Thanks, brilliant service as always. :cheer:

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

3 years 8 months ago
Antonio Durán
Posts: 7417
More
[Closed] PHP override #7
Thank you :blush: , I am glad I could help.

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

3 years 8 months ago 3 years 8 months ago by Justin.
Justin
Posts: 99
More
Topic Author
[Closed] PHP override #8
I have copied the files to the folder and it has updated the layout of the table but has not applied the CSS styling

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

3 years 8 months ago
Antonio Durán
Posts: 7417
More
[Closed] PHP override #9
Sorry, but I don't know what your problem is. You should check if CSS files are being loaded....I am not very experienced in GUI programming, so I cannot give you any more advice right now.

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

3 years 8 months ago 3 years 8 months ago by Justin.
Justin
Posts: 99
More
Topic Author
[Closed] PHP override #10
I figured it out
Instead of
TEMPLATE_NAME/html/com_joomdle/views/coursegrades/default_cats.php
it needed to be
TEMPLATE_NAME/html/com_joomdle/coursegrades/default_cats.php

It now works correctly

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