How to open a specific section template on Clicking on a button
Author: Yamini
Publication Date: 10/24/2019 11:26
Hi there,
I have a requirement of opening a specific section template form when i click on a button, how to I do it via script? or using an executable class?
I saw a method:filterAvailableTemplates in the newSectionOperation class but have difficulty in understanding how to use it in the script.
Thank you
Tags: content creator, create new section, fs_button, section_template, webedit
-
Author: Peter_Jodeleit - 10/24/2019 13:04
Just provide the desired template as parameter to the template method.
0 -
Author: Yamini - 10/24/2019 15:20
Hi Peter,
Thanks for your quick reply, but unfortunately my requirement is still not clear. Could you please send some lines of code for reference?
I am not sure for what to put in the template("combo) method
NewSectionOperation template(@NotNull
SectionTemplate template)
because what I need to pass as parameter in the above method as I have name or uid of a section template.
0 -
Author: Peter_Jodeleit - 10/24/2019 15:30
There are API methods where you can get the SectionTemplate by passing the uid. Please consult the API documentation.
0 -
Author: Yamini - 11/13/2019 7:27
Thanks for your support Peter,
The problem has been resolved by creating a new page-content (body) and adding only one section into it and using the newly created page body in the fs-button.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare