Forum Discussion
nathan
12 years agoExecutive
For what it's worth, the body tag (in the HTML) has a class which indicates the page type. For example, this page has the following body tag:
<body class="lia-board ForumTopicPage lia-body" id="lia-body">
In this case, the page type is 'ForumTopicPage'.
You can use this in a few ways:
- You can use it to work out what a given page type is on the community.
- You can create CSS rules that are specific to the page type (just have body.ForumTopicPage in the selector).
- You can use it in the jQuery select, e.g.
$('.ForumTopicPage .BoardBrowserListTaplet .CategoryListDisplay')
Depending on what you're trying to do, this can sometimes negate the need for custom logic.
Related Content
- 4 years ago
- 11 years ago
- 7 years ago