Forum Discussion

tomb's avatar
tomb
Helper
11 years ago

How to get current board name and top level board name

Hi,

 

Helpping client to add Google Analytics tracking for board visits.

 

So in "Skin" - "Page Header". I am trying to  get the board name and top level board name. 

 

I know I can use p<#if page.context.thread??>${page.context.thread.board}    ${page.context.thread.board.id}</#if>


But ${page.context.thread.board} returns me the object and ${page.context.thread.board.id} returns me the lowest level board name. 

 

Just want to know how to get the top level board name please, I tried to look for documentation, but no luck.

 

Thanks in advance,

 

Ke