Class BlogXSLTHelper

java.lang.Object
org.ametys.plugins.blog.BlogXSLTHelper
All Implemented Interfaces:
Serviceable

public class BlogXSLTHelper extends Object implements Serviceable
Helper component to be used from XSL stylesheets.
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager smanager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • blogRootPath

      public static String blogRootPath(String siteName, String lang)
      Get the path in sitemap of the blog root page
      Parameters:
      siteName - The site name
      lang - The sitemap map
      Returns:
      The path in sitemap or null if there is no root blog page
    • blogTagPage

      public static String blogTagPage(String siteName, String lang, String tagName)
      Get the id of the page holding the given tag
      Parameters:
      siteName - The site name
      lang - The sitemap map
      tagName - The tag's name
      Returns:
      the id of the page or null if not found