|  |   Subweb and topic names - conflicts, view URLs, and links If your TWiki installation has the hierarchical webs feature turned on,
you face subtle issues about subweb (web inside a web) and topic names.
If you are unfamiliar with subwebs, please read ManagingWebs#Hierarchical_Webs.
TWiki 5.1.2 has introduced measures to take care of those issues.
As such, in this topic "in the past" means 5.1.1 and earler; "now" means 5.1.2 and later. Avoiding conflicts of subweb and topic names If the topicAaAa.BbBexists, the subwebAaAa/BbBbmust not exist.
If they co-exist, when the topic AaAa.BbBb is moved, all topics of theAaAa/BbBbsubweb lose all attachments.
This is becauseAaAa.BbBbtopic's attachments are stored in the directory.../pub/AaAa/BbBb/whileAaAa/BbBbsubweb's topics have their attachments in the directory.../pub/AaAa/BbBb/TOPIC/.
WhenAaAa.BbBbtopic is renamed toAaAa.CcCc,.../pub/AaAa/BbBbdirectory is renamed to.../pub/AaAa/CcCc, which causesAaAa/BbBbsubweb to lose its all attachments.
In the past there was no mechanism to avoid clash of subweb and topic names.
But now you cannot create a subweb whose name clashes with an existing topic name and vice versa.
Renaming of topics and webs have name clash detection and avoidance logics. View URLs Let's say there is a subweb namedAaAa/DdDd.
In the past http://twiki.example.com/cgi-bin/view/AaAa/DdDd led to the "This topic does not exist" page.
But now it causes redirecttion to http://twiki.example.com/cgi-bin/view/AaAa/DdDd/WebHome.
Even now,AaAa.BbBbtopic andAaAa/BbBbsubweb may co-exist as a legcy from an old version.
In that case, http://twiki.example.com/cgi-bin/view/AaAa/BbBb shows AaAa.BbBb topic while http://twiki.example.com/cgi-bin/view/AaAa/BbBb/ shows the home page of theAaAa/BbBbsubweb. Links on topics TopicName,WebName.TopicName,[[TopicName][...]], and[[WebName.TopicName][...]]become links to the specified topics.
IfTopicNameis actually a subweb name rather than a topic name, those links point toWebHomeof the subweb.
This may sound strange to a long term TWiki user.
If a subwebAaAa/DdDdexists, on the topicAaAa.EeEe,DdDdand[[DdDd]]become links toAaAa/DdDd.WebHome.
You can link to a subweb in a relative manner.
The old behavior was to make a link to create the "missing topic"AaAa.DdDd.
This is wrong for sure.
And they have to become links - otherwise the label in[[link][label]]goes nowhere.
If so, there is no other link destination thanWebHomeof the subweb.
Related Topics: AdminDocumentationCategory |