|
|
Portlets are little snippets, which can be included in an xslt... They are basically usual requests on the bx "filesystem" with .configxml et al., without transformation (currently). It just returns the XML. For example, you can have the following in a XSLT: <xsl:for-each select="document('portlet://portlets/news.html')/bx/plugin[@name='structure2xml']/projekte/projekte"> <h1><xsl:value-of select="titel"/></h1> <xsl:value-of select="text"/> <a href="{$webrootLang}{cat}/projects/{uri}.html">[...]</a> </xsl:for-each> Currently, you also have to add to your conf/config.inc.php bx_global::registerStream('portlet');
This is quite useful, if you have the same boxes with dynamic content over and over again on a page. For static content, We'd advise to use the Language Snippets system. |
Add Comment