Description: First of all i would like to use XWiki as my personal knowledge base, and using it to keep track of my projects. And if possible share some blog posts and some projects with the world. Most of these topics are concerning information security and forensics.
Owner name: Joachim Vanthienen
Wiki name: SecITup
Hi,
I'm quite new in XWiki and trying to use the RestAPI to create pages, and
pages inside pages (which I think is called spaces). I have the feeling
that 'spaces' is a legacy term, and that in the current XWiki (Enterprise
9.1), an space is just a page that contains other pages. Kindly correct me
if I'm wrong, but I have not find anywhere how to create an space.
Below the 2 URLs I'm using to create the pages. In both cases, when I use
PUT to call the 2 urls, I pass as data a content and a title. I have no
problem with the title and the content, both are being created correctly.
My end goal is to create pages, and pages withing pages.
"http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/2017-2020/pages/madrid
"
"
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/2017-2020/spaces/madrid…
"
In both cases, I'm using PUT and I'm able to create pages successfully,
however, not as I want:
- "
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/2017-2020/pages/madrid"
This one creates a page called "madrid" (with the content I pass)
- "
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/2017-2020/spaces/madrid…
"
I would expect this one to create a page named "cibeles" inside the
previous "madrid" page.
Instead, it creates a new "madrid" page (without any text in the content,
which is fine as I dont pass anything), and inside this page, the "cibeles"
page (with the content I expect)
So, I end up having TWO pages named "madrid"
One points to "http://localhost:8080/xwiki/bin/view/2017-2020/madrid/"
(and have inside a page named cibeles) . This "madrid" page displays this
text: "The requested page could not be found.", although inthe hierarchy
tree I see it has a page inside.
The other (without a nested page), points to: "
http://localhost:8080/xwiki/bin/view/2017-2020/madrid" and has a proper
content (which I passed in the PUT request)
(notice the / at the end of the URL, "madrid" vs "madrid/" )
How to indicate that the page should be created in an existing page
without the need to create this new parent page? Or even if I have to
create first the parent page, how to tell that the child page should be
inside that existing parent page?
Thanks for your help,
Juan
It has always been normal that if a page did not have the attribute 'title' (it was left empty)
it would use a smart way to see if in the text there was a header of level 1,2 or 3 at the top. And then display that as the title...
Now I've migrated pages to a XWiki 8.4.4 and this does not work any more?
What can cause this change in behavior ? Is it a known issue when migrating pages from 6.4 to ???
Is the nested pages a possible cause?
I tried to put the h2 title in the title attribute as well, but still the pagename is shown as title?
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Hi All,
We are rearranging our xwiki and we have many pages to move to different
locations. So far, the only solution seems to be doing so one page at a
time, which is tedious having into account that more than 200 pages need to
be moved.
I was wondering whether this could be streamlined somehow. I could not find
help in the mailing list archives and I think the only extension available
is:
http://extensions.xwiki.org/xwiki/bin/view/Extension/File+Manager+Applicati…
but this seems to work with non-wiki files.
Any feedback is appreciated.
Best regards,
Sebastian
Hi all,
I'm using xwiki enterprise 8.4.4.
I've installed the PDF view macro
<http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Viewer+Macro>extension
(it appears as "installed" in the extensions manager).
How do I now view a PDF using it? See the attached screenshot. When I click
on the PDF, the file is downloaded locally. How can I view the PDF in the
browser?
Oliver