Re: Blog
Yes but not only folder hehe
You are not logged in. Please login or register.
Yes but not only folder hehe
Yes but not only folder hehe
Tried to search for hardcoded definitions and replace them with partial luck
Can you point me to the right things I should change in plugin files?
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
Worked like a charm, thanks nakome
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?
try this tympanus.net/jPaginate/
try this tympanus.net/jPaginate/
Ehh, nope, does not work.
Maybe I'm doing something wrong... I will try to continue
Weird thoughts, but how can I show random posts block?
Get Tags & Keywords how to use?
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
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?
// Get last 5 posts <?php echo Blog::getPosts(5); ?> // Get all posts <?php echo Blog::getPosts(); ?>
See the comments of plugin blog.plugin.php
// 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..
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 } ?>
@nakome thank you sir! I’ve sorted my issue thanks nakome!
Hei awilum can you make the url not only "blog" but also another? And it can make changes for the features of monstra 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';
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?
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.
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
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'.
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!
My first Post
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?
Hi, I wonder how to show the tag just like the screenshot... Where can I add the post category? My template code:
<?php Chunk::get('header'); ?> <div class="content"> <?php Action::run('theme_pre_content'); ?> <div class="post-outer"> <h2 class="date-header"><?php echo Date::format(Page::date(), 'Y'); ?></h2> <article class="post"> <h3 class="post-title"> <?php echo Blog::getPostTitle(); ?> </h3> <div class="post-body"> <?php echo Site::content(); ?> </div> <footer class="post-footer"> <?php echo Blog::getTags(); ?> </footer> </article> </div> <?php Action::run('theme_post_content'); ?> </div> <?php Chunk::get('footer'); ?>
And also, the Date::format() is not working for Page::date()
LOL I got it!
Page::date('d-m-Y');
Final code:
// public/themes/default/blog-posts.template.php <h2 class='date-header'> <?php $str = explode('-', Page::date('l-m')); switch ($str[0]) { case "Sunday": $str[0] = "Minggu"; break; case "Monday": $str[0] = "Senin"; break; case "Tuesday": $str[0] = "Selasa"; break; case "Wednesday": $str[0] = "Rabu"; break; case "Thursday": $str[0] = "Kamis"; break; case "Friday": $str[0] = "Jumat"; break; case "Saturday": $str[0] = "Sabtu"; break; } switch ($str[1]) { case "01": $str[1] = "Januari"; break; case "02": $str[1] = "Februari"; break; case "03": $str[1] = "Maret"; break; case "04": $str[1] = "April"; break; case "05": $str[1] = "Mei"; break; case "06": $str[1] = "Juni"; break; case "07": $str[1] = "Juli"; break; case "08": $str[1] = "Agustus"; break; case "09": $str[1] = "September"; break; case "10": $str[1] = "Oktober"; break; case "11": $str[1] = "November"; break; case "12": $str[1] = "Desember"; break; } echo $str[0] . ', ' . Page::date('d') . ' ' . $str[1] . ' ' . Page::date('Y'); ?> </h2>
The last problem is about how to show the tags...
Edit: Nevermind. It solved.
hello guys great plugin however i want to know if i can limit the contenct (characters) echoed in the main blog page because currently it shows the whole post, i want it only to show lets say 2 lines only as a description and to be able to see the rest only if you open the post. Do you have any suggestions ?