Re: Static pages, Blogs

Christian Stocker <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>
Hi

That's all possible, I'm just a little bit busy right now to answer the
questions in detail. Some pointers nevertheless and jist ask again, if
something's not clear.

On 14.9.2005 11:09 Uhr, [email protected] wrote:
> Hi
> 
> I have a couple of questions, all somehow related.
> 
> 1) Is it possible to "mix" static and dynamic content (e.g. blog news)?
> 
> I would like to make this for a front page (Welcome text + Latest news)...
> or, for example, to have a short introduction about an author or blog topic
> and then loading the latest news from that author / in that topic

You already get the latest news on the right side, you can do that
similarly for the whole content. see

   <xsl:for-each
select="document('portlet://blog/rss.xml')/bx/plugin/xhtml:html/xhtml:body/xhtml:div[@class='entry'
and position() &lt; 6]">
                <li>
                    <a
href="{xhtml:div[@class='post_links']/xhtml:span[@class='post_uri']/xhtml:a/@href}">
                        <xsl:value-of select="xhtml:h2"/>
                    </a>

                </li>
            </xsl:for-each>

from master.xsl and adjust it accordingly.

Feed per author is not possible yet, one has to code that into the blog
plugin.


.
> 
> I guess I could load what I want direct from the database (like the
> getLatestComments function in the Blog-Plugin), but I dont really know how
> to display the data / show it "inside" a "static" page.
> 
> 2) Where can I find a working examle of Fluxcms processing php code in a
> document?

the best thing is to use the call-php-functions-from-xsl way. For example

    <xsl:param name="themeCss"
select="php:functionString('bx_helpers_config::getOption','themeCss')"/>

you can call any php function this way (not in freeflux, but in your own
installation)


> 3) How can I load only a part (e.g. 10 words, 300 characters...etc) of a
> blog entry? When you have a lot entries or very long texts, it doesnt make
> sense to show the whole entries. It may be useful to have somekind of
> delimiter (<!--break-->) to achieve a flexible solution.

With the 2 methods from above :) getting the content from the rss.xml
and then truncating it with a php function within xsl

hope that helps for a start

chregu

> 
> 
> I hope all the questions make sense. Any help is really appreciated!
> 
> Thanks in advance,
> 
> 
>                            Javier.
> 

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.