By Torgrim Sandvoll on Thursday, 30 July 2015
Posted in Technical Issues
Replies 5
Likes 0
Views 851
Votes 0
Is there a way to have a "New Post" module on the EasyBlog section on my site?

I found a "Quick Post" module, which is just what I need, but since the Quick Post is useless for authoring a normal post with title, cover image and text with some formatting + links, I need the regular "New post" feature/composer for authoring new posts.

If not, is there a way I can put a Custom HTML module in my blog section, and put the HTML code for the "New post" button I see on EasySocial Dashboard > Blog?
Hey Torgrim,

If the custom html module is placed on EasyBlog pages, I really don't see a purpose of this since there's already a button in the toolbar that allows author to quickly load up the write new post page?

Nevertheless, if you really need a custom html module, you could add codes that looks like this,


<a href="/index.php?option=com_easyblog&view=composer&tmpl=component" data-eb-composer>Write New Post</a>


Notice that the data-eb-composer attribute is injected on the anchor. It needs to be there because EasyBlog scripts would bind events on such DOM elements with this attribute
·
Friday, 31 July 2015 00:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for the answer Mark!

I do not use the EasyBlog toolbar on my site, thought it just made the UIX for my users more complex than it needed, and anyway I like this to be handled in/by EasySocial. Tried turning it on now in Components > EasyBlog > Layout > Toolbar, but did not work/show up, even though I enabled it. Do not know why, but anyway - as said, I do not think I would like to have a toolbar on top of each and every blog post. I would like my users to focus on the blog content, and not on a toolbar with (probably) lots of buttons and stuff.

Thank you very much for the code, I will test it later tonight!
·
Friday, 31 July 2015 02:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, if you are using the latest EasyBlog app for EasySocial, those buttons will now render the composer in the popup rather than in a new window
·
Friday, 31 July 2015 02:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, the EasySocial: Dashboard - Application - Blog - Post new button render the composer in a popup. Always been like this on my site, and this is good/how I want it.

I tested your code in a Custom HTML module, and it works perfect! Now my users can post a new blog post from both EasySocial dashboard, and when reading the sites blog posts in the main menu category Blogs.
·
Friday, 31 July 2015 16:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Glad that your issues are resolved now.
·
Friday, 31 July 2015 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post