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, 3.0
Reporter: Jukka Karvanen
Priority: Minor
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 tue Edit.jsp url, variables in template file. 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.