[xwiki-users] Displaying an image on several pages
Hi, I think I'm missing something here. To display an image on a page it's pretty simple : you attach it to a page, and use the {image} macro to display it. Good. What if I want to display the same image in 2 or 3 different pages ? I can't do the same because if the image is attached to page1 it will not be usable on page2. How can I upload a image (or a file) that could be visible to all the wiki ? Thanks, Antonio
Hi Antonio, On May 3, 2007, at 11:20 AM, Antonio Goncalves wrote:
Hi,
I think I'm missing something here. To display an image on a page it's pretty simple : you attach it to a page, and use the {image} macro to display it. Good. What if I want to display the same image in 2 or 3 different pages ? I can't do the same because if the image is attached to page1 it will not be usable on page2. How can I upload a image (or a file) that could be visible to all the wiki ?
Why don't you reference the same attachment from different pages? See http://www.xwiki.org/xwiki/bin/view/Code/ImageMacro Hint: check the document attribute :) -Vincent
Great, works fine. I didn't know what the document attribute was used for. I've just updated the http://www.xwiki.org/xwiki/bin/view/Code/ImageMacro and added more information. Thanks, Antonio 2007/5/7, Vincent Massol <[email protected]>:
Hi Antonio, On May 3, 2007, at 11:20 AM, Antonio Goncalves wrote:
Hi,
I think I'm missing something here. To display an image on a page it's pretty simple : you attach it to a page, and use the {image} macro to display it. Good. What if I want to display the same image in 2 or 3 different pages ? I can't do the same because if the image is attached to page1 it will not be usable on page2. How can I upload a image (or a file) that could be visible to all the wiki ?
Why don't you reference the same attachment from different pages?
See http://www.xwiki.org/xwiki/bin/view/Code/ImageMacro
Hint: check the document attribute :)
-Vincent
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
BTW would it be a good practice to have a page with just shareable images ? I can see a benefit in terms of administration (all the images at the same place, easier to change an image if needed...) but could that have a performance impact (this page would be accessed more often). 2007/5/7, Antonio Goncalves <[email protected]>:
Great, works fine. I didn't know what the document attribute was used for. I've just updated the http://www.xwiki.org/xwiki/bin/view/Code/ImageMacro and added more information.
Thanks, Antonio
2007/5/7, Vincent Massol <[email protected]>:
Hi Antonio, On May 3, 2007, at 11:20 AM, Antonio Goncalves wrote:
Hi,
I think I'm missing something here. To display an image on a page it's pretty simple : you attach it to a page, and use the {image} macro to display it. Good. What if I want to display the same image in 2 or 3 different pages ? I can't do the same because if the image is attached to page1 it will not be usable on page2. How can I upload a image (or a file) that could be visible to all the wiki ?
Why don't you reference the same attachment from different pages?
See http://www.xwiki.org/xwiki/bin/view/Code/ImageMacro
Hint: check the document attribute :)
-Vincent
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
On May 8, 2007, at 3:09 PM, Antonio Goncalves wrote:
BTW would it be a good practice to have a page with just shareable images ? I can see a benefit in terms of administration (all the images at the same place, easier to change an image if needed...) but could that have a performance impact (this page would be accessed more often).
I don't have a firm opinion on this. For maintenance it might be easier to put images where they are used, ie in the page where they are used. Now if you're talking about an image that is used everywhere then yes it makes sense to have it only in one place (like we do for the logo of the skin for example). I think it's on a case by case basis. -Vincent
2007/5/7, Antonio Goncalves <[email protected]>: Great, works fine. I didn't know what the document attribute was used for. I've just updated the http://www.xwiki.org/xwiki/bin/view/ Code/ImageMacro and added more information. Thanks,
Antonio
2007/5/7, Vincent Massol <[email protected]>: Hi Antonio,
On May 3, 2007, at 11:20 AM, Antonio Goncalves wrote:
Hi,
I think I'm missing something here. To display an image on a page it's pretty simple : you attach it to a page, and use the {image} macro to display it. Good. What if I want to display the same image in 2 or 3 different pages ? I can't do the same because if the image is attached to page1 it will not be usable on page2. How can I upload a image (or a file) that could be visible to all the wiki ?
Why don't you reference the same attachment from different pages?
See http://www.xwiki.org/xwiki/bin/view/Code/ImageMacro
Hint: check the document attribute :)
-Vincent
participants (2)
-
Antonio Goncalves -
Vincent Massol