tempDir = '/cust/cs-data/customers/commonspot-users-services_base/sites/commonspot-site-site1/temp/widgets/'; //should have trailing slash try { DirectoryCreate(tempDir); } catch (any ex) { } allWidgets = ArrayNew(1); pRootDir = '/cust/webroot/site1/_cs_widgets/_packets/'; //packet root dir commonPath = '#pRootDir#_common_packets/'; // Accordion Textblock // ------------------------- abbr = 'accordiontextblock'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Accordion Textblock'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-AccordionTextblock-Metadata-Form.zip', // NOT NEEDED: '#packetPath#CSW-AccordionTextblock-Generic-Render-Handler.zip', '#packetPath#CSW-AccordionTextblock-FormattedTextBlock-Generic-Render-Handler.zip', '#packetPath#CSW-AccordionTextblock-FormattedTextBlock-without-Header-Generic-Render-Handler.zip' ]; ArrayAppend(allWidgets, _widget); // Buttons // ------------------------- abbr = 'buttons'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Buttons'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Buttons-Metadata-Form.zip', '#packetPath#CSW-Buttons-Generic-Render-Handler.zip', '#packetPath#CSW-Buttons-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Hero Carousel // --------------------- abbr = 'herocarousel'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Hero Carousel'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Hero-Carousel-Metadata-Form.zip', '#packetPath#CSW-Hero-Carousel-Generic-Render-Handler.zip', '#packetPath#CSW-Hero-Carousel-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Icon Textblock // --------------------- abbr = 'icontextblock'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Icon Textblock'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-IconTextblock-Metadata-Form.zip', '#packetPath#CSW-IconTextblock-Widget-Generic-Render-Handler.zip', '#packetPath#CSW-IconTextblock-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Icon Textblock Counter // --------------------- abbr = 'icontextblockcounter'; packetPath = '#pRootDir#csw-#abbr#/'; // Shared Packet Info shareAbbr = 'icontextblock'; sharedPacketPath = '#pRootDir#csw-#shareAbbr#/'; _widget = {}; _widget.name = 'Icon Textblock Counter'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-IconTextblock-Counter-Metadata-Form.zip', '#packetPath#CSW-IconTextblock-Counter-Widget-Generic-Render-Handler.zip', '#packetPath#CSW-IconTextblock-Counter-Widget-Custom-Element.zip', '#sharedPacketPath#CSW-IconTextblock-Metadata-Form.zip' ]; ArrayAppend(allWidgets, _widget); // Image Textblock // --------------------- abbr = 'imagetextblock'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Image Textblock'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-ImageTextBlock-Metadata-Form.zip', '#packetPath#CSW-ImageTextblock-Widget-Generic-Render-Handler.zip', '#packetPath#CSW-ImageTextblock-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Image Textblock Carousel // --------------------- abbr = 'imagetextblockcarousel'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Image Textblock Carousel'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-ImageTextblock-Carousel-Metadata-Form.zip', '#packetPath#CSW-ImageTextblock-Carousel-Generic-Render-Handler.zip', '#packetPath#CSW-ImageTextblock-Carousel-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Image Textblock Rollover // --------------------- abbr = 'imagetextblockrollover'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Image Textblock Rollover'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-ImageTextBlock-Rollover-Metadata-Form.zip', '#packetPath#CSW-ImageTextblock-Rollover-Generic-Render-Handler.zip', '#packetPath#CSW-ImageTextblock-Rollover-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Map // --------------------- abbr = 'map'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Map'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Map-Metadata-Form.zip', '#packetPath#CSW-Map-Bing-Generic-Render-Handler.zip', '#packetPath#CSW-Map-Google-Generic-Render-Handler.zip', '#packetPath#CSW-Map-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Advanced Map // --------------------- abbr = 'mapadvanced'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Map Advanced'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Map-Advanced-Metadata-Form.zip', '#packetPath#CSW-Bing-Map-Advanced-Generic-Render-Handler.zip', '#packetPath#CSW-Google-Map-Advanced-Generic-Render-Handler.zip', '#packetPath#CSW-Map-Advanced-Widget-Custom-Element.zip', '#packetPath#CSW-Map-Advanced-Widget-Markers-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Photo Gallery (Currently Broken... as of 2022/12/23) // --------------------- abbr = 'photo-gallery'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Photo Gallery'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-IconTextblock-Metadata-Form.zip', '#packetPath#CSW-IconTextblock-Widget-Generic-Custom-Render-Handler.zip', '#packetPath#Icon-Textblock-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Read More // --------------------- abbr = 'readmore'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Read More'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-ReadMore-FormattedTextBlock-Render-Handler.zip', '#packetPath#CSW-ReadMore-FormattedTextBlock-without-Header-Render-Handler.zip', '#packetPath#CSW-ReadMore-PageIndex-Render-Handler.zip', '#packetPath#CSW-ReadMore-Container-Render-Handler.zip', '#packetPath#CSW-ReadMore-Metadata-Form.zip' ]; ArrayAppend(allWidgets, _widget); // Scroll Spy Navigation // --------------------- abbr = 'scrollspy'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Scroll Spy'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Scroll-Spy-Container-Render-Handler.zip', '#packetPath#CSW-Scroll-Spy-Metadata-Form.zip' ]; ArrayAppend(allWidgets, _widget); // Slider Menu // --------------------- abbr = 'slidermenu'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Slider Menu'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Slider-Menu-Metadata-Form.zip', '#packetPath#CSW-Slider-Menu-Render-Handler.zip' ]; ArrayAppend(allWidgets, _widget); // Split Screen Carousel // --------------------- abbr = 'splitscreencarousel'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Split Screen Carousel'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Split-Carousel-Metadata-Form.zip', '#packetPath#CSW-Split-Screen-Carousel-Generic-Render-Handler.zip', '#packetPath#CSW-Split-Screen-Carousel-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); // Tabs Horizontal // --------------------- abbr = 'tabs-horizontal'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Tabs Horizontal'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Tabs-Widget-Custom-Element.zip', '#packetPath#CSW-Tabs-Horizontal-Metadata-Form.zip', '#packetPath#CSW-Tabs-Horizontal-Generic-Render-Handler.zip', '#packetPath#LinkBar-Element-CSW-Tabs-Horizontal-Custom-Render-Handler.zip', '#packetPath#TabBar-Element-CSW-Tabs-Horizontal-Custom-Render-Handler.zip' ]; ArrayAppend(allWidgets, _widget); // Tabs Vertical // --------------------- abbr = 'tabs-vertical'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Tabs Vertical'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-Tabs-Widget-Custom-Element.zip', '#packetPath#CSW-Tabs-Vertical-Metadata-Form.zip', '#packetPath#CSW-Tabs-Vertical-Generic-Render-Handler.zip', '#packetPath#LinkBar-Element-CSW-Tabs-Vertical-Custom-Render-Handler.zip', '#packetPath#TabBar-Element-CSW-Tabs-Vertical-Custom-Render-Handler.zip' ]; ArrayAppend(allWidgets, _widget); // Video Textblock // --------------------- abbr = 'videotextblock'; packetPath = '#pRootDir#csw-#abbr#/'; // Shared Packet Info shareAbbr = 'imagetextblock'; sharedPacketPath = '#pRootDir#csw-#shareAbbr#/'; _widget = {}; _widget.name = 'Video Textblock'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-VideoTextblock-Metadata-Form.zip', '#packetPath#CSW-VideoTextblock-Generic-Render-Handler.zip', '#packetPath#CSW-VideoTextblock-Player-On-Page-Metadata-Form.zip', '#packetPath#CSW-VideoTextblock-Player-on-Page-Container-Render-Handler.zip', '#sharedPacketPath#CSW-ImageTextBlock-Metadata-Form.zip' ]; ArrayAppend(allWidgets, _widget); /***********************/ /* TEMPLATE/EXAMPLES */ /***********************/ /* Standard Widget */ /* abbr = 'icontextblock'; packetPath = '#pRootDir#csw-#abbr#/'; _widget = {}; _widget.name = 'Icon Textblock'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-IconTextblock-Metadata-Form.zip', '#packetPath#CSW-IconTextblock-Widget-Generic-Custom-Render-Handler.zip', '#packetPath#Icon-Textblock-Widget-Custom-Element.zip' ]; ArrayAppend(allWidgets, _widget); */ /* Widget using shared files from icontextblock */ /* abbr = 'icontextblock-counter'; packetPath = '#pRootDir#csw-#abbr#/'; // Shared Packet Info shareAbbr = 'icontextblock'; sharedPacketPath = '#pRootDir#csw-#shareAbbr#/'; _widget = {}; _widget.name = 'Icon Counter Textblock'; _widget.file = 'csw-#abbr#-widget.zip'; _widget.packetArray = [ '#commonPath#CSWidgetButtonSizes-Custom-Element-with-data.zip', '#commonPath#CSWidgetButtonStyles-Custom-Element-with-data.zip', '#commonPath#CSWidgetColors-Custom-Element-with-data.zip', '#commonPath#CSWidgetSizes-Custom-Element-with-data.zip', '#packetPath#CSW-IconTextblock-Counter-Metadata-Form.zip', '#packetPath#CSW-IconTextblock-Counter-Widget-Generic-Custom-Render-Handler.zip', '#packetPath#Icon-Textblock-Counter-Widget-Custom-Element.zip', '#sharedPacketPath#CSW-IconTextblock-Metadata-Form.zip' ]; ArrayAppend(allWidgets, _widget); */