Hello Devs,
Is it possible to render one page with two different class sheets.
For example, in a 3 page navigation,
-> We create an object of a class on the first page and add it to the second
page.
-> But, we do not display the Object properties on the second page, instead,
we add some more properties to that object on that page
->on the third page we want to display the object properties.
So, my question is can I just use the same page for the second and third
page (described above). That one page has the object added to it but will
display two different things based on the style sheet.
I tried doing this, but it did not replace the class sheet applied the first
time with the second one.
-> From Page 1 to Page 2, I used
$response.sendRedirect($newdoc.getURL("save",
"template=${etemplate}&parent=${eparent}&title=$etitle"))
where etemplate = Template 1
This adds
#includeForm("XWiki.ClassSheet1")
-> From Page 2 - Page2 (with a different template), I used,
$response.sendRedirect($newdoc.getURL("propupdate",
"template=${etemplate}&parent=${eparent}&title=$etitle"))
where etemplate = template 2
This does not replace #includeForm("XWiki.ClassSheet1") , but just adds //
to the wiki editor and the editor contents look like this:
//
#includeForm("XWiki.ClassSheet1")
I was expecting it to just overwrite it with
#includeForm("XWiki.ClassSheet2")
Q) Is there any way to remove the template and add a new one....any other
better way of achieving this.
Thanks a lot for all help