Package org.ametys.plugins.blog
Class BlogXSLTHelper
java.lang.Object
org.ametys.plugins.blog.BlogXSLTHelper
- All Implemented Interfaces:
Serviceable
Helper component to be used from XSL stylesheets.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
blogRootPath
(String siteName, String lang) Get the path in sitemap of the blog root pagestatic String
blogTagPage
(String siteName, String lang, String tagName) Get the id of the page holding the given tagvoid
service
(ServiceManager smanager)
-
Constructor Details
-
BlogXSLTHelper
public BlogXSLTHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
blogRootPath
Get the path in sitemap of the blog root page- Parameters:
siteName
- The site namelang
- The sitemap map- Returns:
- The path in sitemap or null if there is no root blog page
-
blogTagPage
Get the id of the page holding the given tag- Parameters:
siteName
- The site namelang
- The sitemap maptagName
- The tag's name- Returns:
- the id of the page or null if not found
-