%-- ## menu-editlist.jsp Revize multi-level menu manager Parameters are passed on url as jsp arguments. All parameters are optional. Parameters: onoff- on or off; if specified, sets publishing to specified value (no changes made to publishing status if not supplied) linkmodule- name of link module containing menu (default is links) sectionid- sectionid of menu to operate on sectionname- sectionname to retrieve ??? sectionsfilter- filter used to read sections module; if not specified, sections module is not processed pageid- link manager recordid of currently selected page (default is none) linksfilter- filter used to select links record (default uses sectionid argument) displaylevel- number of menu levels always displayed (default is 1) toplevel- lowest level menu item displayed (default is 0) bottomlevel- highest level menu item displayed (default is 99) (custom portal code if sectionsfilter supplied - see code) sortfield- indicates field to use for sorting (default is linkseq) folder- folder for new pages or one of the following methods of determining: *none* or / Does not use (folder can be specified in link manager) *prompt* prompts for foldername when new level created before default Determines from sections module or parent link item prompts if folder can not be determined for new page TODO: Ideally prompt should be in link manager only if template link filelocation- folder appended to page folder for uploaded documents (default uploads) (TODO: currently always set to "uploads") linknewsection- list of templates that can create new sections (rz:link attribute) *prompt* prompts if link will create a new section BEFORE calling the link manager list of templates that permit a new section (preceed template name with * if new section is assumed) newpagebutton- specifies when new page button should appear as follows: before only appears before items at same level (default) after only appears after items at same level both appears before and after same level items number if positive only appears at bottom if the number of items is equal or greater than number Note: The new subpage (which STARTS a new level) will always appear only once after the item under which the sub pages will be created. TODO: get code from rochester hills; upgrade and merge nexturl- follow on edit form passed to link manager templates- if specified, list of available templates (default is all) showsectionids- if true, display linksectionid & linktosectionid (default false) showrecordid- if true, display recordid (default false) showparentid- if true, display linkparentid(default false) showparentkey- if true, display linkparent (default false) showpagekey- if true, display page permissions pagekey (default false) showsortkey- if true, display linksortkey calculated by rz.menusort (default false) showlevel- if true, display linklevel (default false) showstyle- if true, display linkstyle calculated by rz.menusort (default false) showhidden- if true, display hidden links as calculated by rz.menusort (default false) showorphan- if true, display orphan links as calculated by rz.menusort (default false) showbuttons- if true, display new, edit and delete button (default true) showdebug- if true, display debugging information (default false) showconsole- if true, display detailed debugging information (default false) repair- if true, sets RZ.repair to true for link manager (default false) auto- if true, automatically edit next menu item (default false) used to update link manager and page permission databases NOTES: RZ.set value from edit this list button is passed to link manager on new and edit buttons. *********************************************************************** TODO: review lines containing "custom portal code" for non-portal usage *********************************************************************** --%> <%-- #BeginRZ-PageHeader --%> <%@ page language="java" %> <%@ include file = "/util/setup_editlist_header.jsp" %> <%-- #EndRZ-PageHeader --%> <% //rz.pageoptions = "cache"; %>
<%@ page import="revize.data.*,revize.publish.*,revize.store.*" %> <%-- --%>
" + linkmodule + " module does not exist " + "(default is links) use \"linkmodule\" parameter on url to specify different module"; else { // Validate required fields String fieldMsg = ""; if (!rz.isvalidfield(linkmodule,"linkdisplay")) fieldMsg += ", " + "linkdisplay"; if (!rz.isvalidfield(linkmodule,"linkparent")) fieldMsg += ", " + "linkparent"; if (!rz.isvalidfield(linkmodule,"linkparentid")) fieldMsg += ", " + "linkparentid"; if (!rz.isvalidfield(linkmodule,"linklevel")) fieldMsg += ", " + "linklevel"; if (!rz.isvalidfield(linkmodule,"linkstyle")) fieldMsg += ", " + "linkstyle"; if (!rz.isvalidfield(linkmodule,"linksortkey")) fieldMsg += ", " + "linksortkey"; if (fieldMsg.length() > 0) errorMsg += " " + linkmodule + " module does not contain the following required field(s): " + fieldMsg.substring(2); if (rz.isvalidfield(linkmodule,"linksectionid")) sectionidfield = "linksectionid"; else if (rz.isvalidfield(linkmodule,"sectionid")) //backward compatiblity sectionidfield = "sectionid"; if (sectionid.length() > 0 || sectionsfilter.length() > 0) { if (sectionidfield.equals("")) errorMsg += " sectionid url parameter specified but " + linkmodule + " module does not contain linksectionid field"; } if (errorMsg.length() == 0 && !isPublishing) errorMsg = "Publishing is Disabled"; } // display message if (errorMsg.length() > 0) { %>
<% if (showdebug) { %> |
<%= rz.tracestack %> <%= debugMsg %>