How to override mod_relateditems_xtd output?

Hi There!

We bought the extension "Related Items Extended" for Joomla! 3.
We were trying to override its files (views and some css files) un our template folder, but nothing seems to get affected:

We tried:
/templates/[ OUR TEMPLATE ]/html/mod_relateditems_xtd/tmpl/default.php
And
/templates/[ OUR TEMPLATE ]/html/mod_relateditems_xtd/assets/css/style.css

But these overrides are not working :(
Is there any special way to override this module? We used to override the output of all modules like this.

Thanks!
Nick
11 years 4 weeks ago #1 by Necolas Hamwi

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

  • Posted by TemplatePlazza (5262) Offline
Hi Nikola,
For the PHP, yes that's the correct way but not for css.
You can put your css place in any place you want, but you need to call it from your template or from the /templates/[ OUR TEMPLATE ]/html/mod_relateditems_xtd/tmpl/default.php by adding code like this :

$doc = JFactory::getDocument();
$doc->addStyleSheet('path/to/the/new/style.css');
11 years 4 weeks ago #2 by TemplatePlazza

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

Thank you for the response!

Actually it turned out the correct path was:
/templates/[ OUR TEMPLATE ]/html/mod_relateditems_xtd/default.php

I can confirm it's working the Joomla! is catching it. I edited the PHP file to load my CSS override. (this path seems NOT correct but for some reason it's working!).

Best,
11 years 3 weeks ago #3 by Necolas Hamwi

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

Hi Again!

Thx a lot for the response! :)

Now another override issue popup in.
Overriding this file:
/modules/mod_relateditems_xtd/mod_relateditems_xtd.php

Should obviously be:
/templates/[ OUR TEMPLATE ]/html/mod_relateditems_xtd/mod_relateditems_xtd.php

But nop. It'a not taking it :(
I can't figure out why Joomla! is treating this module override differently?? Is there anything special about it?

Thanks!
Nick
11 years 3 weeks ago #4 by Necolas Hamwi

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

  • Posted by TemplatePlazza (5262) Offline
Hi Nikola, You can't override non tmpl file. so you can't override mod_xxx.php nor helper.php. You're allowed to override template files only (files under tmpl folder)
11 years 3 weeks ago #5 by TemplatePlazza

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

Hi Admin! :)

Thank you very much for your response!

Actually this is unfortunate because we want to change the call of the CSS file to ours and it's located inside "mod_relateditems_xtd.php" :(



Thx for the help!
11 years 3 weeks ago #6 by Necolas Hamwi

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

Powered by Kunena Forum