1 (edited by Aryandhani 2013-05-02 14:42:18)

Topic: Blog Post Navigation

Blog Post Navigation for Monstra CMS.

Sorry to my english big_smile


<?php echo Blogpost::display(); ?>

and add to your


After you put the code, its look little bit messy. then you have to put this HTML code in blog-post.template.php :

<div class="page-nav">
        <?php echo Blogpost::display(); ?>

And put this css code in default.css or style.css on your theme. So that it looks to be in the middle of posts on your blog.

/* Blog Post Navigation */
.page-nav {
    clear: both;
    width: 100%;
    display: inline-block;
    text-align: center;
    margin: 20px 0;
    zoom: 1;
    /* IE 7 Hack starts here*/
     *display: inline;
.page-nav ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
.page-nav li {
    position: relative;
    display: inline-block;
    text-align: center;
    margin-right: 25px;
    zoom: 1;
    /* IE 7 Hack starts here*/
     *display: inline;
.page-nav li:last-child {
    margin-right: 0;
.page-nav a {
    display: block;



Download: blogpost.zip

I'm not like them but I can pretend.


Re: Blog Post Navigation

This the best navigation for monstra, i have used this as my blog navigation. big_smile Thank you...

Jefry_D's Website


Re: Blog Post Navigation

My blogpost gave error, it does not show the slash (/), ex: monstra-3.0.0/blog e sim monstra-3.0.0blog  and the page error occurs. Can anyone help me?

[Img teste bbcode = PunBB] https://www.dropbox.com/s/6r87oocl2vwwp … o.png?dl=0 [/ img]


Re: Blog Post Navigation

Message: Undefined variable: listId in blogpost.plugin.php (line 42)


  38         public static function getListId($id) {
  39             $posts = Pages::$pages->select('[parent="'.Blog::$parent_page_name.'" and status="published"]', 'all');
  41             foreach ($posts as $key => $post) {
  42                 $listId[$key] .= $post['id'];
  43             }

5 (edited by lazaroconnect 2014-09-06 22:28:23)

Re: Blog Post Navigation

Blog Post Navigation goes on with bug (monstra 3.0.1) - Contact (twitter - @lazaroconnect)

https://www.dropbox.com/s/6r87oocl2vwwp … o.png?dl=0

6 (edited by yug62 2014-09-09 08:45:29)

Re: Blog Post Navigation

In blogpost.plugin.php in 29 string

public static $parent_page_name = 'blog';

replace on

public static $parent_page_name = '/blog';


Re: Blog Post Navigation

yug62 thank you, you helped me a lot, grateful!!!

yug62 obrigado, você me ajudou muito, grato!!!


Re: Blog Post Navigation

Amazing Plugin. Beautiful. Thanks a lot.


Re: Blog Post Navigation

really great plugin..:)