Forum Discussion

omygoodness's avatar
8 years ago

How to edit default widgets?

Hi,

I am trying to find a way to edit default lithium widget called "users.widget.contact-me".  

  • Hi omygoodness

     

    default widget cannot be edited (at least, not the backend / frontend code). You can of course:

    • Style them via CSS / SASS
    • Wrap them with extra custom logic using the @override directive.

    Hope this helps,

6 Replies

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    8 years ago

    Hi omygoodness

     

    default widget cannot be edited (at least, not the backend / frontend code). You can of course:

    • Style them via CSS / SASS
    • Wrap them with extra custom logic using the @override directive.

    Hope this helps,

  • VarunGrazitti's avatar
    VarunGrazitti
    Boss
    8 years ago
    omygoodness - Yes, you can either develop a custom widget or simply override a default one as Paolo mentioned. Also, if your requirement is just some cosmetic changes, you can use some CSS to change its UI.
  • Parshant's avatar
    Parshant
    Boss
    7 years ago

    Warren_Brill,

    There is no access to code to edit OOB component.

    To override the components see topic here. This will guide you to add your custom code in place to that component area.

    Or you can use delegate tag to add any code or text which we can show that before and after the OOB component.

     

  • Warren_Brill's avatar
    Warren_Brill
    Boss
    7 years ago

    Thank you. I have read that article. Unfortunately, it does not address the issue I am facing. The problem isn't that I don't know then name of the widget, but instead that the widget is not behaving consistently. Therefore, I don't know if the widget has a bug, or if it's interacting with something else. And I have already tried creating an override component, but it doesn't load the code from the widget, so I can't set or change the parameters that are inconsistent. I am in the process of entering a support case, but I'm always somewhat reticent about running things through Support, not knowing if they are actually bugs or not.