How to display the Table of Contents with a link

Status
Not open for further replies.

gdgsupport

Support
Staff member
Code:
I want to write in the home HTML page the following text (Table of contents). When the user clicks on it the left panel is opened and the table of contents is shown, exactly as it is the case with the table of contents button
First step: write the script
go to the Script Manager, double click on “UserMain” and copy/paste this code in the existing script:
Code:
procedure ShowTheToc;
begin
 ShowLeftPanel(2, True);                
end;
Click “Save Script” and now edit your HTML page. Insert the following HTML code:
Code:
<a href="hescript://UserMain.ShowTheToc">Table of contents</a>
And you can compile / run your project.
 
Last edited:
Status
Not open for further replies.
Back
Top