On Fri, Jul 10, 2009 at 8:42 AM, Jean-Vincent Drean <[email protected]>wrote:
> On Thu, Jul 9, 2009 at 7:53 PM, Pascal > Voitot<[email protected]> wrote: > > Hello, > > I can now edit sections on my 1.9RCx (modifications where light so I > could > > retrofit them) > > But when I do sthg like: > > {{include document="MyDocument"/}} > > I don't see the section editing for the included content. > > > > Is it the default behavior not to propose section editing when the > document > > is included into another one? > > > > Yes, the rule is: if a title is output by a macro (include, velocity, > etc) don't provide a link to edit the section. > The reason we forbid editing of section generated by scripts > (velocity, etc) is quite obvious, these titles can be generated and > thus we wouldn't be able to find them in the wiki source. About titles > coming from included documents, from a usability standpoint it could > be misleading to be redirected to the edition of another document. > Note that the behavior of section editing with xwiki/2.0 mimics the > xwiki/1.0 behavior. > In fact, I quite agree with your choice, I just wanted to be sure about that... I wanted to have a main document built just by including other documents and to be able to edit those documents' sections directly from the main document. But I found a solution for my case which respects XWiki behavior: why not directly integrate the documents I want to edit into the main document. So, instead of including another document into my main document, I use a script that reads a document template and pastes its content into my main document. Pascal > > Thanks, > JV. > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

