Hiding layout components
I'm not finding it anywhere in the settings, but trying to figure out how to hide the "Tags:" and "Comments" information from the latest blog posts pages.
9 responses Add Yours
-
Hello Aaron,
I am sorry for the delay of this reply due to the differences in our time zone. Currently, to remove these tags, you will need to customize the theme files for this to happen. You should take a look at the following files if you are using the default theme,
/components/com_easyblog/themes/default/blog.read.php
/components/com_easyblog/themes/default/blog.item.php
You should look for the html codes that are similar to the following,
For comments:
<span class="blog-comments"> <?php if( $system->config->get('comment_disqus') ) { ?> <?php echo $row->totalComments; ?> <?php } else { ?> <a href="/<?php echo EasyBlogRouter::_('index.php?option=com_easyblog&view=entry'.$team.'&id='.$row->id); ?>#comments"><?php echo $this->getNouns( 'COM_EASYBLOG_COMMENT_COUNT' , $row->totalComments , true );?></a> <?php } ?> </span>
For tags:
<div class="blog-taglist mtm small"> <div class="in"> <?php if($loadtags): ?> <span class="blog-tag"><?php echo JText::sprintf('COM_EASYBLOG_TAG_LIST', $row->tags); ?></span> <?php endif; ?> </div> </div>
In EasyBlog 3.5, these will be made configurable under the themes section
If you need help, do visit our documentations below,
http://stackideas.com/support.html
http://stackideas.com/docs/easyblog.html
http://stackideas.com/docs/easydiscuss.html -
When will v3.5 be available? May just wait until it's available before customizing the code myself.
I have another couple of questions about formatting:
1.) On the blog author pages, is there a way for those pages to ONLY show post title and not the same excerpt settings used elsewhere?
2.) On the popular posts module, I have the setting configured to not show post content, but it still is. Something I'm missing? -
Hello Aaron,
We're actually almost there but there's no ETA on that though
Sure, please find the answers to your inquiries below,
1.) On the blog author pages, is there a way for those pages to ONLY show post title and not the same excerpt settings used elsewhere?
Sorry but I don't quite get you on this. Would you mind sharing a link to that particular page?
2.) On the popular posts module, I have the setting configured to not show post content, but it still is. Something I'm missing?
Strange, in my local code it seems to read the settings correctly. Is it possible for you to provide me with the back end access to check this on your site?If you need help, do visit our documentations below,
http://stackideas.com/support.html
http://stackideas.com/docs/easyblog.html
http://stackideas.com/docs/easydiscuss.html -
Here you go. Created a SuperAdmin user for you.
If you look at http://www.nfpt.com/bill-bean/blogger/listings/bill-bean as an example of my blogger page, where the posts are listed, I'd like to hide all post content and just provide a link to the post to read in it's entirety on a single post page.
If you look, at the "Bill's Latest Posts" section, it currently is suppressing the post content but if you look at the main blog page the "Popular Blog Posts" is displaying a snippet of the post content. I'd like to suppress that snippet and think I've got that setting configured appropriately in the settings. -
Hello Aaron,
Ah it looks like there's a bug in the current popular post module that is published. I have fixed this for you on the site and it should suppress the contents now.
As for the blogger listings, this is what you can do, edit the file /components/com_easyblog/themes/default/blog.item.php and remove the block of codes below,
<div class="blog-text clearfix prel"> <?php /** * ---------------------------------------------------------------------------------------------------------- * Content Text * ---------------------------------------------------------------------------------------------------------- */ ?> <!-- joomla content plugin call --> <?php echo $row->event->beforeDisplayContent; ?> <?php if ($loadsocialbutton ) : // show Tweetmeme and Google Buzz if enabled if($socialPosition == 'top') EasyBlogHelper::showSocialButton($row , true ); if($socialPosition == 'left' || $socialPosition == 'right') EasyBlogHelper::showSocialButton($row , true ); endif; ?> <!-- the content --> <?php echo $row->text; ?> <!-- joomla content plugin call --> <?php echo $row->event->afterDisplayContent; ?> <?php /* content copyright */ ?> <?php if( $system->config->get( 'layout_copyrights' ) && !empty($row->copyrights) ) { ?> <div class="blog-copyrights mtm"> <div class="in clearfix"> <span class="blog-copyrights"> <?php echo JText::_('COM_EASYBLOG_COPYRIGHTS_PREFIX') . $row->copyrights ?> </span> </div> </div> <?php } ?> <?php if( $system->config->get( 'main_locations_blog_frontpage' ) ){ ?> <?php echo EasyBlogHelper::getHelper( 'Maps' )->getHTML( true , $row->address, $row->latitude , $row->longitude , $system->config->get( 'main_locations_blog_map_width') , $system->config->get( 'main_locations_blog_map_height' ), JText::sprintf( 'COM_EASYBLOG_LOCATIONS_BLOG_POSTED_FROM' , $row->address ), 'post_map_canvas_' . $row->id );?> <?php } ?> </div><!--end: .blog-text-->If you need help, do visit our documentations below,
http://stackideas.com/support.html
http://stackideas.com/docs/easyblog.html
http://stackideas.com/docs/easydiscuss.html -
Will removing that block of code ONLY impact the blogger pages? and not the default "latest" blog posts pages?
Is the bug on the other module something that I caused an error with in my configuration, or literally a bug in the code for the module itself?
By the way, thanks for your quick responses to all of this. -
Hello Aaron,
Ah, that would also affect the latest blog posts page because they share the same theme file. If you want, I could add a hack for you so that it only doesn't show up on the bloggers page.
As for the module, I believe there's a bug in the older version of the module (The one that you downloaded from our site). I've notified the team about this
If you need help, do visit our documentations below,
http://stackideas.com/support.html
http://stackideas.com/docs/easyblog.html
http://stackideas.com/docs/easydiscuss.html -
I would say don't worry about hacking the default page code for this. Perhaps, add a feature to the blogger layout page to control content display settings like is available on other pages and modules.
Another good module addition would be blogger info module that would only appear on the blogger pages that would automatically pull in their social profile links, twitter updates, etc based on the selected blogger profile.
My solution was to add custom modules within Joomla itself that has that information that's unique to each blogger page. That solution made me create 4 copies of the same module for every blogger page I want to create. Could see this getting very laborious as more bloggers are added, particularly guest blogger profiles. -
Hello Aaron,
Thanks for the heads up on that
I'll try to add this on EasyBlog 3.5 . As for the author module, there's actually already a module that does something similar called mod_easyblogbio but it doesn't actually pull their social profile links though. I'll add this to our todo-list in the future
Aaron Douglas likes this post.If you need help, do visit our documentations below,
http://stackideas.com/support.html
http://stackideas.com/docs/easyblog.html
http://stackideas.com/docs/easydiscuss.html
