Re: including content
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Organization | Bitflux GmbH |
| Message-ID | <[email protected]> |
On 23.11.2005 15:49 Uhr, Adrian Nussbaum wrote:
> Hi all
>
> I want to include some newsticker-/teaser-like-boxes (<div>- containers)
> in the right column of my flux-cms-site (which stay for a few days the
> same). The content of those boxes should be editable via the actual
> admin-interface. How could I solve this problem?
>
> I thought of including a "normal" xhtml-ressource (maybe located in the
> root) which is not shown in the whole menu-structure in the master.xsl.
> Could this work? How could I do this?
Yep. And then you have different possibilities to include this. One way
is to use xinclude, which works like a php include:
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../teaser.xml#xmlns(xhtml=http://www.w3.org/1999/xhtml)xpointer(/xhtml:html/xhtml:body/xhtml:div)"
parse="xml"/>
or document() in the xslt
<xsl:copy-of
select="document('../teaser.xml')/xhtml:html/xhtml:body/xhtml:div"/>
Or, if you need something more dynamic, with portlets, from the blog.xsl:
<xsl:for-each
select="document('portlet://blog/rss.xml')/bx/plugin/xhtml:html/xhtml:body/xhtml:div[@class='entry'
and position() < 6]">
chregu
>
>
> adrian
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> xpure - communication. digital and printed - www.xpure.ch
> adrian nussbaum | neumattstrasse 107 | ch-3422 ruedtligen
> mobile: + 41 764 283 913 | private: + 41 344 456 061
> [email protected] | http://www.xpure.ch | http://blogomanie.xpure.ch
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] | GPG 0x5CE1DECB
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms