Re: Searching whole site (amongst other things)
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
On 24.7.2005 8:56 Uhr, Mark Jarecki wrote:
> Just finished installing BXCMS and would like to know how to do the
> following:
>
> - Include Live search on all pages (including Gallery/Contact/User added
> folders).
You want to include the "LiveSearch for the blog" on all pages, or you
want to "LiveSearch all pages"? The first is possible. the second is
only planned for 1.4 (with no release date yet :) )
> - In fact, I would like to be able to replicate the sidebar on the BLOG
> on all pages.
The right sidebar is defined in blog.xsl in
<xsl:template name="contentRight">
...
</xsl:template>
Copy that to master.xsl (and delete the one already there) and it should
be on every page.
You have also to copy the "sub-templates" from blog.xsl. Meaning
everything which is called with eg.
<xsl:call-template name="bloglinks"/>
Then look for:
<xsl:template name="bloglinks">
and copy that to master.xsl
You can delete then that from blog.xsl, as master.xsl is included from
blog.xsl
> - Include selected static pages and titles of images in the Live Search.
> (Currently I get "Nothing Found (neither in title nor fulltext).
As I said, currently only planned for 1.4.
> - Show only excerpts (Say first 50 words followed by a 'Read More' link
> to the full entry) in the BLOG.
I started once with the "Summary/Excerpt" option for the blog plugin,
but didn't finish it. If you want it now and always only the first say
200 characters, you could do it in XSLT and bx_helpers_string::truncate()
You would have to make a difference between singlePost and not in
<xsl:template match="xhtml:div[@class='comment' or
@class='comments_not']" mode="xhtml">
<div class="post_content">
<xsl:apply-templates mode="xhtml"/>
</div>
</xsl:template>
and do the truncate their. (See <xsl:template
match="xhtml:h2[@class='post_title']" mode="xhtml"> for how to choose
between singlePost and not).
> - Remove del.icio.us and Supported By links from the sidebar on the BLOG
> (Been trying but get many errors).
Adrian should have answered that.
> - Include a link list to the latest static pages and have it appear on
> the sidebar of all pages (much in the same way "Latest Blog Posts" is
> found on most pages).
Not possible yet. We don't track, when a static page is last edited.
This will be added with the MetaSearch stuff, which should be finished
in 1.4
HTH
chregu
> Incidentally, I've successfully added a collection with a static page
> but would like to have it included in searches and would also like to
> have the Live Search on that same static page.
>
> Sorry about these novice questions (first experience with
> XSLT/XML/BXCMS), it is just that I can't seem to find much in the way of
> help in the Documentation or Wiki and thought it might be quicker if I
> just asked someone. I will continue to plod along nonetheless.
>
> If anyone can show me where to get started on these it would be much
> appreciated.
>
> Thanks
>
> Mark
>
--
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] | gnupg-keyid 0x5CE1DECB
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms