HTML syntax to pull folder name

New Here ,
Jan 08, 2021

Copy link to clipboard

Copied

I have the following line in my master page to dynamically pull the title of the topic and place it at the top of my page in the header.

 

<p class="TopicTitle"><span data-field="title" data-format="default" style="font-size:55px; font-weight: bold; color: #35363a">Common Issues</span></p>

 

Is there syntax for the data-field="" variable that will automatically pull the folder name that it resides in in the hierarchy? So it will look something like this "Office 365 - Common Issues" using the example above? Would end up as 2 separate <span>s with the hyphen in between.

 

Part of the process for me is outputting to .PDF certain parts of the Knowledgebase i am tasked with building and this would keep me from having to manually put the full title in or use a new master sheet for each section of the database.

 

Thanks

Views

35

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have something to add?

Join the conversation