- Posts: 106
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.
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
- Justin
- Topic Author
- Offline
- Premium Member
-
Less
More
7 years 8 months ago - 7 years 6 months ago #1
by Justin
[Closed] PHP override was created by Justin
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
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
Last edit: 7 years 6 months ago by Antonio Durán.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
7 years 8 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic PHP override
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
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
Please Log in or Create an account to join the conversation.
- Justin
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
7 years 8 months ago #3
by Justin
Replied by Justin on topic PHP override
Great, Thanks I missed that some how
Please Log in or Create an account to join the conversation.
- Justin
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
7 years 8 months ago #4
by Justin
Replied by Justin on topic PHP override
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
TEMPLATE_NAME/html/com_joomdle/views/coursegrades/tmpl/default_cats.php
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
7 years 8 months ago #5
by Antonio Durán
Replied by Antonio Durán on topic PHP override
You need to remove the tmpl.
I think it would be:
TEMPLATE_NAME/html/com_joomdle/views/coursegrades/default_cats.php
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.
- Justin
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
7 years 8 months ago #6
by Justin
Replied by Justin on topic PHP override
Thanks, brilliant service as always.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
7 years 8 months ago #7
by Antonio Durán
Replied by Antonio Durán on topic PHP override
Thank you :blush: , I am glad I could help.
Please Log in or Create an account to join the conversation.
- Justin
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
7 years 8 months ago - 7 years 8 months ago #8
by Justin
Replied by Justin on topic PHP override
I have copied the files to the folder and it has updated the layout of the table but has not applied the CSS styling
Last edit: 7 years 8 months ago by Justin.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
7 years 8 months ago #9
by Antonio Durán
Replied by Antonio Durán on topic PHP override
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.
- Justin
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
7 years 8 months ago - 7 years 8 months ago #10
by Justin
Replied by Justin on topic PHP override
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
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
Last edit: 7 years 8 months ago by Justin.
Please Log in or Create an account to join the conversation.