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

Not able to create a page/object under a given parent page

    XMLWordPrintable

Details

    • parent, page, object, create
    • Easy

    Description

      When we create any object based on a class template and while creating in the form template if we choose to pick the parent from the request context, the same is not picked up. It creates the object under the default parent.

      say in the Class creation template file if I add the following like
      <input type="hidden" name="parent" value="${defaultparent}"/>
      where defaultparent is something I assign dynamically above, the same page name is not set as the parent for the object I am about to create.

      this is because in editinline.vm we don't fetch the parent parameter passed in the request.
      adding this line would fix the issue.
      <input type="hidden" name="parent" value="$!request.parent" />

      thanks
      Sachin

      Attachments

        Issue Links

          Activity

            People

              jvdrean Jean-Vincent Drean
              sachin_mittal Sachin Mittal
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: