Select to view content in your preferred language

Adding links to html pages from widget container

1264
6
11-02-2010 12:18 PM
ChrisBruce
Regular Contributor
I have a web app based on a previous version of the Flex viewer (1.x) and it was easy in the main config file to add links to html pages from any of the widget menus. I'm trying to figure out how to do this in the version 2.1 viewer but haven't hit on it yet. Any ideas?
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Unfortunately they really screwed that up in the 2.x flexviewer... There is a link widget that was created for this shortcoming in the viewer though.

http://forums.arcgis.com/threads/14829-Links-and-Menus-in-SFV-2.1?highlight=link+widget
0 Kudos
ChrisBruce
Regular Contributor
Thanks. Don't know how I missed this before but I'll give it a try.
0 Kudos
LeeAllen
Frequent Contributor
Another alternative would be to use the "About" as your jump off point for web links.  I renamed "About" to "Help and Links" in the headercontrollerwidget.xml and put all of my previous links here.  Works great if you don't have too many, but the links widget looks good for organizing many documents/links.
0 Kudos
ChrisBruce
Regular Contributor
The link widget doesn't quite work like I want it to so I tried adding links to the About widget. This works but I'm not able to format the text and links like I want. My html skills are a bit weak so I started by using an html editor to get the colors, etc. that I wanted for the text and links. Then I realized that having style references in an html header doesn't work, nor apparently does having in-line styles in the html tags. (I found the same to be true for the splash screen widget.) Maybe there's another style sheet being used that's overriding what I'm trying to do? Any ideas? I made the color scheme for my viewer blue and I really don't want blue underlined links...
0 Kudos
chuckfrank
Frequent Contributor
I'm noticing that a header tag doesn't work either <H1> etc.  Is there some more documentation on how to format the html for the splash widget?
0 Kudos
ChrisBruce
Regular Contributor
A colleague of mine passed along this ActionScript reference link, which lists supported HTML tags. It's rather limited but useful to know.
0 Kudos