Add text to all feature descriptions
I'm guessing the answer is no, but I'll ask anyway.
Is there a way to add a link or text to all feature descriptions by default?
I'd like to add a "More details" link (or even just blue text) to signify to people that they should click a search result to open the feature details. In my experience it's not obvious to users that they can or should click a search result - the highlight hover color isn't a strong enough or standard enough signifier on its own.
0
-
Something like this:
<a href="command:ShowFeatureDetails?{$Feature}">Show Details</a> in the feature description.0 -
Right, but I don't want to have to paste that into every feature description of every map layer in my viewer. I'm wondering if there's a way to configure the feature description at the viewer level so that will show up in all fd's. 0 -
Gotcha.
Maybe change the CSS so the feature name looks like a hyperlink?0 -
Thank you, sir, that's a very clever answer. Here's the CSS I used. The color is our organization branded blue.
.feature-label {
font-size: 1.5em;
color: #007AC9;
}
.feature-label:hover {
text-decoration: underline;
}0 -
@Dan Giersz, that piece of code looks mighty interseting (<a href="command:ShowFeatureDetails?{$Feature}">Show Details</a>...). Is there a document that outlines using the commands and parameters in a hyperlink as you have there?
I would really like to do something similar to that including calling multiple commands in the href. Any help is appreciated.0 -
The Geocortex SDK is the best source for commands and parameters. The viewer admin guide has a section on the ways to access it. 0 -
Thank you, this is what I was looking for. For reference, I changed the css in this file: C:\inetpub\wwwroot\<virtual directory name>\Resources\Styles\Custom\common.css. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
7 kommentarer