[xwiki-users] edit title in inline mode
Hi all, stumped on a little trick in inline mode: I created a sheet for a class, so users will use an inline mode form. However, I want them to be able to change the title of the document, like so: #if ($context.action != 'view') $doc.display('title') {{html}}#template('tagedit.vm'){{/html}} #end as you can see, I am able to add a tag editor in inline mode, but the title does not show up, and can not be edited. I'd hate to use a different object for the title, any suggestions? Thanks!
Come to think of it, the nicest way to be able to edit some structured 'new' data as well as the usual title, tags but also content objects might not be binding a sheet to the class, but adding a panel or macro that enables users to add these 'custom' objects to the page. That would make some kind of hybrid mode: both normal editing and inline editing on one document. Any experience on that? On 1 May 2012 16:56, Joris Dirks <[email protected]> wrote:
Hi all, stumped on a little trick in inline mode:
I created a sheet for a class, so users will use an inline mode form. However, I want them to be able to change the title of the document, like so:
#if ($context.action != 'view') $doc.display('title')
{{html}}#template('tagedit.vm'){{/html}} #end
as you can see, I am able to add a tag editor in inline mode, but the title does not show up, and can not be edited. I'd hate to use a different object for the title, any suggestions?
Thanks!
On Tue, May 1, 2012 at 5:56 PM, Joris Dirks <[email protected]> wrote:
Hi all, stumped on a little trick in inline mode:
I created a sheet for a class, so users will use an inline mode form. However, I want them to be able to change the title of the document, like so:
#if ($context.action != 'view')
$doc.display('title')
This is not good. It looks for a "title" property on the current object or the first object (of $doc) that has it. If you want to show a text input for the document title see https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... . You can either include this template or take from it the code that you need. Hope this helps, Marius
{{html}}#template('tagedit.vm'){{/html}} #end
as you can see, I am able to add a tag editor in inline mode, but the title does not show up, and can not be edited. I'd hate to use a different object for the title, any suggestions?
Thanks! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Joris Dirks -
Marius Dumitru Florea