What about a dictionary on the class side of your link and an
administration component that provides an editor?
However, keep in mind that you need to re-parse the complete site
after editing the prefixes, otherwise you might have an inconsistent
state.
Lukas
On 10 July 2010 18:47, Lawson English <lenglish5(a)cox.net> wrote:
Thanks muchly. Got the first part working.
+MyLink: /images/myimage.png|prefix=http://localhost+
The next part is to be able to store multiple prefixes "globally".
Any suggestions as to where to put a dictionary of prefixes?
As a first pass they would be accessible to anyone, though eventually
perhaps read-only unless you have admin privledges.
Again, thanks for your help.
Lawson
On 7/10/10 3:00 AM, Lukas Renggli wrote:
First, I don't understand how a new link-type is registered with the
system.
Being a subclass of PRLink is enough. See the class-side of the PRLink
hierarchy for details.
Secondly, in general, I'm not clear on how to extend the markup system.
Are
their specific places I should look to get a better understanding of
this?
http://www.lukas-renggli.ch/blog/extendingpierparser
Is there some kind of overview of the internal organization of the markup
system that will help guide me in how it all works together?
http://scg.unibe.ch/archive/masters/Reng06a.pdf (Chapter 3)
Lukas