I created a library with ID #139090.
And I need to update the following code.
Which fields should i need to fill, HTML before and HTML after?
May you try to help me, how to customize this code with my Library ID?
<!--Custom Map Objects: Library Sunburst ID in HTMLbefore-->
<div class="map_object map_table <#sensor type="colorclassofstate" prefix="map_objectstate_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:hidden;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
<#mapobject type="objectgrip" mode="<@editmode>">
<#mapobject type="htmlbefore" subid="<@subid>" var="libid">
<style>#<@itemid> .libTree{height: 100%!important;}</style>
<div id="showalibrary" style="width:100%;height:100%;">
<div id="libTree" class="libTree prtg-plugin"
data-plugin="libtree"
data-objectid=" <#mapobject type="htmlbefore" subid="<@subid>">"
data-lib-name='Library'
data-view-type="sunburst">
<!--
{"objects":<#table
id="@libid"
varexpand="id"
output="json"
count="*"
subcheck="1"
noraw="1"
content="library"
sortby="probegroupdevice"
filter_basetype="@ntxt('sensor')"
columns="objid,name,access=treejson,probegroupdevice=treejson,basetype,icon,favorite,fold,devicenum=textraw,groupnum=textraw,totalsens=textraw,upsens=textraw,downsens=textraw,partialdownsens=textraw,warnsens=textraw,pausedsens=textraw,unusualsens=textraw,undefinedsens=textraw,downacksens=textraw,condition,status=textraw,message=textraw,info,priority,libkind,liblinkedid">
}
-->
<div id="viewport"></div>
</div>
</div>
<#mapobject type="htmlafter" subid="<@subid>">
</div>
Add comment