I did check the docs, but I had missed the htdocs type. The docs don't
say what that is, though it is pretty obvious! I would assert the
documentation is a bit unclear, especially since of the 11 examples,
only one mentioned htdocs.
Anyway, once I added the missing htdocs (thanks Doug!), it was still a
bit confusing, as there were, in my case, two potential "htdocs"
location. When I installed Trac, I ended up with the following:
/var/lib/trac/myproject/htdocs
and
/var/www/localhost/htdocs/trac
From my experiments, I found that
[[Image(htdocs:myimage.png)]]
found the image in the first directory. I don't know how the latter
directory (the trac subdirectory in my Apache tree) got created, or what
it is for; if I'm missing something, please let me know, though I should
stress that I'm up and running, thanks to Doug!
This is cool stuff!
-Bob
Doug Douglass wrote:
Robert,
Check the docs[1], they're pretty clear on the various arguments to
the Image macro, though I haven't used the source or htdocs types myself.
Doug
[1] http://trac.edgewall.org/wiki/WikiMacros (you'll have to scroll
down to the [[Image]] entry)
On 8/8/06, *Robert S. Grimes* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
Trying to get the Image macro to work on Trac 0.9. My code on my page
(MyPageName) is like this:
[[Image(myimage.png)]]
I get:
*Error: Macro Image(myimage.png) failed*
Attachment MyPageName: myimage.png does not exist.
The log gives a Python traceback and a message that, again,
myimage.png
does not exist. Well, of course, it does exist, but I suppose not in
the correct location. My simple question is this - where is trac
looking for this file? I can't figure out what it is using for the
path. My trac.ini file did not have an entry for htdocs_location;
when
I tried adding one, I really screwed things up. I'm not sure whether
the htdocs_location should be given an absolute filesystem path; I'd
rather use relative, but again, I'm not sure what it is relative to!
Probably all I need is to know how to determine where it is
looking for
the files...
Thanks!
_______________________________________________
Trac mailing list
[email protected] <mailto:[email protected]>
http://lists.edgewall.com/mailman/listinfo/trac
------------------------------------------------------------------------
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac