Customizing response page

Reply
Highlighted
L0 Member

Customizing response page

First time doing this and I'm fairly familiar with HTML and CSS however I'm not sure how to target Subcategories

Is there a way to target Subcategories when using a custom response page?

 

The online documentation only mentions <category/>

 

also do you upload the file as a .txt or .html file?

 

this is what I have in the script part

<div id="content">

<p><img src="http://example.com/test.jpg"</img></p>

<script type="text/javascript">
var cat = "<category/>";
switch(cat)
{
case 'file-sharing':
document.getElementById("content").innerHTML = "file-sharing";
break;
}
</script>

</div>

Tags (1)

Accepted Solutions
Highlighted
Community Team Member

Re: Customizing response page

Hi @rufusleonard@jvalentine,

 

 

If I'm not mistaken the variable <category/> only applies to URL filtering category and file-sharing isn't a valid URL category.

 

Looking at your example (file-sharing) you don't want a URL filtering response page but rather application filtering one (Application Block Page) which is disabled by default :

 

2017-03-13_10-20-46.jpg

 

 

As far as I know there's no variable for 'subcategory of application' that you can use in the customized response pages.  

You can use the variable <appname/> to identify the application though.

 

Cheers,

-Kim.

 

View solution in original post


All Replies
Highlighted
L7 Applicator

Re: Customizing response page

Highlighted
Community Team Member

Re: Customizing response page

Hi @rufusleonard@jvalentine,

 

 

If I'm not mistaken the variable <category/> only applies to URL filtering category and file-sharing isn't a valid URL category.

 

Looking at your example (file-sharing) you don't want a URL filtering response page but rather application filtering one (Application Block Page) which is disabled by default :

 

2017-03-13_10-20-46.jpg

 

 

As far as I know there's no variable for 'subcategory of application' that you can use in the customized response pages.  

You can use the variable <appname/> to identify the application though.

 

Cheers,

-Kim.

 

View solution in original post

Highlighted
L1 Bithead

Re: Customizing response page

your link resolves in 404...  add correct link please

Highlighted
L7 Applicator

Re: Customizing response page

Documentation link updated.  

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!