public class CreateChildrenStructureMacro extends AbstractMacro
create a children page structure under the current page. the structure is defined in the template in macro forder in children-structure.txt. sample file structure :
>[parent]-general
=[parent]-technical
=[parent]-tech-agri
=[parent]-[random]
<[parent]-financial
MacroHelper.insertContent(ContentContext, MenuElement, String))| Constructor and Description |
|---|
CreateChildrenStructureMacro() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
boolean |
isAdd() |
boolean |
isPreview()
is this macro can be execute in preview mode.
|
String |
perform(ContentContext inCtx,
Map<String,Object> params) |
getAllComponent, getInfo, getMacroProperties, isAdmin, isInterative, toStringpublic String getName()
public String perform(ContentContext inCtx, Map<String,Object> params) throws Exception
Exceptionpublic boolean isPreview()
IMacropublic boolean isAdd()
isAdd in interface IMacroisAdd in class AbstractMacroCopyright © 2012-2018. All Rights Reserved.