[xwiki-devs] New Panel for creating pages
Hello all, Currently we have a panel for creating pages. There is a drop down for selecting Page, Space or Blog Post. New pages are created under the current space. I would like to create a panel for creating pages only. So there is a similiar drop down (existing spaces listed) for selecting which Space the page should be created under. Then the text box as usual for the Title. Any idea how to do it please? does the page creation takes an argument for the space location? Many Thanks Art -- View this message in context: http://n2.nabble.com/New-Panel-for-creating-pages-tp834125p834125.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi, you can create a panel from here : http://yourdomain.com/xwiki/bin/view/Panels/ you can see the original NewPage code here : http://yourdomain.com/xwiki/bin/inline/Panels/NewPage To build the list of existing page you can do $util.sort($xwiki.spaces). You'll also need a bit of JavaScript to concatenate the space and page name. On Tue, Sep 2, 2008 at 4:58 PM, Art Yeung <[email protected]> wrote:
Hello all,
Currently we have a panel for creating pages. There is a drop down for selecting Page, Space or Blog Post. New pages are created under the current space.
I would like to create a panel for creating pages only. So there is a similiar drop down (existing spaces listed) for selecting which Space the page should be created under. Then the text box as usual for the Title.
Any idea how to do it please? does the page creation takes an argument for the space location?
Many Thanks Art -- View this message in context: http://n2.nabble.com/New-Panel-for-creating-pages-tp834125p834125.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Jean-Vincent Drean
Hi JV, Managed to get it sorted now. Didn't realise we can put the "SpaceName.PageName" into the Title and it will put it under the correct space. Many Thanks Art. Jean-Vincent Drean wrote:
Hi,
you can create a panel from here : http://yourdomain.com/xwiki/bin/view/Panels/
you can see the original NewPage code here : http://yourdomain.com/xwiki/bin/inline/Panels/NewPage
To build the list of existing page you can do $util.sort($xwiki.spaces). You'll also need a bit of JavaScript to concatenate the space and page name.
On Tue, Sep 2, 2008 at 4:58 PM, Art Yeung <[email protected]> wrote:
Hello all,
Currently we have a panel for creating pages. There is a drop down for selecting Page, Space or Blog Post. New pages are created under the current space.
I would like to create a panel for creating pages only. So there is a similiar drop down (existing spaces listed) for selecting which Space the page should be created under. Then the text box as usual for the Title.
Any idea how to do it please? does the page creation takes an argument for the space location?
Many Thanks Art -- View this message in context: http://n2.nabble.com/New-Panel-for-creating-pages-tp834125p834125.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Jean-Vincent Drean _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- View this message in context: http://n2.nabble.com/New-Panel-for-creating-pages-tp834125p836420.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (2)
-
Art Yeung -
Jean-Vincent Drean