[
https://issues.apache.org/jira/browse/JSPWIKI-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18134721#comment-18134721
]
Arturo Bernal commented on JSPWIKI-567:
---------------------------------------
Checked on master and in a running instance. Starting a new page from an
existing page is possible with the clone parameter of the editor: the new page
starts with the text of the page named in the parameter, and a variable such as
the page name stays as it was written in that text, so it is evaluated when the
new page is shown. The search box offers it as the Clone this page option for
the page the user is on. What is missing is a choice among several template
pages from a list when a page is created. Limits: I tried the plain editor
only. Leaving the issue open.
> Start Creating New Page with clone from Template page with Variables
> --------------------------------------------------------------------
>
> Key: JSPWIKI-567
> URL: https://issues.apache.org/jira/browse/JSPWIKI-567
> Project: JSPWiki
> Issue Type: New Feature
> Components: Editors
> Affects Versions: 2.8.2, STRIPES/JCR-3.0
> Reporter: Jukka Karvanen
> Priority: Minor
> Attachments: JSPWIKI-567-clone-patch.txt
>
>
> Need:
> Make end user easier to create consistent wiki pages with template page with
> variables.
> Current clone feature of Edit does not support variables in template page.
> Here is patch to add optional variable expansion to clone feature.
> After you add expand=true to Edit.jsp url, variables in template file is
> expanded. The syntax is {$variablename}.
> You can use default JSPWiki variables like {$pagename} or you can add your
> own extra variable appending new ones to url.
> Example:
> Edit.jsp with variables expanded in new clone page:
> Edit.jsp?page=Notes%20Db%20View%20times&clone=DefaultNote&expand=true&backpage=Db%20View%20times
> Utilization in existing page:
> [{InsertPage page='Notes Db View times'},default=
> 'Auto-generated page. Add description and comments to page <a
> href="Edit.jsp?page=Notes Db View
> times&clone=DefaultNote&expand=true&backpage=Db View times"\>Notes Db View
> times</a>'}]
> Content of page file Defaultnote.txt:
> ![{$backpage}]
> [Edit:{$pagename}]
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)