Blog Extended Provides extended functionality for your blog.
#2
Posted 25 February 2012 - 02:41 PM
Added this function to our site and noticed a few things that we could use some help with:
- When attempting to use the new Preview function (possibly unrelated to this module), the following error is thrown on the preview page: Fatal error: Call to a member function format() on a non-object in /xxxx/xxxxx/xxxxx/modules/cms/classes/cms_controller.php(312) : eval()'d code on line 14. Once the post is set a published, the error goes away. Before the update, when a blog post was unpublished, we were able to manually visit the post via the url and preview it. Now we cannot. Again, this may not be related to this mod, but mentioning it here just in case.
- The Description field does not show as a Rich Text editor as shown in the Mod Marketplace page
- The tags are shown in the output, but they do not behave like tags in other CMS systems like WordPress. The output is simply text and there is no separator between the words. If that is the intended behavior, what value do the tags provide? In Wordpress, post tags become linked and assumably offer SEO benefits and allow you to find other articles with the same tags by simply clicking the tag link.
- Is there a reason the blog "description" does not show in the HTML meta "description" tag?
- Adding to the last one, is there a way to add meta "keywords" to the blog post as well
Let us know if you need any other information to help us figure out what might be the problem.
#3
Posted 29 February 2012 - 11:40 AM
rtd, on 25 February 2012 - 02:41 PM, said:
Added this function to our site and noticed a few things that we could use some help with:
- When attempting to use the new Preview function (possibly unrelated to this module), the following error is thrown on the preview page: Fatal error: Call to a member function format() on a non-object in /xxxx/xxxxx/xxxxx/modules/cms/classes/cms_controller.php(312) : eval()'d code on line 14. Once the post is set a published, the error goes away. Before the update, when a blog post was unpublished, we were able to manually visit the post via the url and preview it. Now we cannot. Again, this may not be related to this mod, but mentioning it here just in case.
- The Description field does not show as a Rich Text editor as shown in the Mod Marketplace page
- The tags are shown in the output, but they do not behave like tags in other CMS systems like WordPress. The output is simply text and there is no separator between the words. If that is the intended behavior, what value do the tags provide? In Wordpress, post tags become linked and assumably offer SEO benefits and allow you to find other articles with the same tags by simply clicking the tag link.
- Is there a reason the blog "description" does not show in the HTML meta "description" tag?
- Adding to the last one, is there a way to add meta "keywords" to the blog post as well
Let us know if you need any other information to help us figure out what might be the problem.
Hi,
1. I'll check it out and let you know.
2. I'll check it out.
3. You will have to handle separating the tags and linking them yourself. Currently no action exists to show a single tag page. It is not difficult though, you will need to write a query to get tags based on their master_id = 'Blog_Post', output the tags, JOIN the blog_posts table, output the blog posts. Even without that feature, there are plenty of uses for tagging: simply displaying tags so that the reader understands the context, or you can internally track easier, associating products together (think: related products), creating marketing campaigns that display based upon the context of tags on the page.
4. You have to handle that yourself in your layouts. I believe you're capable of that, but let me know if you need help.
5. I've added it to the issue list: https://github.com/l...tended/issues/1
#4
Posted 29 February 2012 - 12:42 PM
#5
Posted 13 April 2012 - 03:36 AM
rtd, on 25 February 2012 - 02:41 PM, said:
Added this function to our site and noticed a few things that we could use some help with:
- When attempting to use the new Preview function (possibly unrelated to this module), the following error is thrown on the preview page: Fatal error: Call to a member function format() on a non-object in /xxxx/xxxxx/xxxxx/modules/cms/classes/cms_controller.php(312) : eval()'d code on line 14. Once the post is set a published, the error goes away. Before the update, when a blog post was unpublished, we were able to manually visit the post via the url and preview it. Now we cannot. Again, this may not be related to this mod, but mentioning it here just in case.
- The Description field does not show as a Rich Text editor as shown in the Mod Marketplace page
- The tags are shown in the output, but they do not behave like tags in other CMS systems like WordPress. The output is simply text and there is no separator between the words. If that is the intended behavior, what value do the tags provide? In Wordpress, post tags become linked and assumably offer SEO benefits and allow you to find other articles with the same tags by simply clicking the tag link.
- Is there a reason the blog "description" does not show in the HTML meta "description" tag?
- Adding to the last one, is there a way to add meta "keywords" to the blog post as well
Let us know if you need any other information to help us figure out what might be the problem.
How do I get the Rich Text editor to show on the Description field?
#6
Posted 13 April 2012 - 12:18 PM
jaybee, on 13 April 2012 - 03:36 AM, said:
...i think you need to modify the blog module, in that folder you have "models" in there you have "blog_post.php"...
...on line 67 change:
$this->add_form_field('description')->renderAs(frm_textarea)->size('small')->tab('Content');...to this with "frm_html":
$this->add_form_field('description')->renderAs(frm_html)->size('small')->tab('Content');...i think you also need to change the call on the blog pages to:
<?= $post->description ?>
...hope it helps!
#7
Posted 13 April 2012 - 12:46 PM
apepp, on 13 April 2012 - 12:18 PM, said:
...on line 67 change:
$this->add_form_field('description')->renderAs(frm_textarea)->size('small')->tab('Content');...to this with "frm_html":
$this->add_form_field('description')->renderAs(frm_html)->size('small')->tab('Content');...i think you also need to change the call on the blog pages to:
<?= $post->description ?>
...hope it helps!
You can make a module to extend it without editing the module's code.
using onExtendFormPost and the following sort of snippet to look up the description and modify it.
$post->find_form_field('description')->renderAs(frm_html)
#9
Posted 15 April 2012 - 02:07 AM
EHLOVader, on 13 April 2012 - 12:46 PM, said:
using onExtendFormPost and the following sort of snippet to look up the description and modify it.
$post->find_form_field('description')->renderAs(frm_html)Cheers, that works!
#10
Posted 15 April 2012 - 04:04 AM
I can get the HTML settings (System > Settings > HTML Editor Settings) to display a new group using:
public function listHtmlEditorConfigs()
{
return array('x_blog_post_content'=>'X Blog post content');
}
#11
Posted 15 April 2012 - 04:13 AM
jaybee, on 15 April 2012 - 04:04 AM, said:
I can get the HTML settings (System > Settings > HTML Editor Settings) to display a new group using:
public function listHtmlEditorConfigs()
{
return array('x_blog_post_content'=>'X Blog post content');
}
Just found the answer to this here: http://forum.lemonst...563#entry15563]

Help














