Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-5) was last changed on 26-Nov-2004 09:21 by DirkFrederickx  

This page was created on 15-Nov-2004 21:16 by DirkFrederickx

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 added 2 lines
[{SET versionLabel='Approved' }]
[{SET liveVersion='37' }]
At line 4 changed 4 lines
It would be useful to be able to attach a label to a specific version of a page.
Such as : 'Draft', 'Approved', 'Under construction', etc.
This version label should then be displayed in the Page Info screen,
and it should be easy to establish a hyperlink to that specific version.
It would be useful to add a __versionLabel__ and a __liveVersion__ to a page.
The versionLabel indicates the 'state' of that page :
e.g. 'Draft', 'Approved', 'Under construction', etc.
The liveVersion refers to the actual stable version of the page.
(i got the idea of a liveVersion from [Daisy|http://new.cocoondev.org/daisy/2])
At line 11 changed one line
! Label a version of a page. ( {{$versionLabel}} )
! Add meta data to a page.
At line 13 changed one line
An easy way to introduce a version label in a page, is to use a wiki variable.
An easy way to introduce the __versionLabel__ and __liveVersion__ in a page, is to use a wiki variable.
At line 17 changed one line
[{SET versionLabel='First draft of this page' }]
[{SET versionLabel='First DRAFT' }]
[{SET liveVersion='14' }]
At line 20 changed 2 lines
A few small changes are needed in the {{~InfoContent.jsp}} to display this variable.
With following change, an extra column is shown with the version labels.
A few small changes are needed on the {{~InfoContent.jsp}} to display the versionLabel for each
version, and a orange marker for the live version.
At line 28 added one line
At line 27 changed one line
<th>Version Label</th> <!-- insert extra column here -->
<wiki:PageType type="page">
<th>Version Label</th> <!-- insert extra column here -->
</wiki:PageType>
At line 38 added one line
At line 41 added 8 lines
<td>
<wiki:LinkTo version="<%=Integer.toString(currentPage.getVersion())%>">
<wiki:PageVersion/>
</wiki:LinkTo>
<%= ( (liveVersion!= 0) && (liveVersion == currentPage.getVersion() ) )
? "&nbsp;&nbsp;<span style=\"background:#FF9933;\">&laquo;Live</span>" : ""
%>
</td>
At line 33 changed one line
<td><wiki:Variable var='versionLabel' default="&nbsp;"/></td>
<wiki:PageType type="page">
<td><wiki:Variable var='versionLabel' default="&nbsp;"/></td>
</wiki:PageType>
At line 40 changed one line
! Simplified editing of the {{$versionLabel}}
! Simplified editing of the meta data of the page
At line 43 changed 4 lines
by the Edit.jsp would be welcome. Moreover, the version label should be reset
at every edit session of a page; since it only has value for that specific version
of a page.
\\FFS
by the Edit.jsp would be welcome.
\\FFS
At line 113 added 4 lines
----
Small update, introducing a __liveVersion__ and updating the ~InfoContent.jsp. --26 nov 04, [DF|DirkFrederickx]
Version Date Modified Size Author Changes ... Change note
5 26-Nov-2004 09:21 4.179 kB DirkFrederickx to previous
4 16-Nov-2004 00:01 3.574 kB Administrator to previous | to last
3 16-Nov-2004 00:01 3.554 kB Administrator to previous | to last
2 15-Nov-2004 21:18 2.999 kB DirkFrederickx to previous | to last
1 15-Nov-2004 21:16 3.003 kB DirkFrederickx to last
« This page (revision-5) was last changed on 26-Nov-2004 09:21 by DirkFrederickx