[ewiki] Re: feature request: link binaries on page
- From: Mario Salzer <mario@xxxxxxxxxxxxx>
- To: ewiki@xxxxxxxxxxxxx
- Date: Wed, 18 Feb 2004 21:12:20 +0100
> I hope I don't annoy you by my frequent posting - if so, say so.
not at all.
> Imagine you uploaded lots of "attachments" to a page and want to refer to
> them
> w/in the page. Wouldn't it be useful to link the binaries from w/in the page?
> Currently this cannot be done, since only images are recognised and anything
> starting w/ internal get made into <a href="internal://... linking nowhere.
> This cannot be circumvent by setting EWIKI_IDF_INTERNAL to something
> different from "internal://". What do you think?
That is not a feature request, it's a bug report. ewiki should have
generated the correct <a href="...?binary=..."> link for it.
I look up the code, it anyhow needs tweaking (Flash movies are still
broken). The _linking() code will eventually be broken up, and a secondary
_linking_external() or _linking_binary() concentrates on such stuff.
> Actually I'd also find something shorter and simpler than "internal://"
> better, but due to the current design it must contain "://", right?
It's not necessary anymore - the mysql database once was aware of the
"://" string, but now it returns the full {meta} field for page "FIND"
requests if it detects an image entry (it scans for a serialized string
now).
If standards compliant, ewiki would actually use "x-internal://" for
uploaded binary files. But you can actually use anything, including
for example "data/". However this has the drawback that external
software gets more easily confused, if it also accepted the slash in
page names (and then on occasion tried to access such pages as if they
contained text/*).
- References:
- [ewiki] feature request: link binaries on page
- From: massenmensch
Other related posts:
- » [ewiki] feature request: link binaries on page
- » [ewiki] Re: feature request: link binaries on page
- [ewiki] feature request: link binaries on page
- From: massenmensch