Re: Blog

Yes but not only folder hehe

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

nakome wrote:

Yes but not only folder hehe

Tried to search for hardcoded definitions and replace them with partial luck smile
Can you point me to the right things I should change in plugin files?

53 (edited by nakome 2013-03-24 18:55:52)

Re: Blog

View this  dropbox.com/s/obevd694hcgp7p5/articles.zip  ( I can´t put urls sorry)
i remplace blog for article and {cut} for more.

I hope Awilum  not  angry

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

54 2013-03-25 04:53:23 (edited by glebcha 2013-03-25 08:42:03)

Re: Blog

Worked like a charm, thanks nakome wink

55 2013-03-25 11:53:09

Re: Blog

wink

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

What about pagination for tag and title for it?
I tried this pagination http://cssdeck.com/labs/css-pagination-styles , but does not work...

Tell someone about how pagination bring to mind?

57 2013-03-25 18:24:36

Re: Blog

try this tympanus.net/jPaginate/

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

nakome wrote:

try this tympanus.net/jPaginate/

Ehh, nope, does not work.
Maybe I'm doing something wrong... I will try to continue

59 2013-04-10 06:58:20

Re: Blog

Weird thoughts, but how can I show random posts block?

60 2013-04-22 01:33:47

Re: Blog

Get Tags & Keywords how to use?

Re: Blog

mylife wrote:

Get Tags & Keywords how to use?

<?php echo Blog::getTags(); ?>

To get tags (keywords) only for  blog

<?php echo Page::keywords(); ?>

To get keywords  in page

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

hi all.. got small problem with this plugin..

I cannot get all posts on main blog page..how to do it? does anyone have snippet for that which i could use?

{code is poetry}

63 (edited by nakome 2013-05-27 18:23:19)

Re: Blog

// Get last 5 posts
<?php echo Blog::getPosts(5); ?>
// Get all posts
<?php echo Blog::getPosts(); ?>

See the comments of plugin  blog.plugin.php

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

nakome wrote:
// Get last 5 posts
<?php echo Blog::getPosts(5); ?>
// Get all posts
<?php echo Blog::getPosts(); ?>

See the comments of plugin  blog.plugin.php

hi, this give me whole posts up.. I am looking for to do in same way as monstra blog is done here : http://monstra.org/blog that is the best looking blog ever.. I think tags wont work too somehow.. everytime I click on tag it just refresh page..

{code is poetry}

65 2013-05-27 21:54:45

Re: Blog

This is the whole code blog/view/frontend/index.view.php

<?php foreach($posts as $post) { ?>
<div class="row-fluid">
    <div class="span6">
        <h3><a href="<?php echo Option::get('siteurl'); ?><?php echo Blog::$parent_page_name; ?>/<?php echo $post['slug'] ?>"><?php echo $post['title']; ?></a></h3>
        <div class="entry-meta monstra-blog-date"><?php echo Date::format($post['date'], 'd M Y'); ?></div>
    </div>
    <div class="span6">
        <div class="entry-content">
            <?php echo $post['content'] ?>
        </div> <!--/.entry-content -->
    </div>
</div>
<div class="clearfix"></div>
<?php } ?>

If you like show only tilte and date

<?php foreach($posts as $post) { ?>
    <h3><a href="<?php echo Option::get('siteurl'); ?><?php echo Blog::$parent_page_name; ?>/<?php echo $post['slug'] ?>"><?php echo $post['title']; ?></a></h3>
    <div class="entry-meta monstra-blog-date"><?php echo Date::format($post['date'], 'd M Y'); ?></div>
<?php } ?>
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

66 2013-05-28 07:32:49 (edited by unborn 2013-05-30 10:33:50)

Re: Blog

@nakome thank you sir!  I’ve sorted my issue smile thanks nakome!

{code is poetry}

67 2013-06-03 05:14:31

Re: Blog

Hei awilum can you make the url not only "blog" but also another? And it can make changes for the features of monstra blog. big_smile

Jefry_D's Website

68 2013-06-04 19:47:05

Re: Blog

>>Hei awilum can you make the url not only "blog" but also another?

        /**
         * Parrent page name(slug)
         *
         * @var string
         */
        public static $parent_page_name = 'blog';

Re: Blog

Not that I mean, I intend to make the same display made by this plugin but with the url to another and not change the url / blog. So I can make a parent post with another url. Can you update this plugin Awilum?

Jefry_D's Website

70 2013-06-05 05:57:05 (edited by Jefry_D 2013-06-05 09:30:37)

Re: Blog

Like a category Awilum, but this is a post:

/category/the-name-of-post

the URL /category is not autogenerate but this is the parrent post, and /the-name-of-post is the child, can you update the plugin. big_smile

Hei there was an error while i put rss.php on the site root, this is the error:

Warning: require_once(/public_html/monstra/bootstrap.php): failed to open stream: No such file or directory in /public_html/rss.php on line 8 Fatal error: require_once(): Failed opening required '/public_html/monstra/bootstrap.php' (include_path='.:/usr/lib/php') in /public_html/rss.php on line 8

Jefry_D's Website

71 (edited by AdrianLube 2013-06-23 23:19:44)

Re: Blog

Awilum,
wanted to use

<?php echo Page::url(); ?>

template in my "blog-post" but it does not use the relative (which is /blog) ie if I want example: 'www.mysite.com/blog/post' would be 'www.mysite.com/post'. hmm
Help me find a way to display the link in the page, in my case I want to add a url sharing, but without relative (/blog) you will not be taken to where I want. Thank you!

Re: Blog

My first Post smile

I have some little problems with the rss.php

1. Wrong/Old Init?!?

// Load bootstrap file
require_once(ROOT . DS . 'monstra' . DS . 'bootstrap.php');

bootstrap.php does not exist, is this the right way?

// Load Engine-INIT file
require_once(ROOT . DS . 'engine' . DS . '_init.php');

2. For pictures i use {siteurl} etc. How can i get this work in RSS?

3. In RSS is allways the {cut}-Tag visible, How can i hide this?