On Dec 14, 10:56 am, "Cooke, Mark" <[email protected]> wrote: > > -----Original Message----- > > From: [email protected] On Behalf Of bejot22 > > Sent: 13 December 2011 13:13 > > To: Trac Users > > Subject: [Trac] Re: Global Trac-Wiki Images > > > Hi Marc, > > > thank you for your response. > > I solved the problem through copying the file everywhere.png to > > "/usr/local/lib/python2.7/dist-packages/Trac-0.12.2-py2.7.egg/trac/ > > htdocs" (in my case). > > ...and what happens when you next upgrade Trac? I'm not sure if your package > manager would remove that file... If you use the `absolute` page attachment > path then the image stays with the wiki data (especially if you need to move > the data to a new server). > > ~ mark c > > > Now I was able to link like this: "[[Image(/chrome/common/ > > everywhere.png)]]". > > Thanks again! > > > Sincerly yours > > bejot22 > > > On 29 Nov., 16:33, "Cooke, Mark" <[email protected]> wrote: > > > > -----Original Message----- > > > > From: [email protected] On Behalf Of bejot22 > > > > Sent: 29 November 2011 15:13 > > > > To: Trac Users > > > > Subject: [Trac] Global Trac-Wiki Images > > > > > Hello again, > > > > > I am looking for a solution to show a specific image on > > almost every > > > > wiki-page. > > > > To do this I just want do add something like > > [[Image(everywhere.png)]] > > > > to the wiki-pages. > > > > But unfortunately this does not work.
As Mark says, it is a bad idea to put files into the Trac egg. Instead put the image in the project htdocs directory (ie. /path/to/ your_project/htdocs/), then you can reference it as: [[Image(htdocs:everywhere.png)]] :::simon https://www.coderesort.com http://trac-hacks.org/wiki/osimons -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
