All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.tld.mgnlutils.tld Maven / Gradle / Ivy


  Magnolia utility Tags and EL functions
  Magnolia utility Tags and EL functions
  1.0
  mu
  mgnlutils
  
    Test if exists a parent page with content in the collectionName given as parameter, if exist set the parent page as actpage
    firstPageWithCollection
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Boolean firstPageWithCollection(java.lang.String)
    
      
        ${mu:firstPageWithCollection("newcontent")}}
      ]]>
    
  
  
    Evaluete if primary node type of the associated Node of an object is a mgnl:contentNode
    isPage
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Boolean isPage(info.magnolia.cms.core.Content)
    
      
    
  
  
    Return the object passed or the first parent page that has content type = mgnl:content
    getPage
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    info.magnolia.cms.core.Content getPage(info.magnolia.cms.core.Content)
    
      
    
  
  
    Return a map key=value of all magnolia request attributes
    requestAttributeMap
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.util.Map getRequestAttributeMap()
    
      
    
  
  
    Count the nodes in a collection with a given content and the name of the collection
    countNodesInCollection
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Integer countNodesInCollection(info.magnolia.cms.core.Content, java.lang.String)
    
      
       ${mu:countNodesInCollection(actpage,"newcontent")}
      ]]>
    
  
  
    Count subpages with a given content
    countSubpages
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Integer countSubpages(info.magnolia.cms.core.Content)
    
      
    
  
  
    Return the collection of subpages of a given page
    subpages
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.util.Collection subpages(info.magnolia.cms.core.Content)
  
  
    Return the current user logged
    user
    info.magnolia.context.MgnlContext
    info.magnolia.cms.security.User getUser()
    
      
    
  
  
    Get the current context of this thread.
    ctx
    info.magnolia.context.MgnlContext
    info.magnolia.context.Context getInstance()
  
  
    Return the content of a given path and repository
    contentByPath
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    info.magnolia.cms.core.Content contentByPath(java.lang.String, java.lang.String)
    
      
    
  
  
    Return the message of a given message key
    message
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String message(java.lang.String)
  
  
    Test the system property 'magnolia.develop'
    develop
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Boolean develop()
  
  
    Return a cleaned url (external or internal with contextPath). Accept in input generic string, url, uuid.
    link
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String link(java.lang.String)
  
  
    Create an html complete link from a string composed by link \t link text. If the link is empty the function return only the text
    tolinkOrText
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String tolinkOrText(java.lang.String)
  
  
    encode handle for a JackRabbit search
    encodeISO9075
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String encodeISO9075(java.lang.String)
  
  
    Return true if the current user has a given role
    userInRole
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Boolean userInRole(java.lang.String)
  
  
    Retrieve validate label for input string
    getValidatedLabel
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String getValidatedLabel(java.lang.String)
  
  
    
      splits the first argument based on the third (regex) argument and checks if the second argument is present
      in the resulting array
    
    isStringInSeparatedList
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Boolean isStringInSeparatedList(java.lang.String, java.lang.String, java.lang.String)
    
  
  
    
      check if the second argument string equals one line of the first argument string, same as isStringInSeparatedList
      with third argument "\n"
    
    isLine
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Boolean isLine(java.lang.String, java.lang.String)
    
  
  
    Splits the given string on newlines and after on tab characters
    splitAndTokenize
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String[][] splitAndTokenize(java.lang.String)
  
  
    Extracts a map from a bi-dimensional array of strings, getting keys and values from the specified columns
    mapTokens
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.util.Map mapTokens(java.lang.String[][], int, int)
  
  
    
      Same as mapTokens, but the resulting map is multi-value, i.e. the same key can have more than one value.
      Rows having no key specified are considered entries of the last used key.
    
    multiMapTokens
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.util.Map multiMapTokens(java.lang.String[][], int, int)
  
  
    
     Returns the base URL for the request (scheme + server + port + context path, like http://server:81/context/)
    
    baseUrl
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String baseUrl()
  
  
    
     Returns the base URL for the request without the context path (scheme + server + port, like http://server:81/)
    
    baseUrlWithoutContextPath
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String baseUrlWithoutContextPath()
  
  
    
     Returns the full url to the given content (starting with http)
    
    pageFullUrl
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String pageFullUrl(info.magnolia.cms.core.Content)
  
  
    
     Convert a relative url to absolute, using the current base url. If the link is already absolute it will not be altered.
    
    toAbsoluteUrl
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String toAbsoluteUrl(java.lang.String)
  
  
    Returns the full url to the current page (starting with http)
    activePageFullUrl
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String activePageFullUrl()
  
  
    Returns a link from an uuid. Accepts in input uuid.
    repoUuidLink
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.String repoUuidLink(java.lang.String, java.lang.String)
  
  
    Convert a content list into a collection, also wrapping the content inside a I18NNodeMapWrapper
    convertToCollection
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.util.List convertToCollection(java.util.List)
  
  
    Check if the content parameter has a child with title equal the title parameter
    hasChildWithTitle
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.lang.Boolean hasChildWithTitle(info.magnolia.cms.core.Content, java.lang.String)
  
  
    Get child nodes of specified content type and its subtypes
    contentChildrenOfType
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.util.Collection contentChildrenOfType(info.magnolia.cms.core.Content, java.lang.String)
  
  
    Creates a list of Page objects that can be used to draw a pagination bar.
    Takes as parameters the total number of pages, the maximum number of pages to show and the name of the request parameter that will hold the current page number
    pageList
    it.openutils.mgnlutils.el.MgnlPagingElFunctions
    java.util.List pageList(int, int, java.lang.String)
    
    
    ]]>
  
  
    Builds a query string with the actual request parameters, optionally excluding a list of parameters. The list list of parameters to exclude in given as a single whitespace separated string. 
    The returned querystring doesn't contain the leading "?" and has all the parameters already urlencoded (but with ampersands not html escaped)
    buildQuerystringExcluding
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.util.String buildQuerystringExcluding(java.lang.String)
  
  
    Builds a query string with the actual request parameters, only including the given list of parameters. The list list of parameters to include in given as a single whitespace separated string. 
    The returned querystring doesn't contain the leading "?" and has all the parameters already urlencoded (but with ampersands not html escaped)
    buildQuerystringIncluding
    it.openutils.mgnlutils.el.MgnlUtilsElFunctions
    java.util.String buildQuerystringIncluding(java.lang.String)
  




© 2015 - 2025 Weber Informatics LLC | Privacy Policy