%-- #BeginRZ-PageHeader --%>
<%@ page language="java"%>
<% String rzmodule = "links";%>
<%@ include file = "/util/setup_editform_header.jsp"%>
<%-- #EndRZ-PageHeader --%>
menu-editform.jsp: calls sections-editform.jsp
<%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW:
status=new
server=secure.interactive-innovations.net
projectName=Stillwater
label=
location=menu-editform.jsp
version=
docType=editpage
subType=form
moduleName=links
fieldName=
channels=|
description=
--%>
<%
String linktype = rz.fetch(rz.pagemodule,"linktype","raw,report");
String sectionid = rz.fetch(rz.pagemodule,"linksectionid","raw,report");
String tosectionid = rz.fetch(rz.pagemodule,"linktosectionid","report");
String sectionname = "";
String folder = "";
boolean isSectionHome = false;
//----- If not Home section and template or urltemplate, do section processing
if (!tosectionid.equals("0")
&& StringUtils.right(linktype,8).equals("template"))
{
//----- Update section properties if this is the link that created a new section
isSectionHome = (rz.pagelinkid.equals(tosectionid) && !sectionid.equals(tosectionid));
//----- Determine if primary section record
String options = "raw,report";
if (!rz.pagelinkid.equals(rz.recordid)) //if not primary section...
options += ",recordid=" + rz.pagelinkid; //...set options filter
//----- level and name from primary section record
sectionname = rz.fetch("links","linkdisplay",options);
//----- Folder of current link record
folder = rz.fetch("links","linkfilename",options);
int pos = folder.lastIndexOf("/");
if (pos == -1)
folder = "";
else
folder = folder.substring(0,pos);
//----- Determine folder and check for sections record
String filter = "sections.sectionid=" + sectionid;
rz.fetch("sections","folder","raw",filter);
if (!rz.nodata && rz.content.trim().length() > 0)
folder = rz.content;
}
//rz.tracestack = "this is a error message test";
%>
<%@ include file="/util/setup_editform_javascript.jsp" %>