page:editOnSightMenu

A very flexible way of adding a customized edit on sight menu to a component. Very userfriendly and the interfaces for these items are new with the new upcoming design.

Parameters

Name

Required

Default

Type

Description

id

false

 

String

The id of the attribute to save the menu under if you don’t  want to write the markup right away to the page.

html

false

 

String/Object

The HTML you want should represent the clickable item which then reveals the menu.

showInPublishedMode

false

 

boolean

Should the menu be shown in published mode as well (default false).

contentId

false

 

String/Object

States the id of the content the menu should concern when it comes to inline editing etc.

showEditMetaData

false

 

boolean

Should the menu show edit page meta data item.

showCreateSubpage

false

 

boolean

Should the menu show the create subpage item.

showEditInline

false

 

boolean

Should the menu show the edit inline item.

showEditContent

false

 

boolean

Should the menu show the edit content item.

showCategorizeContent

false

 

boolean

Should the menu show the categorize content item.

showPublishPage

false

 

boolean

Should the menu show the publish page item.

showNotifyUserOfPage

false

 

boolean

Should the menu show the user notification item.

showPageNotifications

false

 

boolean

Should the menu show the page notifications item.

showContentNotifications

false

 

boolean

Should the menu show the content notifications item.

showTranslateArticle

false

 

boolean

Should the menu show the translate article item.

showCreateNewsFromContent

false

 

boolean

Should the menu show the create new from content item.

showMySettings

false

 

boolean

Should the menu show the my settings item.

Examples

The following example shows a simple situation where we want to show a button below the article printout which shows a button for the menu.

<%@ taglib uri="infoglue-page" prefix="page" %>
<%@ taglib uri="infoglue-structure" prefix="structure" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
….
<h1><c:out value="${title}" escapeXml="false"/></h1>
<c:out value="${fullText}" escapeXml="false"/>
<c:if test="${pc.isInPageComponentMode}">
    <page:editOnSightMenu contentId="${articleContent.id}"/>
</c:if>



comments powered by Disqus