Wednesday, January 13, 2016

add widgets to web app builder

How to add widgets into the builder or an app

To add widgets into the builder or an app, follow these steps:
  1. Open manifest.json file in the widget folder. It describes widget properties as shown in the following table.
  2. Modify the properties accordingly.
  3. Save the file.
  4. Copy the widget folder and paste it to the widgets repository. By default, the widgets repository is located under \client\stemapp\widgets folder. In this way, your widget is available to the builder.
  5. If you prefer to deploy the widget to a specific app only, you can copy the widget folder and paste it to the widgets folder within the downloaded app, then edit the app config file to include this widget to the app.


https://github.com/Esri/arcgis-webappbuilder-widgets-themes/blob/master/widgets/README.md

https://github.com/Esri/arcgis-webappbuilder-widgets-themes/blob/master/themes/README.md

How to add themes into Web AppBuilder

To add themes into the builder, follow these steps:
  1. Open manifest.json file in the theme folder.
  2. Modify the properties accordingly.
  3. Save the file.
  4. Copy the theme folder and paste it to the themes repository. By default, the theme repository is located under \client\stemapp\themes folder. In this way, your theme is available to the builder.

Wednesday, January 6, 2016

fontawesome-webfont.woff not found

fontawesome-webfont.woff not found error

IIS :

Add the following lines to your web.config

 
   
   
 


add this section to your web.config and then those mime types will be automatically added to IIS on any server you deploy to. (The remove is to avoid a duplicate mime type error in case they are already there)


    
       fileExtension=".woff" />
       fileExtension=".woff" mimeType="application/font-woff" />
       fileExtension=".woff2" />
       fileExtension=".woff2" mimeType="font/x-woff" />
    



apache:

ok

You have to add these lines because by default Apache is not configured with .woff as a default MIME-type. Apache default MIME-type This holds for IIS as well. As Seb Duggan explains here:IIS default MIME, by default .woff files will not be served by the server.