LemonStand Forum: Blog Extended - LemonStand Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Blog Extended Provides extended functionality for your blog.

#1 User is offline   Eric Muyser 

  • Web Developer
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,317
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 06 February 2012 - 11:47 AM

Blog Extended

Provides extended functionality for your blog.

Links

0

#2 User is offline   rtd 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 134
  • Joined: 23-September 10

Posted 25 February 2012 - 02:41 PM

Hi Eric,

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.
0

#3 User is offline   Eric Muyser 

  • Web Developer
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,317
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 29 February 2012 - 11:40 AM

View Postrtd, on 25 February 2012 - 02:41 PM, said:

Hi Eric,

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
0

#4 User is offline   rtd 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 134
  • Joined: 23-September 10

Posted 29 February 2012 - 12:42 PM

Thanks Eric. Will take a closer look on items #3 and #4. They are something that our developers would have to do for us.
0

#5 User is offline   jaybee 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 123
  • Joined: 11-January 10
  • LocationBristol, UK

Posted 13 April 2012 - 03:36 AM

View Postrtd, on 25 February 2012 - 02:41 PM, said:

Hi Eric,

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?
0

#6 User is offline   apepp 

  • LemonElite
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 824
  • Joined: 30-October 11

Posted 13 April 2012 - 12:18 PM

View Postjaybee, on 13 April 2012 - 03:36 AM, said:

How do I get the Rich Text editor to show on the Description field?


...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!
0

#7 User is offline   EHLOVader 

  • LemonElite
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 309
  • Joined: 05-May 11

Posted 13 April 2012 - 12:46 PM

View Postapepp, on 13 April 2012 - 12:18 PM, 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!



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)

1

#8 User is offline   apepp 

  • LemonElite
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 824
  • Joined: 30-October 11

Posted 13 April 2012 - 12:57 PM

View PostEHLOVader, on 13 April 2012 - 12:46 PM, said:

You can make a module to extend it without editing the module's code.


...ah yes, blog API, indeed, indeed...that will be the best way, thanks Joe!

...ignore what i said in case of blog updates if any...but you know where to look hopefully.
0

#9 User is offline   jaybee 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 123
  • Joined: 11-January 10
  • LocationBristol, UK

Posted 15 April 2012 - 02:07 AM

View PostEHLOVader, on 13 April 2012 - 12:46 PM, said:

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)



Cheers, that works!
0

#10 User is offline   jaybee 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 123
  • Joined: 11-January 10
  • LocationBristol, UK

Posted 15 April 2012 - 04:04 AM

Any idea how to extend the HTML editor to enable a selection of customised buttons? I can't seem to find an event handler for this.

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');
}

0

#11 User is offline   jaybee 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 123
  • Joined: 11-January 10
  • LocationBristol, UK

Posted 15 April 2012 - 04:13 AM

View Postjaybee, on 15 April 2012 - 04:04 AM, said:

Any idea how to extend the HTML editor to enable a selection of customised buttons? I can't seem to find an event handler for this.

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] :)
0

Share this topic:


Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users