Re: Blog
Full blog documentation and installation
So far So good
You are not logged in. Please login or register.
Full blog documentation and installation
Nice
Hello guys.
Who can tell me how to display the date as - today, yesterday, tomorrow?
Thanks for answers.
Its easy see This
// Today // Yesterday // Tomorrow
nvm...
Can you help me with these issues:
1. tried to rename all stuff with names like Blog and blog to see something different in address bar like news instead of blog;
2. how can I show specified number of news with selected tag - i.e. 5 news with tag 'software' and 2 news with tag 'giveaway'.
Thanks in advance for your help
Try this
Remplace Blog::getPosts for this code:
Call this with
echo getCustom($tag,$num);
$tag = the tag name,
$num = number of posts.
Example:
Other solution:
blog?tag=software">Software // and show only 5 posts return Blog::getPosts(5); break; // if type giveaway return this // for link try this: // Giveaway // and show only 2 posts case 'giveaway': return Blog::getPosts(2); break; } }else{ // if not type nothing show all posts return Blog::getPosts(); } }; // Call actions echo getCustom('Themes'); echo getCustom('JQuery'); ?>
Note: if you copy and paste put only this.
nakome, sorry that didn't mention before - I need to show my news on main page (slug 'home'), but keep showing all posts for slug 'blog'.
Also tried your tricks and they seem to not work if I change echo Blog::getPosts in blog.template.php (maybe I've done it wrong way?).
Your help is highly appreciated!
Works but if you call from a link example
I´m sorry, i try other solution.
try this:
In blog.template remplace Blog::getPosts for this:
Now in main put this code on footer after load jquery.
Now in main index create a div with id mycustompost and jquery load the post here
Note: if you want load more tags, you must create other divs and load more tags like this:
You understand.
Preview
nakome, tried and blog entries are displaying only if I exclude ".content" from
.load('?tag=software .content');
. But all page content displayed, not only entries and that's why block styles gone mad.
As I understand you are looking for a class "content", but in output code I can see only a clean
Sorry i try in my demo page and not working, only working this
.container is a div of your blog content
Sorry i try in my demo page and not working, only working this
.container is a div of your blog content
You have
while for me it is only . Maybe I should correct blog post settings?Yes in blog.template.php add id or class like this
Missed it there while searching in plugin configs, shame on me)
Will improve your script to show defined number of elements:
nice
Pagination for tags is not working - pages after first will show all blog posts, but not for defined tag. And maybe there is a hint how not to display pages count if it is only one page.
Any solution appreciated
Pagination for tags is not working - pages after first will show all blog posts, but not for defined tag. And maybe there is a hint how not to display pages count if it is only one page.
Any solution appreciated
I talked about it for a long time on the Russian forum, and the problem is not solved yet.
And also title does not change in the tags.
Remplace pagination with this pagination until resolution the problem
Should I delete this from blog.plugin.php:
View::factory('blog/views/frontend/pager') ->assign('pages', $pages) ->assign('page', $page) ->render()
And delete pager.view.php?
And then use jquery plugin.
Hm, no one knows how to replace default laggy pagination with working having no issues?
In folder views pager.view.php
If you like other pagination clean the code of pager.
This is the code of my blog only show next and prev botton.
$pages) $right_neighbour = $pages; if ($page > 1) { echo ' '; } if ($page < $pages) { echo ' '; } ?>
Is it possible to install 2 instances of blog plugin? For example one is news and another is blog.
If remane plugin
@nakome You think ''if rename plugin''