Changes for document CreateDoc

From version 14.1
edited by Alexandre Lefebvre
on 2012/04/06 17:05
To version 15.1
edited by Alexandre Lefebvre
on 2013/02/19 15:16
Change comment: There is no comment for this version

Content changes

... ... @@ -1,4 +1,4 @@
1 -#set($docname = $xwiki.getUniquePageName("TopicSpace2012", "Proposal"))
1 +#set($docname = $xwiki.getUniquePageName("TopicSpace2013", "Proposal"))
2 2
3 3
4 4 #set($currDate = $xwiki.getDate().getTime())
... ... @@ -5,21 +5,21 @@
5 5 #set($currUser = $xwiki.getUser().getUser())
6 6 #set($docname = $xwiki.clearName("$currUser$currDate"))
7 7
8 -#set($valdoc = $xwiki.getDocument("TopicSpace2012.${docname}"))
9 -#set($ok = $valdoc.setContent($xwiki.getDocument("ProgrammingContest2012Topics.TopicsClassTemplate").getContent()))
10 -#set($ok = $valdoc.setParent("ProgrammingContest2012Topics.WebHome"))
11 -#set($ok = $valdoc.newObject("ProgrammingContest2012Topics.TopicsClass"))
12 -#set($ok = $valdoc.updateObjectFromRequest("ProgrammingContest2012Topics.TopicsClass"))
8 +#set($valdoc = $xwiki.getDocument("TopicSpace2013.${docname}"))
9 +#set($ok = $valdoc.setContent($xwiki.getDocument("ProgrammingContest2013Topics.TopicsClassTemplate").getContent()))
10 +#set($ok = $valdoc.setParent("ProgrammingContest2013Topics.WebHome"))
11 +#set($ok = $valdoc.newObject("ProgrammingContest2013Topics.TopicsClass"))
12 +#set($ok = $valdoc.updateObjectFromRequest("ProgrammingContest2013Topics.TopicsClass"))
13 13 #if($valdoc.validate()==true)
14 14 The programming contest topic has been saved!
15 15 $valdoc.save()
16 -You can access your new topic [here>TopicSpace2012.$docname].
16 +You can access your new topic [here>TopicSpace2013.$docname].
17 17 ##Start Send Mail
18 18 #set($emailrecipient = $valdoc.get('MainContactEMail'))
19 -#set($emailcc = "ow2contest2012@ow2.org")
19 +#set($emailcc = "ow2contest2013@ow2.org")
20 20 #set($emailContent = "Dear $valdoc.get('MainContact'),<br><br>
21 21 Your topic proposal has been correctly submitted!<br>
22 -You can access your proposal at http://www.ow2.org/view/TopicSpace2012/$docname.<br>
22 +You can access your proposal at http://www.ow2.org/view/TopicSpace2013/$docname.<br>
23 23 A confirmation e-mail will be sent to $valdoc.get('MainContactEMail').<br>
24 24 Best regards,<br>
25 25 OW2 Programming Contest Team")
... ... @@ -39,7 +39,7 @@
39 39 #else
40 40 <form action="CreateDoc" method="post">
41 41 #set($mode="edit")
42 -#includeInContext("ProgrammingContest2012Topics.TopicsClassSheet")
42 +#includeInContext("ProgrammingContest2013Topics.TopicsClassSheet")
43 43 <input type="submit" value="Create" />
44 44 </form>
45 45 #end

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4.4 - Documentation
Powered by XWiki Hosted by Xsalto Free PageRank Checker Creative Commons 2.0 license Legal Notice