From fc2e41e69142ff2112439ff4b30d57f96439fc60 Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 7 Dec 2010 15:46:04 +0000 Subject: [PATCH] added a forwarder for the default page. The forwarder forwards a browser to a different page if the root file index.html is accessed. This can be done by setting the name of the forwarder page to the field "Default index.html Page (by forwarder)" in /ConfigPortal.html The purpose is to forward to /yacyinteractive.html for the 27C3 FTP search plattform git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7365 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- defaults/yacy.init | 7 ++++++- htroot/ConfigPortal.html | 3 +++ htroot/ConfigPortal.java | 4 ++++ htroot/index.html | 1 + htroot/index.java | 8 ++++++++ source/de/anomic/search/SwitchboardConstants.java | 5 +++++ 6 files changed, 27 insertions(+), 1 deletion(-) diff --git a/defaults/yacy.init b/defaults/yacy.init index fc5c7af5b..de55cd76a 100644 --- a/defaults/yacy.init +++ b/defaults/yacy.init @@ -197,7 +197,7 @@ repositoryPath=DATA/HTDOCS/repository # The complete path to this file is created by combination with the rootPath # you can set a list of defaults, separated by comma # the first one is preferred -defaultFiles = ConfigBasic.html,index.html,index.htm,default.html,search.html,console.html,control.html,welcome.html,wiki.html,forum.html,blog.html,email.html,content.html,monitor.html,share.html,dir.html,readme.txt +defaultFiles = index.html,index.htm,default.html,search.html,console.html,control.html,welcome.html,wiki.html,forum.html,blog.html,email.html,content.html,monitor.html,share.html,dir.html,readme.txt # locale-options: YaCy supports localization. # Web pages for special languages are located in the htLocalePath @@ -450,6 +450,11 @@ browserPopUpTrigger=true browserPopUpPage=ConfigBasic.html browserPopUpApplication=firefox +# a forward page can be given for the index.html page +# when a user accesses the index.html page, he/she is forwarded to the page +# as given by indexForward. This is by default not defined which means 'no forward' +indexForward = + # defines if the YaCy icon appears in the system tray on supported platforms trayIcon=true trayIcon.force=false diff --git a/htroot/ConfigPortal.html b/htroot/ConfigPortal.html index ea14134e8..81699851f 100644 --- a/htroot/ConfigPortal.html +++ b/htroot/ConfigPortal.html @@ -38,6 +38,9 @@ Interactive Search Page  +
Default index.html Page (by forwarder)
+
+
Target for Click on Search Results