How is posible to add new docextra tab with custom content on it (not global
- only for some pages)? For example, if I have some page with configured
content - I want to display this page as a new docextra tab.

I know, that it is possible to manage presentation of docextra tabs.
According to
http://www.xwiki.org/xwiki/bin/view/FAQ/How+to+control+order+of+tabs+at+bottom+of+pages

I can write
#set ($docextras = [])
#set ($discard = $docextras.add(['Comments', 'comments',
$msg.get('docextra.comments'),
$doc.getObjects('XWiki.XWikiComments').size(), 'commentsinline.vm',
$msg.get('core.shortcuts.view.comments')]))
#set ($discard = $docextras.add(['Attachments', 'attachments',
$msg.get('docextra.attachments'), $doc.getAttachmentList().size(),
"attachmentsinline.vm$!{sortAttachmentsBy}",
$msg.get('core.shortcuts.view.attachments')]))
#set ($discard = $docextras.add(['History', 'history',
$msg.get('docextra.history'), -1, 'historyinline.vm',
$msg.get('core.shortcuts.view.history')]))
#set ($discard = $docextras.add(['Information', 'information',
$msg.get('docextra.information'), -1, 'informationinline.vm',
$msg.get('core.shortcuts.view.information')]))

Of course, I can add new tab, but if I trying like this (defined my page in
place of vm tempalate):
#set ($discard = $docextras.add(['test', 'test', $msg.get('test.info'), -1,
'MySpace.MyPage', $msg.get('test.info.shortcuts')]))
new tab created, but without any content ... MySpace.MyPage - contains
content which I want to show in additional tab.

How is possible to do it?

--
Thanks beforehand!
Eugen Colesnicov



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/custom-content-as-a-new-docextra-tabs-tp7584116.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to