Forum Discussion

Noora's avatar
Noora
Advisor
11 years ago

External widget not working

I recieved code for a widget that should be added to our community: http://www.leiki.com/widget-guide?widget&i1=focus&n1=elisa2&e1=leiki_elisa2&s1=kiwi19&u1=http%3A%2F%2Fyhteiso.elisa.fi%2Ft5%2FPuheliittym%25C3%25A4t%2Fminulta-on-sim-kortti-lukittu-miten-saan-tiet%25C3%25A4%25C3%25A4-mist%25C3%25A4-saan-sen%2Ftd-p%2F395019

 

I pasted the code to a custom component, added a heading to the beginning of it:

<div class="lia-panel"><div class="lia-decoration-border"><div class="lia-decoration-border-top"><div></div></div>
<div class="lia-decoration-border-content"><div><div class="lia-panel-heading-bar-wrapper"><div class="lia-panel-heading-bar"><span class="lia-panel-heading-bar-title">Katso myös nämä ohjeet Asiakastukisivuilta</span></div>

 And added the custom component to a thread page.

 

I tried the widget with both, production code and test environment code, but it just doesn't work. I'm wondering what I'm doing wrong? The the heading is visible, but the widget/script isn't showing anything.

2 Replies

  • JakeS's avatar
    JakeS
    Lithium Alumni (Retired)
    11 years ago
    I just took a quick look over the Leiki stuff, I notice that the top div tag is empty. I didn't take the time to fully work out what the stuff in the script tag does, but it seems like it's mostly calling out to another server, so any problems you are having may be external. Here's my question: what is the widget intended to do? I know of some javascript additions you can put on pages that actually run in the background and don't display anything, and unless the javascript puts elements inside that top div, this one won't actually show anything. It's still possible that the widget isn't functioning correctly and possibly there's some configuration on the Lithium side needed to enable it, but I won't know until I know what is supposed to happen. I tried putting the Leiki html into a custom component myself on a test site and didn't notice any errors using web debugger, so it's hard for me to track down what problems there might be.
  • Noora's avatar
    Noora
    Advisor
    11 years ago
    Thanks, JakeS!

    The widget is supposed to perform a search from our support pages (http://asiakastuki.elisa.fi) with the topic of current community thread, and display links to the search result pages.

    So similar functionality to Lithium's native Recommendations-element, but the results are shown from our support pages.