The user-generated content areas on your pages initially have no content. You can use templates to assign some default content to these cells; when a user first visits a page requesting the cell, it will load the content from the template instead of a blank cell.
Creating A Template
In many ways, a template functions similarly to a cell. To
implementcreate a template, templates,you simply add
a TemplateService.getTemplate call to a page, similar to how you added user-generated content in step 2 of this guide. A template is edited with the
optionalWYSIWYG editor, just like a standard cell.You may choose add this call via an SSI on pages that are not publicly available, as only moderators have access to edit the content.Applying A Template To A Cell
To apply a template
to a cell, add the optional templateId parameter to your
WikiService.getCellContent,
WikiService.getCell, or
WikiService.getCellWithChildren Data Access API call. These calls are explained in
step 2 of this guide.
YouFor willuser-generated pages, needbe sure to
referencepass thein templateIdofyour adesired template
thatwhen you
have already set up.generate Setting up a templateyour isURL. aThat lottemplateId likeshould settingbe upretrievable afrom cellyour inURL thatwhen you
make one call to include html andrender another foryour theshell clientpage. application.For Aftermore that,information iton behavesuser-generated muchpages, likerefer ato cellstep and6 canof bethis edited.guide.