[xwiki-users] Create document from many template
First of all I want say Hello to all the community. I'm newbie of XWiki and wiki in general; I'm trying to start a enterprise wiki and I choose XWiki after many consideration. To create a clean and organized wiki I want give to the users the possibility of create page starting from some template. Previously, I use PbWiki and this platform offer some template by default, like: - blank template - meeting (to schedule meetings) - press release - project - to do list and so on. I have see the http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateADocumentTemplate LINK that explain that purpose, but what I want to do is offer to the users a choice from a list of templates to start from. Have you some help to me? Thank you -- View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2424398.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
roberto colferai wrote:
First of all I want say Hello to all the community. I'm newbie of XWiki and wiki in general; I'm trying to start a enterprise wiki and I choose XWiki after many consideration. To create a clean and organized wiki I want give to the users the possibility of create page starting from some template. Previously, I use PbWiki and this platform offer some template by default, like: - blank template - meeting (to schedule meetings) - press release - project - to do list and so on.
I have see the http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateADocumentTemplate LINK that explain that purpose, but what I want to do is offer to the users a choice from a list of templates to start from.
Have you some help to me? Thank you
We're planning to do something like this in the future by default, but not very soon. A way to implement this now is to: - create the templates as wiki documents - create a redirector page that accepts two URL parameters, document name and template name, and does a redirect with: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', "template=${request.templateName}")) - create a panel with a text input field for the document name and a select (drop down) list for choosing from the templates, which submits these fields to the redirector page from above The above redirect works like this: - 'edit' will display the document in edit mode (works well for unstructured wiki documents); you can use 'inline' for structured (form-based) documents. - the "template=" parameter instructs the wiki to use another document as a template for the edited document. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
cut >
We're planning to do something like this in the future by default, but not very soon.
A way to implement this now is to: - create the templates as wiki documents - create a redirector page that accepts two URL parameters, document name and template name, and does a redirect with: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', "template=${request.templateName}")) - create a panel with a text input field for the document name and a select (drop down) list for choosing from the templates, which submits these fields to the redirector page from above
The above redirect works like this: - 'edit' will display the document in edit mode (works well for unstructured wiki documents); you can use 'inline' for structured (form-based) documents. - the "template=" parameter instructs the wiki to use another document as a template for the edited document.
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Sergiu, thank you for your answer and for your speed! I have IT experienc from twenty years ago but only in mainframe host system (ibm-cobol-db2) and I have some difficult to understand completely how you tell. I try to show you if I understand. 1) create the templates making one wiki-page for every templates (es. pag template1, template2 etc) 2) create a redirect page that, I think, every users never see but works "hide". How can I make it? How can I make a page that accepts two URL parameters? 3) create a panel (Is like create a page? I think no but I don't know exatly what is panel in this world). Is possibile make it with normal edit-mode or is an activity for developer? In this case what kind of skill I must find? Java programmer is enough? Thank's a lot Roberto ----- ICT Area-responsable Assimoco spa Segrate, MI Italy -- View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2425311.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
roberto colferai wrote:
Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
cut > We're planning to do something like this in the future by default, but not very soon.
A way to implement this now is to: - create the templates as wiki documents - create a redirector page that accepts two URL parameters, document name and template name, and does a redirect with: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', "template=${request.templateName}")) - create a panel with a text input field for the document name and a select (drop down) list for choosing from the templates, which submits these fields to the redirector page from above
The above redirect works like this: - 'edit' will display the document in edit mode (works well for unstructured wiki documents); you can use 'inline' for structured (form-based) documents. - the "template=" parameter instructs the wiki to use another document as a template for the edited document.
Sergiu, thank you for your answer and for your speed! I have IT experienc from twenty years ago but only in mainframe host system (ibm-cobol-db2) and I have some difficult to understand completely how you tell. I try to show you if I understand. 1) create the templates making one wiki-page for every templates (es. pag template1, template2 etc) 2) create a redirect page that, I think, every users never see but works "hide". How can I make it? How can I make a page that accepts two URL parameters? 3) create a panel (Is like create a page? I think no but I don't know exatly what is panel in this world). Is possibile make it with normal edit-mode or is an activity for developer? In this case what kind of skill I must find? Java programmer is enough?
In XWiki, "everything is a document". And in a document you can have plain text, wiki formatting, HTML markup, and scripting. The default and recommended scripting language is Velocity, a really small programming language, backed up by the XWiki API, which provides access to the data model, the current request/response, and to other important functionalities. This forms the unstructured part of a document. On top of it, wiki documents can contain a data type definition (like a blog post, an access right rule, a comment, etc), and instances of different such structured data. Combining structured and unstructured data with scripts you can obtain in-wiki applications, like the ones you can find on http://code.xwiki.org/xwiki/bin/view/Applications/ The templates will be regular wiki document, with the content reflecting the predefined information you want to see in your documents. If you want more advanced functionalities you can define data types and instead of unstructured content you can make full-fledged applications, but this is harder to master. The redirect page is another wiki document that contains as text exactly the line of code that I wrote above. Of course, this is the quick and dirty version, without any error handling, like missing or malformed arguments. The panel is a structured document, you can easily create one by going to the Panels space and fill in the name of the new panel in the little form that's in there, and look (edit) at the other panels for examples. There's no need for an advanced java programmer, as our goal is to make application development as easy as possible (we're not quite there yet, but close enough). I know we lack detailed tutorials, but we're busy on the implementation with little time for documentation. You can advance by: - looking at the other documents in the wiki, the examples on http://code.xwiki.org/, the guides from http://platform.xwiki.org/xwiki/bin/view/DevGuide/ and the tutorials from http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials - looking at the Velocity documentation (velocity.apache.org) and our javadoc for the API ( http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi... ) - posting questions on IRC or the users mailing list - getting payed support from www.xwiki.com (the best way to support XWiki and its development) -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
cut > We're planning to do something like this in the future by default, but not very soon.
A way to implement this now is to: - create the templates as wiki documents - create a redirector page that accepts two URL parameters, document name and template name, and does a redirect with: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', "template=${request.templateName}")) - create a panel with a text input field for the document name and a select (drop down) list for choosing from the templates, which submits these fields to the redirector page from above
The above redirect works like this: - 'edit' will display the document in edit mode (works well for unstructured wiki documents); you can use 'inline' for structured (form-based) documents. - the "template=" parameter instructs the wiki to use another document as a template for the edited document.
Sergiu, thank you for your answer and for your speed! I have IT experienc from twenty years ago but only in mainframe host system (ibm-cobol-db2) and I have some difficult to understand completely how you tell. I try to show you if I understand. 1) create the templates making one wiki-page for every templates (es. pag template1, template2 etc) 2) create a redirect page that, I think, every users never see but works "hide". How can I make it? How can I make a page that accepts two URL parameters? 3) create a panel (Is like create a page? I think no but I don't know exatly what is panel in this world). Is possibile make it with normal edit-mode or is an activity for developer? In this case what kind of skill I must find? Java programmer is enough?
In XWiki, "everything is a document". And in a document you can have plain text, wiki formatting, HTML markup, and scripting. The default and recommended scripting language is Velocity, a really small programming language, backed up by the XWiki API, which provides access to the data model, the current request/response, and to other important functionalities. This forms the unstructured part of a document. On top of it, wiki documents can contain a data type definition (like a blog post, an access right rule, a comment, etc), and instances of different such structured data. Combining structured and unstructured data with scripts you can obtain in-wiki applications, like the ones you can find on http://code.xwiki.org/xwiki/bin/view/Applications/
The templates will be regular wiki document, with the content reflecting the predefined information you want to see in your documents. If you want more advanced functionalities you can define data types and instead of unstructured content you can make full-fledged applications, but this is harder to master.
The redirect page is another wiki document that contains as text exactly the line of code that I wrote above. Of course, this is the quick and dirty version, without any error handling, like missing or malformed arguments.
The panel is a structured document, you can easily create one by going to the Panels space and fill in the name of the new panel in the little form that's in there, and look (edit) at the other panels for examples.
There's no need for an advanced java programmer, as our goal is to make application development as easy as possible (we're not quite there yet, but close enough).
I know we lack detailed tutorials, but we're busy on the implementation with little time for documentation. You can advance by: - looking at the other documents in the wiki, the examples on http://code.xwiki.org/, the guides from http://platform.xwiki.org/xwiki/bin/view/DevGuide/ and the tutorials from http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials - looking at the Velocity documentation (velocity.apache.org) and our javadoc for the API ( http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi... ) - posting questions on IRC or the users mailing list - getting payed support from www.xwiki.com (the best way to support XWiki and its development)
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Wow Sergiu, you're very helpful and friendly. Thank you very much. Now, I have some thing to study... :-) Best Regards Roberto ----- ICT Area-responsable Assimoco spa Segrate, MI Italy -- View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2428145.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, made something similar not using a redirect page but the copy function and adapted the code provided here http://code.xwiki.org/xwiki/bin/view/Snippets/SelectDocumentToCopySnippet First question: Whats the better way to create pages per template? (copy or redirect) With that code all users need programming rights to create pages as copies from templates, is that an error in the code and is that different with the redirect page. Thanks hel. Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
cut > We're planning to do something like this in the future by default, but not very soon.
A way to implement this now is to: - create the templates as wiki documents - create a redirector page that accepts two URL parameters, document name and template name, and does a redirect with: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', "template=${request.templateName}")) - create a panel with a text input field for the document name and a select (drop down) list for choosing from the templates, which submits these fields to the redirector page from above
The above redirect works like this: - 'edit' will display the document in edit mode (works well for unstructured wiki documents); you can use 'inline' for structured (form-based) documents. - the "template=" parameter instructs the wiki to use another document as a template for the edited document.
Sergiu, thank you for your answer and for your speed! I have IT experienc from twenty years ago but only in mainframe host system (ibm-cobol-db2) and I have some difficult to understand completely how you tell. I try to show you if I understand. 1) create the templates making one wiki-page for every templates (es. pag template1, template2 etc) 2) create a redirect page that, I think, every users never see but works "hide". How can I make it? How can I make a page that accepts two URL parameters? 3) create a panel (Is like create a page? I think no but I don't know exatly what is panel in this world). Is possibile make it with normal edit-mode or is an activity for developer? In this case what kind of skill I must find? Java programmer is enough?
In XWiki, "everything is a document". And in a document you can have plain text, wiki formatting, HTML markup, and scripting. The default and recommended scripting language is Velocity, a really small programming language, backed up by the XWiki API, which provides access to the data model, the current request/response, and to other important functionalities. This forms the unstructured part of a document. On top of it, wiki documents can contain a data type definition (like a blog post, an access right rule, a comment, etc), and instances of different such structured data. Combining structured and unstructured data with scripts you can obtain in-wiki applications, like the ones you can find on http://code.xwiki.org/xwiki/bin/view/Applications/
The templates will be regular wiki document, with the content reflecting the predefined information you want to see in your documents. If you want more advanced functionalities you can define data types and instead of unstructured content you can make full-fledged applications, but this is harder to master.
The redirect page is another wiki document that contains as text exactly the line of code that I wrote above. Of course, this is the quick and dirty version, without any error handling, like missing or malformed arguments.
The panel is a structured document, you can easily create one by going to the Panels space and fill in the name of the new panel in the little form that's in there, and look (edit) at the other panels for examples.
There's no need for an advanced java programmer, as our goal is to make application development as easy as possible (we're not quite there yet, but close enough).
I know we lack detailed tutorials, but we're busy on the implementation with little time for documentation. You can advance by: - looking at the other documents in the wiki, the examples on http://code.xwiki.org/, the guides from http://platform.xwiki.org/xwiki/bin/view/DevGuide/ and the tutorials from http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials - looking at the Velocity documentation (velocity.apache.org) and our javadoc for the API ( http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi... ) - posting questions on IRC or the users mailing list - getting payed support from www.xwiki.com (the best way to support XWiki and its development)
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
----- hel. [email protected] -- View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2428576.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Helmut, On Thu, Mar 5, 2009 at 11:32 AM, hel-o <[email protected]> wrote:
Hi,
made something similar not using a redirect page but the copy function and adapted the code provided here
http://code.xwiki.org/xwiki/bin/view/Snippets/SelectDocumentToCopySnippet
First question:
Whats the better way to create pages per template? (copy or redirect)
Both ways work fine. Using the redirect might be more transparent for the user but it doesn't change much in the end. Mostly a personal preference here ;-) What you could do is write a manual list of documents to use as templates as the input (instead of showing all spaces / pages).
With that code all users need programming rights to create pages as copies from templates, is that an error in the code and is that different with the redirect page.
This sounds weird. Programming rights are checked when rendering a page. This means that your page has to be saved by an user with programming rights. However, it doesn't mean that every single user who uses the page has to have programming rights. An user with the edit right should be able to use the snippet. This should be the same in both the redirect and the copy modes. Guillaume
Thanks hel.
Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
cut > We're planning to do something like this in the future by default, but not very soon.
A way to implement this now is to: - create the templates as wiki documents - create a redirector page that accepts two URL parameters, document name and template name, and does a redirect with: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', "template=${request.templateName}")) - create a panel with a text input field for the document name and a select (drop down) list for choosing from the templates, which submits these fields to the redirector page from above
The above redirect works like this: - 'edit' will display the document in edit mode (works well for unstructured wiki documents); you can use 'inline' for structured (form-based) documents. - the "template=" parameter instructs the wiki to use another document as a template for the edited document.
Sergiu, thank you for your answer and for your speed! I have IT experienc from twenty years ago but only in mainframe host system (ibm-cobol-db2) and I have some difficult to understand completely how you tell. I try to show you if I understand. 1) create the templates making one wiki-page for every templates (es.
pag
template1, template2 etc) 2) create a redirect page that, I think, every users never see but works "hide". How can I make it? How can I make a page that accepts two URL parameters? 3) create a panel (Is like create a page? I think no but I don't know exatly what is panel in this world). Is possibile make it with normal edit-mode or is an activity for developer? In this case what kind of skill I must find? Java programmer is enough?
In XWiki, "everything is a document". And in a document you can have plain text, wiki formatting, HTML markup, and scripting. The default and recommended scripting language is Velocity, a really small programming language, backed up by the XWiki API, which provides access to the data model, the current request/response, and to other important functionalities. This forms the unstructured part of a document. On top of it, wiki documents can contain a data type definition (like a blog post, an access right rule, a comment, etc), and instances of different such structured data. Combining structured and unstructured data with scripts you can obtain in-wiki applications, like the ones you can find on http://code.xwiki.org/xwiki/bin/view/Applications/
The templates will be regular wiki document, with the content reflecting the predefined information you want to see in your documents. If you want more advanced functionalities you can define data types and instead of unstructured content you can make full-fledged applications, but this is harder to master.
The redirect page is another wiki document that contains as text exactly the line of code that I wrote above. Of course, this is the quick and dirty version, without any error handling, like missing or malformed arguments.
The panel is a structured document, you can easily create one by going to the Panels space and fill in the name of the new panel in the little form that's in there, and look (edit) at the other panels for examples.
There's no need for an advanced java programmer, as our goal is to make application development as easy as possible (we're not quite there yet, but close enough).
I know we lack detailed tutorials, but we're busy on the implementation with little time for documentation. You can advance by: - looking at the other documents in the wiki, the examples on http://code.xwiki.org/, the guides from http://platform.xwiki.org/xwiki/bin/view/DevGuide/ and the tutorials from http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials - looking at the Velocity documentation (velocity.apache.org) and our javadoc for the API (
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi...
) - posting questions on IRC or the users mailing list - getting payed support from www.xwiki.com (the best way to support XWiki and its development)
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
----- hel. [email protected]
-- View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2428576.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
Hello. I finally have time and little resource to experiment with XWiki. Meanwhile, I have installed a new version of XWiki Enterprise: 1.8.17790 I try with the suggest of Sergiu. I made two page, one for a "To do" template and one for "Project" template. Then I made the "redirect" page, starting from an empty page and pasting the code that Sergiu wrote: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', "template=${request.templateName}")) The problem is that when I select "Save & View" the wiki tell me "This document already exist" I don't undertand where is the problem. Thank you Roberto Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
Sergiu Dumitriu-2 wrote:
roberto colferai wrote:
cut > We're planning to do something like this in the future by default, but not very soon.
A way to implement this now is to: - create the templates as wiki documents - create a redirector page that accepts two URL parameters, document name and template name, and does a redirect with: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', "template=${request.templateName}")) - create a panel with a text input field for the document name and a select (drop down) list for choosing from the templates, which submits these fields to the redirector page from above
The above redirect works like this: - 'edit' will display the document in edit mode (works well for unstructured wiki documents); you can use 'inline' for structured (form-based) documents. - the "template=" parameter instructs the wiki to use another document as a template for the edited document.
Sergiu, thank you for your answer and for your speed! I have IT experienc from twenty years ago but only in mainframe host system (ibm-cobol-db2) and I have some difficult to understand completely how you tell. I try to show you if I understand. 1) create the templates making one wiki-page for every templates (es. pag template1, template2 etc) 2) create a redirect page that, I think, every users never see but works "hide". How can I make it? How can I make a page that accepts two URL parameters? 3) create a panel (Is like create a page? I think no but I don't know exatly what is panel in this world). Is possibile make it with normal edit-mode or is an activity for developer? In this case what kind of skill I must find? Java programmer is enough?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
----- ICT Area-responsable Assimoco spa Segrate, MI Italy -- View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2970057.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, Sorry for digging up this thread, but I'm facing the same problem. I want to have a template page that allows the creation of other pages. For example, I want to have a template page (ResearcherTemplate) that allow the creation of Researchers. What I tried to do was create a new page and add the following code: $response.sendRedirect($xwiki.getURL($request.documentName, 'inline', "template=${request.ResearcherTemplate}")) but when I press "Save and View" I get the same error than Roberto: "This document already exist" Thanks in advance. Best regards, Luís Braga -- View this message in context: http://xwiki.475771.n2.nabble.com/Create-document-from-many-template-tp24243... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 02/03/2011 07:53 PM, Lukapt wrote:
Hi,
Sorry for digging up this thread, but I'm facing the same problem.
I want to have a template page that allows the creation of other pages. For example, I want to have a template page (ResearcherTemplate) that allow the creation of Researchers.
What I tried to do was create a new page and add the following code: $response.sendRedirect($xwiki.getURL($request.documentName, 'inline', "template=${request.ResearcherTemplate}"))
but when I press "Save and View" I get the same error than Roberto: "This document already exist"
What version of XWiki are you using? Note that recent versions have the so called "Document Templates", check the wiki administration. -- Sergiu Dumitriu http://purl.org/net/sergiu/
See below. 2011/2/3 Sergiu Dumitriu <[email protected]>
On 02/03/2011 07:53 PM, Lukapt wrote:
Hi,
Sorry for digging up this thread, but I'm facing the same problem.
I want to have a template page that allows the creation of other pages.
For
example, I want to have a template page (ResearcherTemplate) that allow the creation of Researchers.
What I tried to do was create a new page and add the following code: $response.sendRedirect($xwiki.getURL($request.documentName, 'inline', "template=${request.ResearcherTemplate}"))
but when I press "Save and View" I get the same error than Roberto: "This document already exist"
What version of XWiki are you using? Note that recent versions have the so called "Document Templates", check the wiki administration.
Do you know where is the documentation page for "Document Templates" ? The only page I found about this topic is http://platform.xwiki.org/xwiki/bin/view/Features/Forms but it doesn't seem to be exactly the same feature. Many thanks. Maxime
On Feb 4, 2011, at 10:18 AM, Le Génie wrote:
See below.
2011/2/3 Sergiu Dumitriu <[email protected]>
On 02/03/2011 07:53 PM, Lukapt wrote:
Hi,
Sorry for digging up this thread, but I'm facing the same problem.
I want to have a template page that allows the creation of other pages.
For
example, I want to have a template page (ResearcherTemplate) that allow the creation of Researchers.
What I tried to do was create a new page and add the following code: $response.sendRedirect($xwiki.getURL($request.documentName, 'inline', "template=${request.ResearcherTemplate}"))
but when I press "Save and View" I get the same error than Roberto: "This document already exist"
What version of XWiki are you using? Note that recent versions have the so called "Document Templates", check the wiki administration.
Do you know where is the documentation page for "Document Templates" ? The only page I found about this topic is http://platform.xwiki.org/xwiki/bin/view/Features/Forms but it doesn't seem to be exactly the same feature. Many thanks.
It's here http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Applicat... I'm going to try linking to it in the platform features page. Thanks -Vincent
On Feb 4, 2011, at 10:36 AM, Vincent Massol wrote:
On Feb 4, 2011, at 10:18 AM, Le Génie wrote:
See below.
2011/2/3 Sergiu Dumitriu <[email protected]>
On 02/03/2011 07:53 PM, Lukapt wrote:
Hi,
Sorry for digging up this thread, but I'm facing the same problem.
I want to have a template page that allows the creation of other pages.
For
example, I want to have a template page (ResearcherTemplate) that allow the creation of Researchers.
What I tried to do was create a new page and add the following code: $response.sendRedirect($xwiki.getURL($request.documentName, 'inline', "template=${request.ResearcherTemplate}"))
but when I press "Save and View" I get the same error than Roberto: "This document already exist"
What version of XWiki are you using? Note that recent versions have the so called "Document Templates", check the wiki administration.
Do you know where is the documentation page for "Document Templates" ? The only page I found about this topic is http://platform.xwiki.org/xwiki/bin/view/Features/Forms but it doesn't seem to be exactly the same feature. Many thanks.
It's here http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Applicat...
I'm going to try linking to it in the platform features page.
I've added a quick blurb on http://platform.xwiki.org/xwiki/bin/view/Features/Forms (needs to be improved) which is referenced from the Platform and XWiki Enterprise feature pages. Is that good enough to find it? Thanks -Vincent
Yes, thank you Vincent, it's good enough to find it. And I think that the description (in Extension.Administration Application) is well done, very useful and complete. May be it could be made available in the administration guide. It's an easy to use and very useful feature. Maxime 2011/2/4 Vincent Massol <[email protected]>
On Feb 4, 2011, at 10:36 AM, Vincent Massol wrote:
On Feb 4, 2011, at 10:18 AM, Le Génie wrote:
See below.
2011/2/3 Sergiu Dumitriu <[email protected]>
On 02/03/2011 07:53 PM, Lukapt wrote:
Hi,
Sorry for digging up this thread, but I'm facing the same problem.
I want to have a template page that allows the creation of other
pages.
For
example, I want to have a template page (ResearcherTemplate) that allow the creation of Researchers.
What I tried to do was create a new page and add the following code: $response.sendRedirect($xwiki.getURL($request.documentName, 'inline', "template=${request.ResearcherTemplate}"))
but when I press "Save and View" I get the same error than Roberto: "This document already exist"
What version of XWiki are you using? Note that recent versions have the so called "Document Templates", check the wiki administration.
Do you know where is the documentation page for "Document Templates" ? The only page I found about this topic is http://platform.xwiki.org/xwiki/bin/view/Features/Forms but it doesn't seem to be exactly the same feature. Many thanks.
It's here http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Applicat...
I'm going to try linking to it in the platform features page.
I've added a quick blurb on http://platform.xwiki.org/xwiki/bin/view/Features/Forms (needs to be improved) which is referenced from the Platform and XWiki Enterprise feature pages.
Is that good enough to find it?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (7)
-
Guillaume Lerouge -
hel-o -
Le Génie -
Lukapt -
roberto colferai -
Sergiu Dumitriu -
Vincent Massol