Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1776

Support Include of Section Content

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 3.0 M3
    • 1.2 RC1
    • {Unused} Rendering 2.0
    • None
    • include, section, macro
    • Unit

    Description

      It would be very useful to be able to include content from a section of another document. Currently, Xwiki only allows inclusion of a whole page through the IncludeInContext etc. macros. A workaround is available if programming privileges are used, by using $xwiki.getDocument() and getContentOfSection(<section_number>). Ultimately, programming privileges should not be required to support this.

      Inclusion would ideally be based upon the title of the section or some other easily accesible marker unique to the section. I believe that supporting inclusion by the section number only would not be sufficient, because adding content to the page would very likely change that value. An example of the macro would be something like #IncludeInContext(PageName, SectionName) or #IncludeTopic(Pagename, SectionName).

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              sjb Steve Brandi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: