Overview
SHA1 Hash: | 4f641e7e4e8f3705794cb93e334954473fb3ac1d |
---|---|
Date: | 2007-09-02 01:23:13 |
User: | drh |
Comment: | The /index webpage pulls up the wiki page specified in Setup/Configuration.s |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/setup.c from [1750dc4678] to [0c2a6e74d5].
@@ -520,11 +520,12 @@ @ <hr> entry_attribute("Home page", 60, "homepage", "hp", ""); @ <p>The name of a wiki file that is the homepage for the website. @ The home page is the page that is displayed by the "Home" link - @ at the top of this screen.</p> + @ at the top of this screen. Omit the path and the ".wiki" + @ suffix. </p> entry_attribute("Ticket subdirectory", 60, "ticket-subdir", "tsd", ""); @ <p>A subdirectory in the file hierarchy that contains all trouble @ tickets. Leave this blank to disable ticketing. Tickets text @ files within this subdirectory containing a particular format
Modified src/style.c from [7dcde67735] to [4e8cafc457].
@@ -133,13 +133,20 @@ ** WEBPAGE: index ** WEBPAGE: home ** WEBPAGE: not_found */ void page_index(void){ - style_header("Main Title Page"); - @ This will become the title page - style_footer(); + char *zHome = db_get("homepage", 0); + if( zHome ){ + g.zExtra = zHome; + g.okRdWiki = 1; + wiki_page(); + }else{ + style_header("Main Title Page"); + @ No homepage configured for this server + style_footer(); + } } /* ** WEBPAGE: test_env */