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, toString
public String getName()
public String perform(ContentContext inCtx, Map<String,Object> params) throws Exception
Exception
public boolean isPreview()
IMacro
public boolean isAdd()
isAdd
in interface IMacro
isAdd
in class AbstractMacro
Copyright © 2012-2018. All Rights Reserved.