Groovy Documentation

taglib
Class PageLinkTagLib

java.lang.Object
  taglib.PageLinkTagLib

class PageLinkTagLib

Tags to make links including CoW wiki paths.


Property Summary
static String contextPath

Short cut for the context path.

def cowLogo

An image link for the logo.

def cowTitle

A title, using the configured application name and optional page name.

def layoutLink

Link to the guest layout if present, else to the CoW main layout.

static String logoPath

Short cut for the logo path.

static String longName

Short cut for the app name.

def pageLink

Page links.

def pageLinkRemote

Page links that do an Ajax call.

def pageURI

Page URIs.

def pageURIBase

Page URIs not including the application context path.

static String shortName

Short cut for the app name.

 
Constructor Summary
PageLinkTagLib()

 
Method Summary
String createPageURI(def logger = Logger.getLogger("grails.app.taglib.${this.class.simpleName}", def attrs)

pageURI tag exposed as a method so we can call it from a service.

String createPageURIBase(def attrs)

This tag exposed as a method so we can call it from a service.

static String getContextPath(def logger)

Get the context path (for example "/cow" in development, or "" in production).

 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

contextPath

static String contextPath
Short cut for the context path.


cowLogo

def cowLogo
An image link for the logo.


cowTitle

def cowTitle
A title, using the configured application name and optional page name.


layoutLink

def layoutLink
Link to the guest layout if present, else to the CoW main layout.


logoPath

static String logoPath
Short cut for the logo path.


longName

static String longName
Short cut for the app name.


pageLink

def pageLink
Page links. (A span of class "pageLink" is also output.)


pageLinkRemote

def pageLinkRemote
Page links that do an Ajax call.


pageURI

def pageURI
Page URIs. Creates the URI part of a link, e.g. /cow/g8/page/show/1/index.html.


pageURIBase

def pageURIBase
Page URIs not including the application context path. E.g. /g8/page/show/1/index.html.


shortName

static String shortName
Short cut for the app name.


 
Constructor Detail

PageLinkTagLib

PageLinkTagLib()


 
Method Detail

createPageURI

public String createPageURI(def logger = Logger.getLogger("grails.app.taglib.${this.class.simpleName}", def attrs)
pageURI tag exposed as a method so we can call it from a service.


createPageURIBase

public String createPageURIBase(def attrs)
This tag exposed as a method so we can call it from a service.


getContextPath

public static String getContextPath(def logger)
Get the context path (for example "/cow" in development, or "" in production).


 

Groovy Documentation