incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Karvanen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JSPWIKI-567) Start Creating New Page with clone from Template page with Variables
Date Mon, 01 Jun 2009 05:52:07 GMT

     [ https://issues.apache.org/jira/browse/JSPWIKI-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Karvanen updated JSPWIKI-567:
-----------------------------------

    Description: 
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}] 

  was:
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}] 


> 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 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message