Link widget

443
3
Jump to solution
06-20-2014 04:08 PM
Highlighted
Regular Contributor
I am using Robert's Link widget. It works great.

I am looking to create more than a simple list of links to documents.

How do I create subheadings with groups of links under this widget's drop down in the GUI?
Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
MVP Esteemed Contributor
Tim,

   Here is an example XML:

    <tree>         <item label="ArcGIS Viewer for Flex Forum"               url="http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex"/>         <item label="Sites">           <item label="ESRI"               icon="url"               url="http://www.esri.com"/>           <item label="ArcNews"               icon="url"               url="http://www.esri.com/esri-news/arcnews"/>           <item label="ArcUser Magazine"               icon="url"               url="http://www.esri.com/esri-news/arcuser"/>            <item label="ESRI Support"               icon="url"               url="http://support.esri.com"/>         </item>         <item label="Documents">             <item label="ArcGIS 10.1 Enterprise Deployment"                 icon="pdf"                 url="http://downloads.esri.com/support/whitepapers/other_/1896J9736_ArcGIS_Enterprise_Deployment.pdf"/>             <item label="Use excel spreadsheet in ArcMap"                 icon="xls"                 url="http://resources.arcgis.com/en/help/main/10.1/index.html#//005s0000001w000000"/>             <item label="Introduction to GIS Mapping and ESRI???s ArcGIS Software"                 icon="doc"                 url="http://www.library.yale.edu/MapColl/files/docs/01-Introduction%20to%20GIS%20Mapping%20and%20ArcGIS%209.2%20Software.doc"/>             <item label="sample Dataset"                 icon="zip"                 url="http://www.esri.com/esri-news/arcuser/spring-2013/~/media/Files/zips/news/arcuser/0313/battle-mountain05.zip"/>         </item>     </tree>


As you can see if all the item has is a label and it has children then you get a folder.

View solution in original post

3 Replies
Highlighted
Frequent Contributor II
Tim,

Have you looked at Roberts link list widget:

http://www.arcgis.com/home/item.html?id=df56092010f043589b6847b3f9cf0947

Regards

Anthony
Reply
0 Kudos
Highlighted
Regular Contributor
Yes, that is what I am using. However, I forgot how to create the format he shows in his sample dropdown which shows text subheadings under each is a list of hyperlinks:

Sites
URL
URL
URL
Documents
URL
URL
URL

What is the code for how to set up the Link List dropdown like this? as opposed to a simple list of hyperlinks NOT separated by subheadings.
Reply
0 Kudos
Highlighted
MVP Esteemed Contributor
Tim,

   Here is an example XML:

    <tree>         <item label="ArcGIS Viewer for Flex Forum"               url="http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex"/>         <item label="Sites">           <item label="ESRI"               icon="url"               url="http://www.esri.com"/>           <item label="ArcNews"               icon="url"               url="http://www.esri.com/esri-news/arcnews"/>           <item label="ArcUser Magazine"               icon="url"               url="http://www.esri.com/esri-news/arcuser"/>            <item label="ESRI Support"               icon="url"               url="http://support.esri.com"/>         </item>         <item label="Documents">             <item label="ArcGIS 10.1 Enterprise Deployment"                 icon="pdf"                 url="http://downloads.esri.com/support/whitepapers/other_/1896J9736_ArcGIS_Enterprise_Deployment.pdf"/>             <item label="Use excel spreadsheet in ArcMap"                 icon="xls"                 url="http://resources.arcgis.com/en/help/main/10.1/index.html#//005s0000001w000000"/>             <item label="Introduction to GIS Mapping and ESRI???s ArcGIS Software"                 icon="doc"                 url="http://www.library.yale.edu/MapColl/files/docs/01-Introduction%20to%20GIS%20Mapping%20and%20ArcGIS%209.2%20Software.doc"/>             <item label="sample Dataset"                 icon="zip"                 url="http://www.esri.com/esri-news/arcuser/spring-2013/~/media/Files/zips/news/arcuser/0313/battle-mountain05.zip"/>         </item>     </tree>


As you can see if all the item has is a label and it has children then you get a folder.

View solution in original post