[Silva-general] Silva Update 1.4>2.x: anchor/index do not work anymore
eric at infrae.com
Tue Oct 7 11:35:34 CEST 2008
> Is there any update script I have to call?
> I don't like to tell our editors to manually edit the anchors in each
There should be nothing that you have to do manually, unless the
UPGRADE.txt file tells you otherwise.
Since you're skipping so many major versions, though, it becomes hard to
see where the problems originate. Since the upgrades also include more
than one Zope migration, it may be that this will not work in one fell
swoop. (I know that Zope 2.8 internally migrated some index objects for
instance, but that could be circumvented by manually rebuilding the
index after the process.)
To see what causes problems, the event log might be a good place to
start, since the more invasive upgrades tend to log what they're doing.
If that doesn't result in any clues, the only recourse may be to go
through the upgrades for each major version, instead of doing the 1.4 to
2.0 all in one, to see which individual upgrade results in the problems.
1.6 to 2.0 is a 'dummy' upgrader: it doesn't really do anything.
1.5 to 1.6 seems to be the only place where anchors are touched, (for
index items), so this may be your best bet.
From 'what's new in Silva 1.6':
Anchors and index items
Silva 1.6 has a change in the index items to make them conform to the
XHTML spec. In short, you now have anchors, and you have anchors with
titles which makes them index items. If you want your anchor to show up
in the Indexer, give it a title when editing. See an illustrated
explanation in the documentation:
Silva 1.6 requires a minor upgrade for this feature. The upgrader will
change all existing index items to XHTML valid anchors with a title.
Many existing index items contain illegal characters, e.g. "Links to
named anchors" has spaces. The upgrader will change the illegal
characters to underscores, which will render so:
<a class="index-element" id="Links_to_named_anchors"></a>
In Kupu the anchor will have a title with spaces: "Links to named
anchors". This is used in the Indexer as the text for the link display.
If there are other illegal characters in your index items, they'll all
become underscores, e.g. "Fermer items publiés" will become
- eric casteleijn
More information about the silva-general