- Posts: 66
COMMUNITY FORUM
Rating and Read More not displaying in Tag View
- Scott Oman
- Topic Author
- Offline
- Senior Member
Less
More
9 years 1 month ago #147548
by Scott Oman
Rating and Read More not displaying in Tag View was created by Scott Oman
Hello Joomlaworks Community and K2 Developers,
I noticed that neither the Rating (stars) nore Read More (text) are displaying in Tag View. I have tried inheriting all parameters from a parent category, adjusting the category parameters, and also individual item options.
Can anyone give me information about this and/or help me to display these items?
Many thanks,
Scott
I noticed that neither the Rating (stars) nore Read More (text) are displaying in Tag View. I have tried inheriting all parameters from a parent category, adjusting the category parameters, and also individual item options.
Can anyone give me information about this and/or help me to display these items?
Many thanks,
Scott
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 1 month ago #147578
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Rating and Read More not displaying in Tag View
Hello Scott,
You need to read this post
www.joomlaworks.net/forum/k2-en/41867-solved-item-rating-on-generic-page#144985
Then you can follow the same method for the tag.php file.
You need to read this post
www.joomlaworks.net/forum/k2-en/41867-solved-item-rating-on-generic-page#144985
Then you can follow the same method for 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.
- Scott Oman
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 66
9 years 1 month ago - 9 years 1 month ago #147586
by Scott Oman
Replied by Scott Oman on topic Rating and Read More not displaying in Tag View
Hi Krikor,
So I see your (none) recommendation was to hack the core files since rating doesn't show on "generic pages" such as tag view.
Question:
1.Where is the tag.php file?
2. Does the following code apply or can it be updated specifically for tag view?
You wrote:
"Line 194 locate
if (($view == 'item' && $item->params->get('itemRating')) || ($view == 'itemlist' && ($task == '' || $task == 'category' ) && $item->params->get('catItemRating')))
and add || $task == 'search'
if (($view == 'item' && $item->params->get('itemRating')) || $task == 'search' || ($view == 'itemlist' && ($task == '' || $task == 'category' ) && $item->params->get('catItemRating')))
Finally you should also remove
<?php if($item->params->get('catItemRating')): ?>
and the appropriate <?php endif; ?>
Many thanks!
So I see your (none) recommendation was to hack the core files since rating doesn't show on "generic pages" such as tag view.
Question:
1.Where is the tag.php file?
2. Does the following code apply or can it be updated specifically for tag view?
You wrote:
"Line 194 locate
if (($view == 'item' && $item->params->get('itemRating')) || ($view == 'itemlist' && ($task == '' || $task == 'category' ) && $item->params->get('catItemRating')))
and add || $task == 'search'
if (($view == 'item' && $item->params->get('itemRating')) || $task == 'search' || ($view == 'itemlist' && ($task == '' || $task == 'category' ) && $item->params->get('catItemRating')))
Finally you should also remove
<?php if($item->params->get('catItemRating')): ?>
and the appropriate <?php endif; ?>
Many thanks!
Last edit: 9 years 1 month ago by Scott Oman.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 1 month ago #147588
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Rating and Read More not displaying in Tag View
My recommendation was NOT to hack the core.
The || $task == 'search' should be || $task == 'tag' in your case.
As for the tag.php file, please read this post on overrides. getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
The || $task == 'search' should be || $task == 'tag' in your case.
As for the tag.php file, please read this post on overrides. getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.