Topic: blog image
How can I get a image like this;
You are not logged in. Please login or register.
How can I get a image like this;
This is ease look this:
File library/Morfy.php line 78
private $page_headers = array( 'title' => 'Title', 'description' => 'Description', 'keywords' => 'Keywords', 'author' => 'Author', 'date' => 'Date', 'robots' => 'Robots', 'tags' => 'Tags', 'template' => 'Template', 'thumbnail' => 'Thumbnail' // this is a new object );
Md file like blog:
Title: Example title one Description: New Description Keywords: Keywords here Author: Author Date: January 11, 2014 Tags: Tags here Template: index Thumbnail: public/images/image.jpg -------- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste ut, aliquid modi consequatur vitae minima dolor quibusdam sit nisi eos temporibus exercitationem aperiam deleniti nesciunt dignissimos deserunt ducimus provident facilis.
Blog template
runAction('theme_content_before'); ?> getPages($url,$order_by,$order_type,$ignore,$limit); // $url is a folder of posts $url = CONTENT_PATH . '/blog/'; // $order_by is a order like date or title $order_by = 'date'; // $order_type is a order type like ASC or DESC $order_type = 'DESC'; // $ignore = array of files to ignore $ignore = array('404','index'); // $limit is a number of posts $limit = 2; $posts = Morfy::factory()->getPages($url,$order_by, $order_type,$ignore,$limit); foreach($posts as $post) { // use default image if not write Thumbnail $thumbnail = ($post['thumbnail']) ? $post['thumbnail'] : $config['Site_url'].'public/images/default.jpg'; echo ''.$post['title'].'
Posted on '.$post['date'].'
'.$post['content_short'].''; } ?> runAction('theme_content_after'); ?>
If you use in normal page use:
Example
Okay I found it
look here video https://www.dropbox.com/s/bl241u6ef1pxh … 3.mp4?dl=1
This is ease look this:
File library/Morfy.php line 78
private $page_headers = array( 'title' => 'Title', 'description' => 'Description', 'keywords' => 'Keywords', 'author' => 'Author', 'date' => 'Date', 'robots' => 'Robots', 'tags' => 'Tags', 'template' => 'Template', 'thumbnail' => 'Thumbnail' // this is a new object );Md file like blog:
Title: Example title one Description: New Description Keywords: Keywords here Author: Author Date: January 11, 2014 Tags: Tags here Template: index Thumbnail: public/images/image.jpg -------- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste ut, aliquid modi consequatur vitae minima dolor quibusdam sit nisi eos temporibus exercitationem aperiam deleniti nesciunt dignissimos deserunt ducimus provident facilis.Blog template
runAction('theme_content_before'); ?> getPages($url,$order_by,$order_type,$ignore,$limit); // $url is a folder of posts $url = CONTENT_PATH . '/blog/'; // $order_by is a order like date or title $order_by = 'date'; // $order_type is a order type like ASC or DESC $order_type = 'DESC'; // $ignore = array of files to ignore $ignore = array('404','index'); // $limit is a number of posts $limit = 2; $posts = Morfy::factory()->getPages($url,$order_by, $order_type,$ignore,$limit); foreach($posts as $post) { // use default image if not write Thumbnail $thumbnail = ($post['thumbnail']) ? $post['thumbnail'] : $config['Site_url'].'public/images/default.jpg'; echo ''.$post['title'].'
Posted on '.$post['date'].'
'.$post['content_short'].''; } ?> runAction('theme_content_after'); ?>If you use in normal page use:
Example
yes I did it
I learn quickly
Good
Doesn't work on Monstra 3.0.1, can you help please?
Doesn't work on Monstra 3.0.1, can you help please?
This code is only for morfy!
So why it is in the Monstra Questions?
I need blog pages with pictures, is it possible in Monstra or not?
So why it is in the Monstra Questions?
I need blog pages with pictures, is it possible in Monstra or not?
This is ease look this:
File library/Morfy.php line 78
private $page_headers = array( 'title' => 'Title', 'description' => 'Description', 'keywords' => 'Keywords', 'author' => 'Author', 'date' => 'Date', 'robots' => 'Robots', 'tags' => 'Tags', 'template' => 'Template', 'thumbnail' => 'Thumbnail' // this is a new object );Md file like blog:
Title: Example title one Description: New Description Keywords: Keywords here Author: Author Date: January 11, 2014 Tags: Tags here Template: index Thumbnail: public/images/image.jpg -------- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste ut, aliquid modi consequatur vitae minima dolor quibusdam sit nisi eos temporibus exercitationem aperiam deleniti nesciunt dignissimos deserunt ducimus provident facilis.Blog template
runAction('theme_content_before'); ?> getPages($url,$order_by,$order_type,$ignore,$limit); // $url is a folder of posts $url = CONTENT_PATH . '/blog/'; // $order_by is a order like date or title $order_by = 'date'; // $order_type is a order type like ASC or DESC $order_type = 'DESC'; // $ignore = array of files to ignore $ignore = array('404','index'); // $limit is a number of posts $limit = 2; $posts = Morfy::factory()->getPages($url,$order_by, $order_type,$ignore,$limit); foreach($posts as $post) { // use default image if not write Thumbnail $thumbnail = ($post['thumbnail']) ? $post['thumbnail'] : $config['Site_url'].'public/images/default.jpg'; echo ''.$post['title'].'
Posted on '.$post['date'].'
'.$post['content_short'].''; } ?> runAction('theme_content_after'); ?>If you use in normal page use:
Example
hi
how can I have this blog template
code
'; 07octProin gravida nibh vel velit auctor aliquet. Aenean sollicitudin, gravida nibh vel velit auctor aliquet proin gravida nibh vel velit auctor aliquet. Aenean sollicitudin, gravida nibh vel velit auctor aliquet...
how can I have this blog post template
code
Donec Venenatis Mattis
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget enim elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nibh sapien, adipiscing vitae tellus at, imperdiet convallis urna. Integer vel tempus massa. Sed lobortis mi eget aliquet vehicula. Morbi in posuere sem, blandit hendrerit lorem. Nulla nec nibh sed libero convallis convallis rhoncus ac velit. Nam dapibus diam sed scelerisque imperdiet. Curabitur vehicula eleifend sapien sit amet tincidunt. Donec sed aliquet lectus, quis pharetra velit. Aliquam aliquet interdum gravida. Duis tincidunt mi eu urna vestibulum, id rutrum metus elementum. Cras adipiscing, felis sed pulvinar semper, nunc lacus porta urna, nec porttitor magna tellus et metus. Fusce venenatis consectetur dui id sodales. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam vitae elit risus. Nulla vel est elit. Curabitur pellentesque vulputate blandit. Sed pharetra orci enim, eget pulvinar tellus scelerisque ac. Vestibulum feugiat dolor et hendrerit fermentum. Morbi ultrices nunc eget est fermentum, in viverra leo fermentum. Nam euismod eros et tempor iaculis. Nullam vitae diam ac nulla ullamcorper placerat. Fusce elementum imperdiet urna, a mattis nulla fringilla sit amet. Vivamus vehicula suscipit dolor.
H1 Tag Sample
Vestibulum purus est, dapibus vitae facilisis non, accumsan a ipsum. Quisque sollicitudin elementum iaculis. Curabitur ultricies nunc non augue elementum, eu pharetra lorem hendrerit. Nam ac mi placerat, porttitor lacus id, rutrum urna. Fusce nec feugiat nisi. Etiam nunc purus, cursus eu tincidunt ac, faucibus ac velit. Fusce venenatis tincidunt diam, quis euismod ipsum consectetur faucibus. Sed ac enim vel dui hendrerit dapibus. Nulla placerat nulla eu volutpat dapibus. Donec nisl sem, tempor venenatis tellus sit amet, faucibus interdum augue. Phasellus ultrices id neque nec bibendum. Quisque odio lorem, consectetur a metus id, venenatis malesuada sem. Mauris ut lorem sit amet magna mollis convallis dapibus ut nulla. Morbi euismod, dui nec dapibus auctor, nisl nisi bibendum ante, ac vehicula tellus risus a nibh. Donec porta adipiscing nunc, et pharetra leo mollis et.
H2 Tag Sample
Vestibulum purus est, dapibus vitae facilisis non, accumsan a ipsum. Quisque sollicitudin elementum iaculis. Curabitur ultricies nunc non augue elementum, eu pharetra lorem hendrerit. Nam ac mi placerat, porttitor lacus id, rutrum urna. Fusce nec feugiat nisi. Etiam nunc purus, cursus eu tincidunt ac, faucibus ac velit. Fusce venenatis tincidunt diam, quis euismod ipsum consectetur faucibus. Sed ac enim vel dui hendrerit dapibus. Nulla placerat nulla eu volutpat dapibus. Donec nisl sem, tempor venenatis tellus sit amet, faucibus interdum augue. Phasellus ultrices id neque nec bibendum. Quisque odio lorem, consectetur a metus id, venenatis malesuada sem. Mauris ut lorem sit amet magna mollis convallis dapibus ut nulla. Morbi euismod, dui nec dapibus auctor, nisl nisi bibendum ante, ac vehicula tellus risus a nibh. Donec porta adipiscing nunc, et pharetra leo mollis et.
H3 Tag Sample
Vestibulum purus est, dapibus vitae facilisis non, accumsan a ipsum. Quisque sollicitudin elementum iaculis. Curabitur ultricies nunc non augue elementum, eu pharetra lorem hendrerit. Nam ac mi placerat, porttitor lacus id, rutrum urna. Fusce nec feugiat nisi. Etiam nunc purus, cursus eu tincidunt ac, faucibus ac velit. Fusce venenatis tincidunt diam, quis euismod ipsum consectetur faucibus. Sed ac enim vel dui hendrerit dapibus. Nulla placerat nulla eu volutpat dapibus. Donec nisl sem, tempor venenatis tellus sit amet, faucibus interdum augue. Phasellus ultrices id neque nec bibendum. Quisque odio lorem, consectetur a metus id, venenatis malesuada sem. Mauris ut lorem sit amet magna mollis convallis dapibus ut nulla. Morbi euismod, dui nec dapibus auctor, nisl nisi bibendum ante, ac vehicula tellus risus a nibh. Donec porta adipiscing nunc, et pharetra leo mollis et.
H4 Tag Sample
Vestibulum purus est, dapibus vitae facilisis non, accumsan a ipsum. Quisque sollicitudin elementum iaculis. Curabitur ultricies nunc non augue elementum, eu pharetra lorem hendrerit. Nam ac mi placerat, porttitor lacus id, rutrum urna. Fusce nec feugiat nisi. Etiam nunc purus, cursus eu tincidunt ac, faucibus ac velit. Fusce venenatis tincidunt diam, quis euismod ipsum consectetur faucibus. Sed ac enim vel dui hendrerit dapibus. Nulla placerat nulla eu volutpat dapibus. Donec nisl sem, tempor venenatis tellus sit amet, faucibus interdum augue. Phasellus ultrices id neque nec bibendum. Quisque odio lorem, consectetur a metus id, venenatis malesuada sem. Mauris ut lorem sit amet magna mollis convallis dapibus ut nulla. Morbi euismod, dui nec dapibus auctor, nisl nisi bibendum ante, ac vehicula tellus risus a nibh. Donec porta adipiscing nunc, et pharetra leo mollis et.
Blockquote
Vestibulum purus est, dapibus vitae facilisis non, accumsan a ipsum. Quisque sollicitudin elementum iaculis. Curabitur ultricies nunc non augue elementum, eu pharetra lorem hendrerit. Nam ac mi placerat, porttitor lacus id, rutrum urna. Fusce nec feugiat nisi. Etiam nunc purus, cursus eu tincidunt ac, faucibus ac velit.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus. John Doe, CEOLeft Image
Vestibulum purus est, dapibus vitae facilisis non, accumsan a ipsum. Quisque sollicitudin elementum iaculis. Curabitur ultricies nunc non augue elementum, eu pharetra lorem hendrerit. Nam ac mi placerat, porttitor lacus id, rutrum urna. Fusce nec feugiat nisi. Etiam nunc purus, cursus eu tincidunt ac, faucibus ac velit.
Fusce rutrum ultrices augue, nec blandit sapien cursus et. Sed porttitor dui id mauris condimentum vestibulum. Praesent vitae ligula tristique ante malesuada bibendum et in nulla. Nunc ac facilisis diam. Sed non arcu sed nisl tempus eleifend sed eget arcu. Donec viverra adipiscing dignissim. Quisque elementum neque et lacus fringilla, vitae luctus felis tempor. Duis a auctor eros, congue sollicitudin lectus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Right Image
Vestibulum purus est, dapibus vitae facilisis non, accumsan a ipsum. Quisque sollicitudin elementum iaculis. Curabitur ultricies nunc non augue elementum, eu pharetra lorem hendrerit. Nam ac mi placerat, porttitor lacus id, rutrum urna. Fusce nec feugiat nisi. Etiam nunc purus, cursus eu tincidunt ac, faucibus ac velit.
Fusce rutrum ultrices augue, nec blandit sapien cursus et. Sed porttitor dui id mauris condimentum vestibulum. Praesent vitae ligula tristique ante malesuada bibendum et in nulla. Nunc ac facilisis diam. Sed non arcu sed nisl tempus eleifend sed eget arcu. Donec viverra adipiscing dignissim. Quisque elementum neque et lacus fringilla, vitae luctus felis tempor. Duis a auctor eros, congue sollicitudin lectus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Comments
Tiffany Morey Aug 11, 10:05 pm
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.Colin Stewart Aug 11, 10:05 pm
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.Tessa William Aug 11, 10:05 pm
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.Leave a reply
how do I accomplish this;
thanks!
Hi there,
Well first of all, you need to get the css file and place the code on it, maybe its good to create a new css file and add it to your template blog file!
Then, replace the links with your links for monstra for example:
So when you create your blog post you have everything connected
This is how your default blog post looks like:
Here you leave it as it is.... You want to change the Div's only for the ones your new template have, so on this one you can change the divs to meet your design leave all the rest as it is now!
Edit the header.chunk.php file and place your new css files from your template.
Then on the file: blog-post.template.php you want to make the same thing to meet your criteria.
/
Just call the actions you want inside of your own design!
Thats it
hi wormsunited,
This is blog morfy! no monstra.
Howdy it works exactly the same way
Howdy it works exactly the same way
bro is not the same
Hi there mate!
What i want to tell you is that you need to replace the filespath like nakome said
getPages($url,$order_by,$order_type,$ignore,$limit); // $url is a folder of posts $url = CONTENT_PATH . '/blog/'; // $order_by is a order like date or title $order_by = 'date'; // $order_type is a order type like ASC or DESC $order_type = 'DESC'; // $ignore = array of files to ignore $ignore = array('404','index'); // $limit is a number of posts $limit = 2; $posts = Morfy::factory()->getPages($url,$order_by, $order_type,$ignore,$limit); foreach($posts as $post) { // use default image if not write Thumbnail $thumbnail = ($post['thumbnail']) ? $post['thumbnail'] : $config['Site_url'].'public/images/default.jpg'; echo ''.$post['title'].'
Posted on '.$post['date'].'
'.$post['content_short'].''; } ?>
Best regards
good morning friend,
I'm trying to do but does not come out right
Ok lets do this step by step then....
This is the basic structure for blog posts (as the default template) file => blog_post.html
runAction('theme_content_before'); ?>Posted on
runAction('theme_content_after'); ?>
Now to match your criteria you need to add your own theme, start by creating your folder under themes/my-wonderfull-theme and then copy all the files under default theme there!
Lets start:
1st => You need to check on your header.html file
By default it looks like this:
runAction('theme_meta'); ?>runAction('theme_header'); ?> You need to edit the filepath of the links on your theme to match see on code the '' i placed there.
2nd => Lets check the footer.html in this cases normally I place there the scripts.js (for less load of the pages) see on code the '' i placed there for you.
runAction('theme_footer'); ?>
3rd => Now check your html version (the original one), now you need the midlle part for this template starts working ignore all the code as the header.html and footer.html you just want what is under the body section so you dont need to copy the hole page on it.
4 => grab a notepad ++ and hit serach and replace the filespath of your theme and that's it!
Conclusion:
You can paste html code on the md file and it reads perfectly (tested), all you need to do is replace the filespath.
Now if you need anymore help, please copy/paste here the full code of your theme and i will create it for you but my time is short, i promiss i will do my best to help you!
Best regards and good luck
I think that was a misunderstanding!
I sent you private message thank!
This is ease look this:
File library/Morfy.php line 78
private $page_headers = array( 'title' => 'Title', 'description' => 'Description', 'keywords' => 'Keywords', 'author' => 'Author', 'date' => 'Date', 'robots' => 'Robots', 'tags' => 'Tags', 'template' => 'Template', 'thumbnail' => 'Thumbnail' // this is a new object );Md file like blog:
Title: Example title one Description: New Description Keywords: Keywords here Author: Author Date: January 11, 2014 Tags: Tags here Template: index Thumbnail: public/images/image.jpg -------- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste ut, aliquid modi consequatur vitae minima dolor quibusdam sit nisi eos temporibus exercitationem aperiam deleniti nesciunt dignissimos deserunt ducimus provident facilis.Blog template
runAction('theme_content_before'); ?> getPages($url,$order_by,$order_type,$ignore,$limit); // $url is a folder of posts $url = CONTENT_PATH . '/blog/'; // $order_by is a order like date or title $order_by = 'date'; // $order_type is a order type like ASC or DESC $order_type = 'DESC'; // $ignore = array of files to ignore $ignore = array('404','index'); // $limit is a number of posts $limit = 2; $posts = Morfy::factory()->getPages($url,$order_by, $order_type,$ignore,$limit); foreach($posts as $post) { // use default image if not write Thumbnail $thumbnail = ($post['thumbnail']) ? $post['thumbnail'] : $config['Site_url'].'public/images/default.jpg'; echo ''.$post['title'].'
Posted on '.$post['date'].'
'.$post['content_short'].''; } ?> runAction('theme_content_after'); ?>If you use in normal page use:
Example
news5.html
runAction('theme_content_before'); ?> getPages($url,$order_by,$order_type,$ignore,$limit); // $url is a folder of posts $url = CONTENT_PATH . '/news5/'; // $order_by is a order like date or title $order_by = 'date'; // $order_type is a order type like ASC or DESC $order_type = 'DESC'; // $ignore = array of files to ignore $ignore = array('404','index'); // $limit is a number of posts $limit = 2; $posts = Morfy::factory()->getPages($url,$order_by, $order_type,$ignore,$limit); foreach($posts as $post) { // use default image if not write Thumbnail $thumbnail = ($post['thumbnail']) ? $post['thumbnail'] : $config['Site_url'].'public/images/default.jpg'; echo ''.$post['title'].'
Posted on '.$post['date'].'
'.$post['content_short'].''; } ?> runAction('theme_content_after'); ?>
news5_post.html
image not found!!
Show me a screen of devtools form chrome
In localhost works!
while a server is not working
example tells me that the path of the image
http://mydomain.com/news5/public/images/default.jpg
http://postimg.org/image/jqrvrf65z/
http://postimg.org/image/bavek89qh/
ok I found that is wrong
Title: Example title one Description: New Description Keywords: Keywords here Author: Author Date: January 11, 2014 Tags: Tags here Template: index Thumbnail: public/images/image.jpg -------- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste ut, aliquid modi consequatur vitae minima dolor quibusdam sit nisi eos temporibus exercitationem aperiam deleniti nesciunt dignissimos deserunt ducimus provident facilis.
change
Title: Example title one Description: New Description Keywords: Keywords here Author: Author Date: January 11, 2014 Tags: Tags here Template: index Thumbnail: /public/images/image.jpg -------- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste ut, aliquid modi consequatur vitae minima dolor quibusdam sit nisi eos temporibus exercitationem aperiam deleniti nesciunt dignissimos deserunt ducimus provident facilis.
change
;
$thumbnail = ($post['thumbnail']) ? $post['thumbnail'] : $config['Site_url'].'public/images/default.jpg';
change
$thumbnail = ($post['thumbnail']) ? $post['thumbnail'] : $config['Site_url'].'/public/images/default.jpg';
Yes in new morfy you need use this
Johnny Doe Aug 11, 10:05 pm