You are here: Foswiki>Tasks Web>Item13493 (02 Jul 2015, JozefMojzis)Edit Attach

Item13493: Hardcode the System web name.

pencil
Priority: Low
Current State: Duplicate
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: JozefMojzis
Waiting For:
Last Change By: JozefMojzis
Currently the System web could be renamed and the Foswiki could be reconfigured to use other name as System. I'm beleive than nobody renames his System web, so could be easier use always the plain System as %SYSTEMWEB%.

If this isn't acceptable,
then needs:
  • grep all topics for the System literal
  • and change them to %SYSTEMWEB%
  • also check where from the /pub is called by %PUBURL%/System/something
  • it is pointless to have a configure option to using another Web for the System without EASY move. Where, the easy move mean:
    • make exact copy of the data/System to e.g. data/Sys
    • same for the pub/System to pub/Sys
    • go to configure
    • change the System-web name to Sys
    • save
    • restart Foswiki
    • done

Some examples:
AdminToolsCategory.txt:   * %ICON{wrench}% [[Site Tools]]: %<nop>WIKIPREFSTOPIC%, InterWikis, [[System.Macros][Macros]], [[DocumentGraphics][Doc Graphics]]
EditingShorthand.txt:   * %PUBURL%/System/ProjectLogos/foswiki-logo-icon.png
InstallationGuide.txt:*Related Topics:* %IF{"$skin = 'plain'" then="<nop>System.<nop>InstallationGuidePart2 in your installation" else="[[InstallationGuidePart2]]"}%, %IF{"$skin = 'plain'" then="<nop>System.<nop>AdminDocumentationCategory in your installation" else="[[AdminDocumentationCategory]]"}%, Foswiki:Support.SupplementalDocuments
TipsContrib.txt:   | ==data/System/TipsContrib.txt== |  (noci) |

etc.. etc..

-- JozefMojzis - 01 Jul 2015

We keep cleaning up system web and replacing the links with %SYSTEMWEB%, and the hardcoded references keep creeping back in. The other webs definitely get renamed, but I have never tried renaming the System web so I'm not sure of how practical it is.

Internal to System web, the topic names should generally be unqualified, unless they are used in an include. So your examples, like [[System.Macros][Macros]] should probably just be [[Macros]].

-- GeorgeClark - 01 Jul 2015

Actually all this cleanup work was an open 2.0 task - Item11737. Obviously I missed some, or they crept back in.

I just renamed System to Mysys on a Foswiki 2.0 installation. Seems to work fine. I'm sure I'll find a few things, but UserRegistration - worked fine. All the links in the registration emails were correct. Topic creator in sandbox.

All i did was
mv data/System data/Mysys
mv pub/System pub/Mysys
change LocalSite.cfg  SystemWebName setting.

My testing systems all use renamed webs:
  • Main => Usersweb
  • Sandbox => Litterbox

And I install them using a extension LocalDataContrib.

I don't see any reason to remove this feature. We just need to do a better job of keeping this all clean.

-- GeorgeClark - 01 Jul 2015

This is a duplicate to Item11737.

Of course, before reported i tried the rename too. It works (just not fine). Going to pull your last checkin and will try again. smile

-- JozefMojzis - 02 Jul 2015
 

ItemTemplate edit

Summary Hardcode the System web name.
ReportedBy JozefMojzis
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Low
CurrentState Duplicate
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r4 - 02 Jul 2015, JozefMojzis
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy