Skip to main content

Add text to all feature descriptions

Comments

7 comments

  • Dan Giersz
    Something like this:

     

    <a href="command:ShowFeatureDetails?{$Feature}">Show Details</a> in the feature description.
    0
  • John Nerge
    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
  • Dan Giersz
    Gotcha.

     

    Maybe change the CSS so the feature name looks like a hyperlink?
    0
  • John Nerge
    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
  • Andrew Edwards
    @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
  • Dan Giersz
    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
  • Permanently deleted user
    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

Please sign in to leave a comment.