Fossil

Check-in [8af3d425]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added checkbox to reset mainmenu to its default value, per discussion at forumpost/5ab3ce6c45.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8af3d425d2862b72a2aaaf3184117f1f047ca38552ae3fee4e5c61138aeacad9
User & Date: stephan 2021-01-30 04:01:18
Context
2021-01-31
00:31
Enhancements to CGI query parameter processing in an attempt to deal with the issue described at forum post 049e8650ed. At the same time, convert some mprintf() calls into fossil_strdup() for efficiency. ... (check-in: 140cb312 user: drh tags: trunk)
2021-01-30
04:01
Added checkbox to reset mainmenu to its default value, per discussion at forumpost/5ab3ce6c45. ... (check-in: 8af3d425 user: stephan tags: trunk)
01:39
Typo fix reported in the forum. ... (check-in: f8c42aba user: stephan tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/setup.c.

1039
1040
1041
1042
1043
1044
1045




1046
1047
1048




1049
1050
1051
1052
1053
1054
1055
  @ </ol>
  @
  @ <p>Some custom skins might not use this property.  Whether the property
  @ is used or a choice made by the skin designer.  Some skins add an extra
  @ choices (such as the hamburger button) to the menu that are not shown
  @ on this list. (Property: mainmenu)
  @ <p>




  textarea_attribute("Main Menu", 12, 80, 
      "mainmenu", "mmenu", style_default_mainmenu(), 0);
  @




  @ <hr>
  @ <p>Extra links to appear on the <a href="%R/sitemap">/sitemap</a> page,
  @ as sub-items of the "Home Page" entry, appearing before the
  @ "Documentation Search" entry (if any).  In skins that use the /sitemap
  @ page to construct a hamburger menu dropdown, new entries added here
  @ will appear on the hamburger menu.
  @







>
>
>
>


<
>
>
>
>







1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051

1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
  @ </ol>
  @
  @ <p>Some custom skins might not use this property.  Whether the property
  @ is used or a choice made by the skin designer.  Some skins add an extra
  @ choices (such as the hamburger button) to the menu that are not shown
  @ on this list. (Property: mainmenu)
  @ <p>
  if(P("resetMenu")!=0){
    db_unset("mainmenu", 0);
    cgi_delete_parameter("mmenu");
  }
  textarea_attribute("Main Menu", 12, 80, 
      "mainmenu", "mmenu", style_default_mainmenu(), 0);

  @ </p>
  @ <p><input type='checkbox' id='cbResetMenu' name='resetMenu' value='1'>
  @ <label for='cbResetMenu'>Reset menu to default value</label>
  @ </p>
  @ <hr>
  @ <p>Extra links to appear on the <a href="%R/sitemap">/sitemap</a> page,
  @ as sub-items of the "Home Page" entry, appearing before the
  @ "Documentation Search" entry (if any).  In skins that use the /sitemap
  @ page to construct a hamburger menu dropdown, new entries added here
  @ will appear on the hamburger menu.
  @