[xwiki-users] Change page into terminal page
We have just migrated from 6.4 to 8.2.x A page holding a UIEXtension object has a parameter: icon=image:[email protected] In a panel we display the pages holding these UIExtension objects To display the image we use: #set($icon = $services.rendering.render($services.rendering.parse("image:${params.icon}", 'xwiki/2.1'), 'xhtml/1.0')) It used to generate a string: xwiki/bin/download/cdlsServices/cdlsNews/nw-news-icon.png But after migration it generates: xwiki/bin/download/cdlsServices/cdlsNews/WebHome/nw-news-icon.png (notice the WebHome part...) The browser reports that it can not find the image!. When going to the attached image and showing it: xwiki/bin/download/cdlsServices/cdlsNews/nw-news-icon.png And this url display's the image. I guess there are multiple paths to a solution here? - Can I change the page holding the UIExtension to a terminal page? How? - different use of rendering services? - ....??? 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<[email protected]>
Hi Gerritjan,
On 27 Sep 2016, at 10:01, Gerritjan Koekkoek <[email protected]> wrote:
We have just migrated from 6.4 to 8.2.x
A page holding a UIEXtension object has a parameter:
icon=image:[email protected]
In a panel we display the pages holding these UIExtension objects
To display the image we use:
#set($icon = $services.rendering.render($services.rendering.parse("image:${params.icon}", 'xwiki/2.1'), 'xhtml/1.0'))
It used to generate a string: xwiki/bin/download/cdlsServices/cdlsNews/nw-news-icon.png
But after migration it generates: xwiki/bin/download/cdlsServices/cdlsNews/WebHome/nw-news-icon.png (notice the WebHome part…)
This shouldn’t have changed after upgrading to 8.2.x. Unless you’ve modified the page cdlsServices.cdlsNews and transformed it into a non-terminal page (in this case you transformed its reference from cdlsServices.cdlsNews to cdlsServices.cdlsNews.WebHome).
The browser reports that it can not find the image!. When going to the attached image and showing it: xwiki/bin/download/cdlsServices/cdlsNews/nw-news-icon.png And this url display's the image.
I guess there are multiple paths to a solution here? - Can I change the page holding the UIExtension to a terminal page? How?
Yes but again the upgrade to 8.2.1 isn’t changing any page so you must have done something. Have you executed the Nested Page Migrator on this page for example? Yes you can change it back to terminal indeed, see http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle#HMove2FR...
- different use of rendering services?
You could also keep the page as Nested (ie non terminal) and use: icon=image:[email protected] Thanks -Vincent
- ....???
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<[email protected]>
Hi Vincent Hi Gerritjan,
On 27 Sep 2016, at 10:01, Gerritjan Koekkoek <[email protected]> wrote:
We have just migrated from 6.4 to 8.2.x
A page holding a UIEXtension object has a parameter:
icon=image:[email protected]
In a panel we display the pages holding these UIExtension objects
To display the image we use:
#set($icon = $services.rendering.render($services.rendering.parse("image:${params.icon}", 'xwiki/2.1'), 'xhtml/1.0'))
It used to generate a string: xwiki/bin/download/cdlsServices/cdlsNews/nw-news-icon.png
But after migration it generates: Actually we did NOT do a migration, just a upgrade of the wiki and a execution of the upgrade wizard!
xwiki/bin/download/cdlsServices/cdlsNews/WebHome/nw-news-icon.png (notice the WebHome part...)
This shouldn't have changed after upgrading to 8.2.x. Unless you've modified the page >cdlsServices.cdlsNews and transformed it into a non-terminal page (in this case you transformed its >reference from cdlsServices.cdlsNews to cdlsServices.cdlsNews.WebHome).
No we did not migrate the pages to a different structure, just did not touch them at all, although, trying to fix the problem I have edited ad saved the page many times, but nothing special
The browser reports that it can not find the image!. When going to the attached image and showing it: xwiki/bin/download/cdlsServices/cdlsNews/nw-news-icon.png And this url display's the image.
I guess there are multiple paths to a solution here? - Can I change the page holding the UIExtension to a terminal page? How?
Yes but again the upgrade to 8.2.1 isn't changing any page so you must have done something. Have you >executed the Nested Page Migrator on this page for example?
Yes you can change it back to terminal indeed, see > http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle#HMove2FRename<http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle#HMove2FRename>
When I did a rename the target page was already marked as Terminal-page? But that did not fix my issue. Then I did a rename unchecking the 'terminal page' box and this made the picture appear (so still using: #set($icon = $services.rendering.render($services.rendering.parse("image:${params.icon}", 'xwiki/2.1'), 'xhtml/1.0'))
- different use of rendering services?
You could also keep the page as Nested (ie non terminal) and use: icon=image:[email protected]
Thanks, this is also a bit cleaner, although I assume I should do it without the 'WebHome'
Thanks -Vincent
- ....???
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> Gerritjan Koekkoek | Facebook<https://www.facebook.com/gerritjan.koekkoek> www.facebook.com Gerritjan Koekkoek is on Facebook. Join Facebook to connect with Gerritjan Koekkoek and others you may know. Facebook gives people the power to share and...
email<[email protected]>
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users users -- XWiki Users - lists.xwiki.org Mailing Lists<http://lists.xwiki.org/mailman/listinfo/users> lists.xwiki.org List for XWiki users. To see the collection of prior postings to the list, visit the users Archives. Using users: To post a message to all the list ...
participants (2)
-
Gerritjan Koekkoek -
Vincent Massol