Hi lukas
You could even put the style.css and the image as
resource into your
wiki and serve it from the wiki itself, so you don't need to give a
local file-url.
Then what should I write in the import statement of the template?
Lukas I saved the image and reopen it and it seems to me that the
import I specified was lost.
Is it possible or my mistake?
- I do not have any reference or doc at hand but I found the following
code difficult
because you mix accept and visit in the same method
Visitor>>acceptPage: aPage
self acceptStructure: aPage.
self visit: aPage document
I was programming using the visitor that roel defined for bibtext
processing and he uses
BibVisitor>>visitFile:
BibVisitor>>visitField:
Then the structure provide the acceptMethod:
BibVisitor>> visitEntry: anEntry
anEntry body acceptVisitor: self
I checked and in SmallWiki you have accept on the Structure and accept*
on all the
visitor and this is confusing. Do am I wrong? Visitor been a big double
dispatch I would
prefer to have:
Visitor visiting and Structure accepting (I also checked in the GOF
book)
So may be it would be good to deprecate some methods and offer new
ones. This would improve the
readibility and avoid to get lost....
- I saw that the parent of a resource is not the page having a
reference to it but the folder in which the resource is located. I can
understand why: multiple pages in the same folder can refer to the same
resource. Now is there a simple way to know from which page a resource
is accessed?
I saw that in the searchVisitor you use the currentPage to keep this
information and I did the same but I would like to know if there is a
way to know that information directly.
- how can I find the name and not the title of an uploaded image?
- My first dummy version of a wiki analyzer works :) (look at the
SmallWiki - Moka package). You can get all the pages that contain
uploads. I took me some hours and now I'm sure that I could redo it in
less than 20 min. Now the real questions is how to provide and
categorize results. I will continue to extend it. My idea is that after
this functionality should be built via the search engine.
I would like to be able to plug different results renderers for example
I will try to have thumbnails.
Stef