1 Reply Latest reply on Nov 22, 2010 9:01 PM by eelsasser

    MWG7 URL Block Pagew - Javascript?

      This is bugging me... anyone have any idea why "$List.OfCategory.ToString$ is done in javascript?

       

       

      Policy -> Settings -> URL Blocked -> Edit template

             

            URL: $URL$
             
            Reputation: $URL.ReputationString$
            Media Type: $List.OfMediaType.ToString$
         

       

      I asked support, but the answer left me wanting... ("due to its adaptability in addition to it being requested by customers")

       

      Any thoughts on why javascript would be used for that specific item, and not the others?

        • 1. Re: MWG7 URL Block Pagew - Javascript?

          It is done that way because the block page actually gets numeric category values sent to it.

          The javascript converts it from the numbers to the text strings for the categories.

          If you display on the block page $URL.Categories$ directly, you will see the numeric values, which is not human readable.

           

          It is done this way so when we include additional language support for the block pages, they will translate and display in the language of the browser.

           

          However, it looks like you can change the:

          writeToDocument("<b>URL Categories: </b>" + "$List.OfCategory.ToString$">)
          to

          <b>URL Categories: </b>$List.OfCategory.ToString$

          And it will work, but I think it will always come out in US-EN.

           

           

          Message was edited by: Erik Elsasser on 11/22/10 9:01:24 PM CST