These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Deploying Client based iParts

Hi,

I've been working on an iPart that produces a QR Code from a Members ID. This QR Code is used at Events to Register people on the day (they scan their QR Code and it registers them for the event).

However, I'm having real difficulty deploying the iPart to a page.

METHOD ONE - I have tried this guide:

https://developer.imis.com/docs/developing-a-client-based-ipart#section-deploying-a-client-based-ipart-in-imis

1 - I created the folder named 'iPartSource'
2 - I uploaded my ZIP file into this folder.
https://imgur.com/JxqaUr3
3 - Then I went to Rise -> Maintenance -> Content Types
4 - I created our Custom Folder and only allowed 'Content-Type' items
5 - I created a Content-Type for the new iPart with a path of:
~/iPartSource/KSAMNEW.zip/KSAMNEW/qrcode/index.html
I also tried
~/iPartSource/KSAMNEW/KSAMNEW/qrcode/index.html
https://imgur.com/a/HG9xQij

6 - I added the new Content-Type to a page in Rise and Published.
7 - The Content-Type does not load and as far as I can tell the Content-Type isn't properly extracted by IMIS even though the documentation says "iMIS will extract your .zip files automatically if they are uploaded to the correct folder. Make sure your folder is named iPartSource.
iMIS looks for spelling and case on the folder name."

So, this method doesn't work at all for me and doesn't display anything on page. I have also checked the 'Areas' folder and the iPart isn't in the folder.

METHOD TWO - I have also tried this guide:
http://help.imis.com/sdk/index.htm#!deployingaclientbasedipartinimis.htm

1 - I upload my ZIP to 'Content Items'
2 - I go to Rise -> Maintenance -> Deploy Content Items
3 - I get a successsful deployment of the content item (I can see the folder in Areas)
4 - I add the Content-Item to a page
5 - I then have to go into Net -> Areas folder, find my iPart and edit index.html
6 - I have to add the ~/Areas/xxx/xxx/xxx paths to each of the JS / CSS references.
7 - The iPart successfully displays on screen.

The issue I'm having is:

METHOD ONE - Doesn't work at all no iPart is displayed, no Error message is displayed and within 'Rise' page builder I just see the path to the iPart, not the extracted code.

METHOD TWO - Whilst I am able to successfully get the iPart to show once I've edited the index.html and added the file paths in this seems to be overwritten every so often and the paths are then removed. I added the paths in last night and this morning all the paths no longer have the ~/Areas/xxx/xxxx and so the iPart no longer displays.

What is the correct way of doing this?
What am I doing wrong?

Thanks