Keyword

Display tag pages same as category pages

  • Ralf Longwitz
  • Ralf Longwitz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 8 months ago #167116 by Ralf Longwitz
Display tag pages same as category pages was created by Ralf Longwitz
Hello,

This has come up before, similarly, but I hope there is a simpler solution for it:

I have the category display of my items set up, looks fine. Now I also want to set items into the menu by tag, easy enough. But the display of items by tag is totally different from the display by category - I need both to look exactly the same.

Is there an easy way to do this? Rather than overriding tag.php and reprogramming it all from almost scratch ...
The tag page display override should also automatically adjust to any parameter changes for categories. Is that possible with reasonable effort?

Thank you!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 8 months ago #167129 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display tag pages same as category pages
Hello,
Unfortunately I will let you down.
Since these are different views you will need to override the tag.php file.

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

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

  • Ralf Longwitz
  • Ralf Longwitz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 8 months ago #167133 by Ralf Longwitz
Replied by Ralf Longwitz on topic Display tag pages same as category pages
ok, thanks for your quick reply. At least it saves me from looking further.

Maybe a future feature? I've had this issue before, and I think I totally reworked tag.php then, years ago ...

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 8 months ago #167154 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display tag pages same as category pages
You can add it as a feature request github.com/getk2/k2 so we can have a discussion over it :)

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

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

More
6 years 7 months ago #167490 by Villy Koutsogianni
Replied by Villy Koutsogianni on topic Display tag pages same as category pages

The tag page display override should also automatically adjust to any parameter changes for categories. Is that possible with reasonable effort?

I totally agree with Ralf!!

I have tried to configure tag.php file but with no success, as I am not very familiar with it.
I am following the discussion at github but there are no updates there :(

Is there somebody that can help?
Thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 7 months ago #167504 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display tag pages same as category pages
Hello Villy,

Unfortunately this is a feature which requires feedback and also it requires several hours of development.
You can comment on the thread so it receives more feedback.

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

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

More
6 years 7 months ago #167607 by Villy Koutsogianni
Replied by Villy Koutsogianni on topic Display tag pages same as category pages
I am trying to display the rest of the item's tags in tag view. I have added the code below, but with no result.
Any suggestion?
Thanks
<span><?php echo JText::_('Also tagged under:'); ?></span>
		  <ul class="catItemTags">
	<?php foreach ($this->item->tags as $tag): ?>
<a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a>, 
<?php endforeach; ?>
		  </ul>
		  <div class="clr"></div>

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 7 months ago #167620 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display tag pages same as category pages
Hello Villy,

By default the tags are not available in this view github.com/getk2/k2/blob/master/components/com_k2/models/item.php#L96

You can add them to the tags by adding the appropriate view check || ($view == 'itemlist' && $task == 'tag')
and the tags will be available.

PS, You are missing a <li> tag.

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

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

More
6 years 7 months ago #167622 by Villy Koutsogianni
Replied by Villy Koutsogianni on topic Display tag pages same as category pages
Thanks for the tips Krikor!
I will give it a try

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

More
6 years 7 months ago #167623 by Villy Koutsogianni
Replied by Villy Koutsogianni on topic Display tag pages same as category pages
Unfortunately, I did not manage to make it work :(
if it Is not too much to ask, could you provide me the code that should be added to tag.php?
Thank you

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


Powered by Kunena Forum