Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to add attributes to the MeModule Smarty code?

pavsidpavsid New
edited November 2016 in Vanilla 2.0 - 2.8

Hi, I would like to add an attribute canvas="" to the rendered MeModule.

The Smarty module which renders it is in default.master.tpl as {module name="MeModule" CssClass="Inline FlyoutRight"}.

How can I make it render like this - <div class="MeBox Inline FlyoutRight" canvas="">...</div>

Many thanks.

Best Answer


  • Options
    R_JR_J Ex-Fanboy Munich Admin

    I would say that there is no good way to do so :(

    You can use JavaScript to add such an attribute, but I bet you haven't searched for that answer.

    You could copy /applications/dashboard/views/modules/me.php to your theme and make the change in that file.

    You could copy the default.master.tpl to your theme and enclose the MeBox with a <div canvas=""> (if that would help at all)

    But that's pretty much all you can do. No clever solution here...

  • Options

    Doh, thanks folks, completely forgot i'm already using a custom /modules/me.php!!

    Have added it to this line.... echo '<div class="MeBox'.$CssClass.'" canvas="">';

    Many thanks for your help - sorted!

Sign In or Register to comment.