Alexandre, I replay this mail e-mail to the mailing-lists as others are
probably also interested in those questions.
I would like to play with resource, but I am stop by
- What Mimetype means?
The mime-type describes the type of a file in a platform independent
manner. The browser needs this information to know how to display the
If you like to know more about the internals of the http-protocol I
suggest to read the standard-documentation. There you will find also
references to documents about the mime-type standard:
Hypertext Transfer Protocol -- HTTP/1.1
- and Embedding?
This i-var is a boolean telling the renderer ...
true: to try to embed the resource in the document
false: to make a link to the resource.
Note that current browser only support to embed images, videos and
sound into a web-pages. For pdf- and other binary-files, a link will be
This is something that will go away in one of the next versions. I
think it should be the responsibility of the InternalLink and not of
the Resource itself to decide about the link generation. Implementing
this I was a bit lacy, you see ;-)
- how could I see all the files attached to a
resource (within the
Only one file can be attached to a given resource. To find out all the
pages using a resource you start a visitor:
visitor := VisitorReferences startAt: server root to: myResource.
visitor collection inspect.
Those references are calculated automatically in the class
TemplateStructuresReferences for the currently browsed page. The
standard wiki-layout displays this data below the actions, if there are
- If I load an image, how could I see it?
If you want to include an image into your page:
1. create a page and create a new link
2. create a resource from that link
3. edit the resource and upload your image
4. going back to your page should display your resource