0
Welcome Guest! Login
0 items Join Now

Menu title plus category title shown

  • Re: Menu title plus category title shown

    Posted 10 years 1 month ago
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Menu title plus category title shown

    Posted 10 years 1 month ago
    • hi lynn,

      i just left a reply in your other topic.
      it seems that the even the core joomla template 'beez' shows the same behavior as our templates.

      kat :)
    • Kat05 / QA Lead & Support / Germany
  • Re: Menu title plus category title shown

    Posted 10 years 4 weeks ago
    • Thanks - yes, I replied to your reply ;-)
    • Best regards,

      Lynn Fredricks
      Download Valentina Studio database management for free (macOS, Windows & Linux)
      www.valentina-db.com
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22058
    • Thanks: 3191
    • messin' with stuff

    Re: Menu title plus category title shown

    Posted 10 years 4 weeks ago
    • The workaround to this issue is to place a single space in the Menu Item > Page Display > Browser Page Title box
    • Last Edit: 10 years 4 weeks ago by Matt.
    • The following users have thanked you: ERRI NUÑEZ, ADMS, Inc

    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • ERRI NUÑEZ's Avatar
    • ERRI NUÑEZ
    • Jr. Rocketeer
    • Posts: 46
    • Thanks: 0
    • Creer es Crear

    Re: Menu title plus category title shown

    Posted 10 years 4 weeks ago
    • Thank you very much Matt
      with this method the problem is solved in metropolis template, it completes version of gantry completes version of joomla.
      arise to me does a curiosity, finally is a problem of the core of joomla?
      Thanks thanks, a new step to finalize the Web!!!!
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22058
    • Thanks: 3191
    • messin' with stuff

    Re: Menu title plus category title shown

    Posted 10 years 4 weeks ago
    • It does appear to be a core joomla issue... though we're investigating it deeper... the standard Beez3 template does the same thing...
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • V-Web's Avatar
    • V-Web
    • Rocketeer
    • Posts: 91
    • Thanks: 0

    Re: Menu title plus category title shown

    Posted 9 years 10 months ago
    • I'm a bit sceptical about adding a space to the page title settings. Its a temporary fix that basically shifts the problem to unwanted and uncontrollable page titles for a blog type layout.

      If your looking at a shortcut for this problem I'd be looking for a short and simple CSS solution:

      .subheading-category {
      display: none;
      }
    • Last Edit: 9 years 10 months ago by V-Web. Reason: Added a simple solution
  • Re: Menu title plus category title shown

    Posted 9 years 10 months ago
    • Simply adding this code in the gantry override blog.php for whichever version of Joomla being used does the trick everytime.
      <!--<?php if ($this->params->get('show_page_heading') != 0 or $this->params->get('show_category_title')): ?>--!>
      <h1>
      <?php if ($this->params->get('show_page_heading') != 0)
      	{
      		echo $this->escape($this->params->get('page_heading'));
      	}
      ?>
      by commenting out the first line it allows the system to process the NO through the rest.
      Otherwise it always processes yes and displays the page_heading.
      this is around line 24 in the file.
    • Last Edit: 9 years 10 months ago by Kat05.
    • The following users have thanked you: David Goode, Matt

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

    Re: Menu title plus category title shown

    Posted 9 years 10 months ago
    • hi all,

      thank you all for your patience and special thanks to luke and outlander734 for offering a solution.

      this indeed helps to improve the issue and we'll most likely add this fix to our next gantry update which will be out latest with the next template release.

      as we have taken a lot of the overrides from beez (and this is not working in beez either), this issue has unfortunately found it's way into our templates and gantry. another issue remains, it's that the page subheading does not seem to show and also a line break is needed between the page heading or page subheading (once it shows) and the category title, but our devs will look into that too.

      kat :)
    • Kat05 / QA Lead & Support / Germany
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Menu title plus category title shown

    Posted 9 years 10 months ago
    • hi again,

      we've just released gantry 4.1.27 which should address most of the issues mentioned here for most of our templates (cerulean will get a template-side fix).

      one thing to pay attention to is that in the 'category blog' menu item, in the 'page display' tab, the setting for 'show page heading' should be set to 'no', if there is no page heading used. otherwise issues will appear.

      the code change used for this fix is the following: in
      ../plugins/system/gantry/overrides/3.2/2.5/com_content/category/blog.php
      ../plugins/system/gantry/overrides/3.3/2.5/com_content/category/blog.php
      line 24 to 33 which is:
      <?php if ($this->params->get('show_page_heading') != 0 or $this->params->get('show_category_title')): ?>
      <h1>
      	<?php echo $this->escape($this->params->get('page_heading')); ?>
      	<?php if ($this->params->get('show_category_title'))
      	{
      		echo '<span class="subheading-category">'.JHtml::_('content.prepare', $this->category->title, '', 'com_content.category.title').'</span>';
      	}
      	?>
      </h1>
      <?php endif; ?>
      has been replaced with:
      <?php if ($this->params->get('show_page_heading', 1)) : ?>
      <h1>
      	<?php echo $this->escape($this->params->get('page_heading')); ?>
      </h1>
      <?php endif; ?>
      
      <?php if ($this->params->get('show_category_title', 1) or $this->params->get('page_subheading')) : ?>
      	<h2> <?php echo $this->escape($this->params->get('page_subheading')); ?>
      		<?php if ($this->params->get('show_category_title')) : ?>
      			<span class="subheading-category"><?php echo $this->category->title; ?></span>
      		<?php endif; ?>
      	</h2>
      <?php endif; ?>
      kat :)
    • Last Edit: 9 years 10 months ago by Kat05.
    • The following users have thanked you: Joe Halleck, DanG

    • Kat05 / QA Lead & Support / Germany

Time to create page: 0.070 seconds