Topic: Blog images
Hi,
Is there any way to show blog posts in blog section as images, and when i click on it, I will be redirected to whole post?
I am not able to do it using my own template...
Thanks
You are not logged in. Please login or register.
Hi,
Is there any way to show blog posts in blog section as images, and when i click on it, I will be redirected to whole post?
I am not able to do it using my own template...
Thanks
Yes, if you edit your blog template file and add this tag on your links, dont forget also to starting your blog with a image you uploaded.
<a href="<?php echo Option::get('siteurl'); ?>/<?php echo Blog::$parent_page_name; ?>/<?php echo $post['slug'] ?>">YOUR LINK</a>
If you check your Blog Plugin you will find a example
<p>My blog post starts here and i can place here a image</p>{cut}<p>After the image and the {cut} tag i place my text</p>
You might want to read this post too: > http://forum.monstra.org/topic/746/bs-3 … l-snippet/
Hi, thanks but it does not work for me, $post['slug'] return empty...
@raipergm34
Check this link for documentation and blog tags it might help you: http://monstra.org/documentation
Can I change function Blog::getPosts()? I found anythink in your post, but when i change block.view.php no change
@raipergm34
You should not change the plugin itself you have to make your changes on the template, so you have to go at: blog.template.php for example.
I solved it editing index view in plugin file... slug does not work in templates for me...
Yes,
Please understand that Monstra when you use plugins, you need to edit the index.view CORE files!
Any theme changes should be made on the css and theme files, but design only, functions are made in plugin folder!