revise way silva handles links
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Invalid
|
High
|
Andy Altepeter |
Bug Description
The way Silva handles links is a bit confused right now. Mostly it works, but
you get into trouble when you try exporting using the import/export system, or
move content in various ways, etc.
Links get produced by the following pieces of code:
* Kupu (manual entry, get link reference)
* Forms editor (manual entry, get link reference)
Links get rendered by the following code:
* XMLWidgets renderer - tries to display intelligence to deal with weird
* XSLT renderer - doesn't do anything about links, as far as I know.
What we need to do is make sure that links are handled sensibly on *input*.
Output should be save. We could, alternatively or in addition, also do some link
rationalisation during XML export.
Various different situations exist:
* exporting and importing content
* moving content folders
* moving a single content object
we need to go through them and figure out what the right thing to do (relative
links, absolute links, something else) is.
(issue130). It would be nice to have a smarter link renderer that appends
'/preview_html' when in preview mode. In this
way editors can navigate the entire site in public preview mode. This feature
is
important for the editors at Bethel University, as it allows them to
check the entire preview version of a publication prior to
publishing it. Needing to add '/preview_html' after clicking a link to another
silva document is rather cumbersome. Adding this is fairly trivial.
Especially if the preview_html script adds a 'preview' flag to REQUEST.