[xwiki-users] Images with wysywig
When our user use the wysywig editor to insert a image And the user chooses to upload the image from computer The system will attach the image to the current $doc But it will insert a link [[image:xxxxx.xxx]] where xxxxz.xxx is the attached filename. This works fine when page is visited. But when in BLOG or using {{include reference='docWithImage'/}} It can not find the link and show the according 'can not find image' icon Is it possible to automatically insert a image as [[image:wiki:[email protected]]] (is this called extended reference to attached image]) Same for any attached file where user chooses to add a link to attachment (PDF, .doc, .xls) 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, The include macro gets the content of the included doc and executes it in the current doc. If that content mentions an attachment, the attachment will be resolved to the current doc as well, so if the file does not exist in the current doc, it`s normal for it to not be found. What you maybe wanted to use instead was the "{{displa}}" macro, which renders the specified document in the context of the displayed document (not the current one). In that context, the referred image attachment will exist and it should render as expected. Hope this helps, Eduard On Mon, Jul 18, 2016 at 11:54 AM, Gerritjan Koekkoek < [email protected]> wrote:
When our user use the wysywig editor to insert a image
And the user chooses to upload the image from computer
The system will attach the image to the current $doc
But it will insert a link [[image:xxxxx.xxx]] where xxxxz.xxx is the attached filename.
This works fine when page is visited.
But when in BLOG or using {{include reference='docWithImage'/}}
It can not find the link and show the according 'can not find image' icon
Is it possible to automatically insert a image as [[image:wiki:[email protected]]] (is this called extended reference to attached image])
Same for any attached file where user chooses to add a link to attachment (PDF, .doc, .xls)
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]>
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Eduard Moraru -
Gerritjan Koekkoek