From bce08132280229958020d5f212fb3f4d4e165386 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 26 Jul 2005 18:21:27 +0000 Subject: [PATCH] Added 'Edit page title' SVN revision: 1456 --- doc/config.html | 7 +++++++ src/elogd.c | 13 ++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/doc/config.html b/doc/config.html index 81e71cb9..be988941 100755 --- a/doc/config.html +++ b/doc/config.html @@ -913,6 +913,13 @@ used by most browsers for bookmark names. The string can contain substitutions as described unter the "Subst <attribute>" option.

+

  • Edit Page title = <string> +
    +The string specified here is used for the title of the entry form. It is also +used by most browsers for bookmark names. The string can contain substitutions +as described unter the "Subst <attribute>" option. +

    +

  • List display = <list>
    Specified the display and order of items in a message listing page or a search diff --git a/src/elogd.c b/src/elogd.c index 610d5dfa..3546dac9 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.727 2005/07/26 18:21:27 ritt + Added 'Edit page title' + Revision 1.726 2005/07/26 18:15:19 ritt Added 'reply comment' @@ -9266,7 +9269,15 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL } /* header */ - show_html_header(lbs, FALSE, "ELOG", FALSE, FALSE, cookie); + + if (getcfg(lbs->name, "Edit Page Title", str, sizeof(str))) { + i = build_subst_list(lbs, (char (*)[NAME_LENGTH]) slist, (char (*)[NAME_LENGTH]) svalue, NULL, TRUE); + strsubst(str, sizeof(str), (char (*)[NAME_LENGTH]) slist, (char (*)[NAME_LENGTH]) svalue, i); + strip_html(str); + } else + sprintf(str, "ELOG %s", lbs->name); + + show_html_header(lbs, FALSE, str, FALSE, FALSE, cookie); /* java script for checking required attributes and to check for cancelled edits */ rsprintf("