Keyword

Tag page Title

  • razen
  • razen's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 10 months ago #159074 by razen
Tag page Title was created by razen
Hello,

I recognized differences on the tag-page, depending if you selected it from the top-category or a sub-category.

From top-category:
Page-Title:
[tag]
H2:
Tag: [tag] (number)

From sub-category:
Page-Title:
Category: [sub-category you started from]
H2:
Tag: Category: [sub-category you started from] (number)

Actually I would always like to have the variant from the top.-category.

In the tag.php-template I used this code from the default-template of k2:
<?php if($this->params->get('show_page_title')): ?>
	<!-- Page title -->
	<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
		<?php echo $this->escape($this->params->get('page_title')); ?>
	</div>
	<?php endif; ?>

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #159120 by Krikor Boghossian
Replied by Krikor Boghossian on topic Tag page Title
This will display the menu item's title or a specified page title (Displaying items ...)

Can you send me the two examples with the wrong titles?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • razen
  • razen's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 10 months ago #159129 by razen
Replied by razen on topic Tag page Title
minecraft-heads.com/uuid-heads/humans/tag/Man

www.file-upload.net/download-12092623/tag.rar.html

Here's the file and the link to the site where that case happens.

Please Log in or Create an account to join the conversation.

  • razen
  • razen's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 10 months ago #159207 by razen
Replied by razen on topic Tag page Title
...?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #159242 by Krikor Boghossian
Replied by Krikor Boghossian on topic Tag page Title
The title is hardcoded:
		<!-- TAG-TITLE + COUNT -->
		<!-- Display item by tag in Sprachdatei ausgeblendet -->
		<h2>
		Tag: <?php echo $this->escape($this->params->get('page_title')); ?> (<?php echo $this->pagination->total; ?>)
		</h2>

Apart from the Tag: part, the $this->params->get('page_title') will produce the page's (menu item) title. If the parent menu item contains a page title that title will be displayed.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum