Custom Module Class Not Rendered Helix Ultimate V 2.0.12 - Question | JoomShaper

Custom Module Class Not Rendered Helix Ultimate V 2.0.12

Ralf N.

Ralf N.

Template 1 year ago

Hi Joomshaper Team, there is a problem wit Helix Ultimate Template V 2.0.12, if i check my source i'll se this:

<div class="custom<br />
<b>Warning</b>:  Undefined variable $moduleclass_sfx in <b>/home/www/2023/templates/shaper_helixultimate/html/mod_custom/default.php</b> on line <b>14</b><br />
">
    <p><img src="/images/grafiken/men_verzahnung.png" alt=""></p></div>

That can't be correct - please check this. It comes up without setting a custom class and within setting a custom class for a custom module! It should look like something like this if i insert_myClass in the backend:

<div class="custom_myClass"">
    <p><img src="/images/grafiken/men_verzahnung.png" alt=""></p></div>
0
3 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #108790

HI Ralf,

Sorry, but it's not problem with Helix this time. In HU 2.0.1-11 and HU 2.0.12 that folder doesn't exist!

if you don't believe me, you have the right to do, so please download that template package and check if you have that folder inside:

templates/shaper_helixultimate/html/mod_custom

As I remember we have never override that module, so maybe you did it in the past and forget or somebody else add it.

Solution: DELETE that folder!

0
Ralf N.
Ralf N.
Accepted Answer
1 year ago #108844

Hi Paul, thanks for your information i found the problem now. There is a special template inside this folder for my startpage that i choose inside the modules setting. But another default.php is also inside and now i have taken the original code from joomla and put that into the default.php. Now it works like expected.

Maybe this is the wrong way to manage a custom template for modules. Can you tell me a better way? Any documentation available for this? I want to have the possibility to choose the template inside the modul on layout...

Thanks & best Ralf

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #108845
  1. We don't have manual for that.
  2. If your module would have correct code probably won't be a problem.

Maybe create a new module using custom module - rename folder, files, xml etc. Less problems with override etc. Or use module that already have that "feature".

Sorry, my help ends here. Custom Code is always on your side.

0