@jamiemccardle wrote:
If we allow grant see categories for the Product Family then Deny for each subcategory
The proposal shown in the screenshots is that
the topmost category should be denied to all users by default
the inner categories should be selectively opened to specific roles.
The screenshots do a good job of showing what I mean and how the settings manifest, but here is a "massaged" internal data dump, in case it is clearer:
Nodes
Node ID
Path
Node
Type
9
/1/2/
pub
Category
10
/1/2/
priv
Category
11
/1/2/9/
pub1
Category
12
/1/2/9/
pub2
Category
13
/1/2/9/
pub3
Category
14
/1/2/9/11/
pub1a
Board
15
/1/2/9/11/
pub1b
Board
16
/1/2/9/12/
pub2a
Board
17
/1/2/9/12/
pub2b
Board
18
/1/2/9/13/
pub3a
Board
19
/1/2/9/13/
pub3b
Board
20
/1/2/10/
priv1
Category
21
/1/2/10/
priv2
Category
22
/1/2/10/
priv3
Category
23
/1/2/10/20/
priv1a
Board
24
/1/2/10/21/
priv2a
Board
25
/1/2/10/22/
priv3a
Board
Default permissions for nodes
Node ID
Path
Node
Permission
Permissions
10
/1/2/
priv
Deny
read_board, read_category, read_message
Role permissions for nodes
Node ID
Path
Node
Role Name
Permission
Permissions
20
/1/2/10/
priv1
Private #1
Grant
read_board, read_category, read_message
21
/1/2/10/
priv2
Private #2
Grant
read_board, read_category, read_message
22
/1/2/10/
priv3
Private #3
Grant
read_board, read_category, read_message
I do not recommend using JavaScript to hide anything that is secret. Such hidden things will still be present in the page markup (not secret), and when the page is loaded, some users will see the content render and then flicker away, which can be jarring.
If you do wish to use JavaScript in your FreeMarker customizations, especially using jQuery as mentioned by @akshays, I recommend that you use the liaAddScript directive to ensure that the script runs properly and can be supported over time as the platform receives UI updates.
... View more