0
Welcome Guest! Login
0 items Join Now

SOLVED Hide 'More articles..." in blog layout

    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • hi there,

      you are using the quantive template, that's why you do not have the option 'load more articles' as it was only introduced to newer templates. (if i remember right the first one was panacea)

      the pagination that you are seeing must be core joomla, try to disable it in the menu item settings of that particular blog page.

      kat :)
    • Kat05 / QA Lead & Support / Germany
    • Rub's Avatar
    • Rub
    • Elite Rocketeer
    • Posts: 566
    • Thanks: 0
    • Electronics Engineer - Medical Molding

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • I my understanding there's no any option to hide the "More Articles..." but you can hide the both the links and the "More Articles..." text by setting the links value to "0". Will be great if you can show us how to remove this text with out changing the php code or the language file.

      I done this before as it was requested for a customer but it was joomla 1.7, so I tried several different things and I found a couple ways to hide it by modifying the core joomla as I described above. If the joomfish is installed you might need to modify a few more modules, anyway I found the second option more friendly and it was deleting "More Articles..." from the language file.

      A. AS DESCRIBED IN MY PREVIOUS POST
      B. Language File. go to /language/en-GB(or whatever language)/en-GB.com_content.ini and find the COM_CONTENT_MORE_ARTICLES="More Articles ..." and change it to COM_CONTENT_MORE_ARTICLES=""

      actually in my version of joomla version (1.7) this is how it works.
      <?php
      /**
       * @version     $Id: blog_links.php 20196 2011-01-09 02:40:25Z ian $
       * @package     Joomla.Site
       * @subpackage  com_content
       * @copyright   Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
       * @license     GNU General Public License version 2 or later; see LICENSE.txt
       */
       
      // no direct access
      defined('_JEXEC') or die;
      ?>
       
       
      <div class="items-more">
       
      <h3><?php echo JText::_('COM_CONTENT_MORE_ARTICLES'); ?></h3>
      <ol>
      <?php
          foreach ($this->link_items as &$item) :
      ?>
          <li>
              <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid)); ?>">
                  <?php echo $item->title; ?></a>
          </li>
      <?php endforeach; ?>
      </ol>
      </div>

      Pay attention to line 17. if you noticed this line is looking for the value is on the COM_CONTENT_MORE_ARTICLES , this is the language file. what i done was to remove line 17 and then save the file, with the same name.
      <?php
      /**
       * @version     $Id: blog_links.php 20196 2011-01-09 02:40:25Z ian $
       * @package     Joomla.Site
       * @subpackage  com_content
       * @copyright   Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
       * @license     GNU General Public License version 2 or later; see LICENSE.txt
       */
       
      // no direct access
      defined('_JEXEC') or die;
      ?>
       
       
      <div class="items-more">
       
       
      <ol>
      <?php
          foreach ($this->link_items as &$item) :
      ?>
          <li>
              <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid)); ?>">
                  <?php echo $item->title; ?></a>
          </li>
      <?php endforeach; ?>
      </ol>
      </div>

      NOW, PAY ATTENTION TO THE LANGUAGE FILE, LINE 35---IF YOU NOTICE THIS IS THE VALUE THAT WILL BE SHOW ON THE WEB SITE IF YOU CHANGE LINE 35 FROM COM_CONTENT_MORE_ARTICLES="More Articles..." TO COM_CONTENT_MORE_ARTICLES="" THEN THE "More Articles..." WILL DISAPPEAR. IF YOU NOTICE THIS VALUE IS THE SAME SHOW ON LINE 17 IN THE BLOGLINK.PHP
      ; $Id: en-GB.com_content.ini 22284 2011-10-25 14:52:14Z github_bot $
      ; Joomla! Project
      ; Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
      ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
      ; Note : All ini files need to be saved as UTF-8 - No BOM
       
      COM_CONTENT_ACCESS_DELETE_DESC="Inherited state for <strong>delete actions</strong> on this article and the calculated state based on the menu selection."
      COM_CONTENT_ACCESS_EDITSTATE_DESC="Inherited state for <strong>edit state actions</strong> on this article and the calculated state based on the menu selection."
      COM_CONTENT_ACCESS_EDIT_DESC="Inherited state for <strong>edit actions</strong> on this article and the calculated state based on the menu selection."
      COM_CONTENT_ARTICLE_HITS="Hits: %s"
      COM_CONTENT_ARTICLE_INFO="Details"
      COM_CONTENT_ARTICLE_VOTE_SUCCESS="Thank You for rating this Article."
      COM_CONTENT_ARTICLE_VOTE_FAILURE="You already rated this Article today!"
      COM_CONTENT_AUTHOR_FILTER_LABEL="Author Filter"
      COM_CONTENT_CATEGORY="Category: %s"
      COM_CONTENT_CHECKED_OUT_BY="Checked out by %s"
      COM_CONTENT_CREATE_ARTICLE="Submit new article"
      COM_CONTENT_CREATED_DATE="Created Date"
      COM_CONTENT_CREATED_DATE_ON="Created on %s"
      COM_CONTENT_EDIT_ITEM="Edit Article"
      COM_CONTENT_ERROR_ARTICLE_NOT_FOUND="Article not found"
      COM_CONTENT_ERROR_LOGIN_TO_VIEW_ARTICLE="Please login to view the article"
      COM_CONTENT_ERROR_CATEGORY_NOT_FOUND="Category not found"
      COM_CONTENT_ERROR_PARENT_CATEGORY_NOT_FOUND="Parent category not found"
      COM_CONTENT_FILTER_SEARCH_DESC="Content Filter Search"
      COM_CONTENT_FORM_EDIT_ARTICLE="Edit an article"
      COM_CONTENT_HEADING_TITLE="Title"
      COM_CONTENT_HITS_FILTER_LABEL="Hits Filter"
      COM_CONTENT_INTROTEXT="Article must have some text"
      COM_CONTENT_INVALID_RATING="Article Rating: Invalid Rating: %s"
      COM_CONTENT_LAST_UPDATED="Last Updated on %s"
      COM_CONTENT_METADATA="Metadata"
      COM_CONTENT_MODIFIED_DATE="Modified Date"
      COM_CONTENT_MONTH="Month"
      COM_CONTENT_MORE_ARTICLES="More Articles..."
      COM_CONTENT_NEW_ARTICLE="New Article"
      COM_CONTENT_NO_ARTICLES="There are no articles in this category. If subcategories display on this page, they may contain articles."
      COM_CONTENT_NUM_ITEMS="Article Count:"
      COM_CONTENT_ON_NEW_CONTENT="A new Article has been submitted by '%1$s' entitled '%2$s'."
      COM_CONTENT_ORDERING="Ordering:<br />New articles default to the first position in the Category. The ordering can be changed in back-end."
      COM_CONTENT_PAGEBREAK_DOC_TITLE="Page break"
      COM_CONTENT_PAGEBREAK_INSERT_BUTTON="Insert Page Break"
      COM_CONTENT_PAGEBREAK_TITLE="Page Title:"
      COM_CONTENT_PAGEBREAK_TOC="Table of Contents Alias:"
      COM_CONTENT_PARENT="Parent Category: %s"
      COM_CONTENT_PUBLISHED_DATE="Published Date"
      COM_CONTENT_PUBLISHED_DATE_ON="Published on %s"
      COM_CONTENT_PUBLISHING="Publishing"
      COM_CONTENT_READ_MORE="Read more: "
      COM_CONTENT_READ_MORE_TITLE="Read more..."
      COM_CONTENT_REGISTER_TO_READ_MORE="Register to read more..."
      COM_CONTENT_SAVE_SUCCESS="Article successfully saved"
      COM_CONTENT_SUBMIT_SAVE_SUCCESS="Article successfully submitted"
      COM_CONTENT_TITLE_FILTER_LABEL="Title Filter"
      COM_CONTENT_WRITTEN_BY="Written by %s"
       
      Let me know if you are interested so i can help you, I already tried both options in a website i am working and both works. but this is joomla 1.7. But if you like I will more than happy to help you. Hope this help to solve your issue. Once again if you need more help on how to change this values on your website, let me know.

      Respectfully
      Rub
    • Rub

      Steve Jobs "We will miss you"
      We are volunteers - Don't be rude
    • Rub's Avatar
    • Rub
    • Elite Rocketeer
    • Posts: 566
    • Thanks: 0
    • Electronics Engineer - Medical Molding

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • This what I suggest for joomla 1.5 -

      OPTION A - go to public_html/yoursitefolder/components/com_content/views/category/tmpl/blog_links.php and open the file for edit. LINES 3, 4 and 5.
      <?php // no direct access
      defined('_JEXEC') or die('Restricted access'); ?>
      <div>
          <strong><?php echo JText::_( 'More Articles...' ); ?></strong>
      </div>
      <ul>
      <?php foreach ($this->links as $link) : ?>
          <li>
                  <a class="blogsection" href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($link->slug, $link->catslug, $link->sectionid)); ?>">
                  <?php echo $this->escape($link->title); ?></a>
          </li>
      <?php endforeach; ?>
      </ul>
       

      CHANGE TO THIS.
      <?php // no direct access
      defined('_JEXEC') or die('Restricted access'); ?>
       
       
       
      <ul>
      <?php foreach ($this->links as $link) : ?>
          <li>
                  <a class="blogsection" href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($link->slug, $link->catslug, $link->sectionid)); ?>">
                  <?php echo $this->escape($link->title); ?></a>
          </li>
      <?php endforeach; ?>
      </ul>
       

      THE LANGUAGE OPTION DO NOT APPLY FOR JOOMLA 1.5


      Best Regards,
      Rub
    • Rub

      Steve Jobs "We will miss you"
      We are volunteers - Don't be rude
    • Rub's Avatar
    • Rub
    • Elite Rocketeer
    • Posts: 566
    • Thanks: 0
    • Electronics Engineer - Medical Molding

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • Kat05 wrote:
      hi there,

      you are using the quantive template, that's why you do not have the option 'load more articles' as it was only introduced to newer templates. (if i remember right the first one was panacea)

      the pagination that you are seeing must be core joomla, try to disable it in the menu item settings of that particular blog page.

      kat :)

      Thanks for the heads up !!! :cheesy:
    • Rub

      Steve Jobs "We will miss you"
      We are volunteers - Don't be rude
    • Rosenborg's Avatar
    • Rosenborg
    • Hero Rocketeer
    • Posts: 295
    • Thanks: 0

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • Hi

      I´m not in a position to try your recommendations now, but I´ll try them after new year.

      Thanks!
    • Rub's Avatar
    • Rub
    • Elite Rocketeer
    • Posts: 566
    • Thanks: 0
    • Electronics Engineer - Medical Molding

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • ok. it's up to you. but you should try the one i suggest for joomla 1.5 and it is pretty easy to check.

      less than 1 minute
    • Rub

      Steve Jobs "We will miss you"
      We are volunteers - Don't be rude
  • Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • I changed "Leading Articles" to "0" in the Blog Category Layout and it worked for me.
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • thanks a lot @thegamer :)

      are we good to mark this thread solved?

      kat :)
    • Kat05 / QA Lead & Support / Germany
    • Rosenborg's Avatar
    • Rosenborg
    • Hero Rocketeer
    • Posts: 295
    • Thanks: 0

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • Hello - I´m back! :D

      Changing #Leading to '0' did not work in Joomla 1.5, Craiger9er. I presume you tried it in 1.7?

      I´ll try some of the stuff thegamer suggested and report back.
    • Rosenborg's Avatar
    • Rosenborg
    • Hero Rocketeer
    • Posts: 295
    • Thanks: 0

    Re: SOLVED Hide 'More articles..." in blog layout

    Posted 12 years 3 months ago
    • thegamer wrote:
      This what I suggest for joomla 1.5 -

      OPTION A - go to public_html/yoursitefolder/components/com_content/views/category/tmpl/blog_links.php and open the file for edit. LINES 3, 4 and 5.

      I have now tried the OPTION A for Joomla 1.5, thegamer, and it doesn´t work...

      BUT the dir. /yoursitefolder/ wich in my case are /gigantintersport/ is empty... So I ignored that dir and used this string to find and edit the file;
      public_html/yoursitefolder/components/com_content/views/category/tmpl/blog_links.php

Time to create page: 0.073 seconds