Blog Adaptions

This article shall give you some Tipps&Tricks to easy adapt the FluxCMS Blog to client wishes.

hide a categorie in the blog menu

go to /themes/your_template/blog.xsl

  • there it reads as follows:
        <!-- 
        
        if you want to change some of the blog xsl-templates, look at
        themes/standard/plugins/blog.xsl, copy those you want to change into this file
        and change them.
        
        This will overwrite the standard templates.
        
        We do not advise to change stuff in themes/standard/, but to overwrite/extend them 
        here, as this will make future upgrades much easier. 
        
        -->
    

    that's exactly what we want to do, to hide a categorie in the blog menu. we have to overwrite the template <xsl:template match="items/collection| plugin/collection">. there we simply add an condition at the end of the variable tag like it's done in the example below (and title!='Stellenangebote' or and title!='All'):

filter the root categorie

All blog-posts are automatically added to the root-category (also when you untick the case in edit-modus). If you want to hide a categorie in the blog menu you normally also want to hide the blog-posts of this categorie in the root-category.

To hide your categorie you go again in /themes/your_template/blog.xsl. There you add/change the template <xsl:template name="blogOverview">. Simply add a condition at the end of the if-test ([@id != 'cat233']). to know your categorie number go in the edit-modus of your blog categories. by getting over a categorie with your mouse you see the link in your browser footer.

link /blog to a categorie

When I want to link the /blog with my categorie "Foo" i have to change the blog properties. Under bx::redirect add Foo/index.html.

show a blog categorie outside of the blog

  • make a new collection
  • change your variables <variable name="blogid" value="1"/> and <variable name="blogxsl" value="blog-jobs.xsl"/> in the .configxml
  • make your new xsl (blog-jobs.xsl)
  • adapt your filter for the root categorie (see above) in for example:

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.