-
AuthorPosts
-
linnea Friend
linnea
- Join date:
- April 2015
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 24
- Thanked:
- 1 times in 1 posts
July 20, 2015 at 11:42 am #209030Hi,
I have two minor questions concerning tagged articles.
1) Is it possible to move the display of tags in an individual article before the article text? Currently the tags come at the end and I am worried that people won’t see them or will confuse them with the social share buttons. In the Global Configuration settings I have set the “Position of Article Info” to Above, but the tags remain below the article. Can I change this?
Screenshot:
2) I have several menu points which are set to display Tagged Items. Otherwise I love the clean display with the square preview image, the title, and the preview text. However, I would also like to show the date when the articles were published, so that readers can see what news is most recent. Is this customization easy to achieve?
Screenshot:
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 21, 2015 at 4:30 am #578110Hi linnea,
Below are my answers for your questions:
1. You can show the tags in the place of article info:
– Go to file: root/templates/uber/html/com_content/article/default.php
– Find and move this snippet of code:
<?php if ($params->get('show_tags', 1) && !empty($this->item->tags)) : ?>
<?php echo JLayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
<?php endif; ?>
To the part underneath this block code:
<!-- Aside -->
<?php if ($topInfo || $icons) : ?>
<aside class="article-aside clearfix">
<?php if ($topInfo): ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
<?php endif; ?><?php if ($icons): ?>
<?php echo JLayoutHelper::render('joomla.content.icons', array('item' => $this->item, 'params' => $params, 'print' => $this->print)); ?>
<?php endif; ?>
</aside>
<?php endif; ?>
<!-- //Aside -->
It will look like this: http://prntscr.com/7v47jl2. I would need to take a closer look at your site and see this tagged item page. You can PM me URL and admin login info of your site and tell me the menu item which shows tagged items as your screenshot.
1 user says Thank You to Saguaros for this useful post
linnea Friendlinnea
- Join date:
- April 2015
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 24
- Thanked:
- 1 times in 1 posts
August 10, 2015 at 8:39 am #659524Thank you so much Saguaros, solution #1 worked like a dream! I’m sorry I didn’t notice earlier, I thought I had subscribed to this thread so I would receive an e-mail alert when I had received a response but for reason I didn’t. Would you still be able to look at issue #2 or should I post a new thread since this one is so old?
linnea Friendlinnea
- Join date:
- April 2015
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 24
- Thanked:
- 1 times in 1 posts
August 10, 2015 at 8:39 am #744989Thank you so much Saguaros, solution #1 worked like a dream! I’m sorry I didn’t notice earlier, I thought I had subscribed to this thread so I would receive an e-mail alert when I had received a response but for reason I didn’t. Would you still be able to look at issue #2 or should I post a new thread since this one is so old?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 11, 2015 at 2:43 am #659733No problem! You can PM me URL and admin login info of your site and tell me the menu item which shows tagged items as your screenshot.
linnea Friendlinnea
- Join date:
- April 2015
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 24
- Thanked:
- 1 times in 1 posts
August 19, 2015 at 11:13 am #663023Hi Saguaros,
I realize that we have two threads going right now, but I didn’t want to confuse things so I thought I’d post here for this specific issue.
Have you found a way to add the published date to the pages on my site which display tagged items? I guess this would make the display look very similar to the standard category blog, but the menu points would feed from tags and not categories, which is very important for us since many of our articles belong in different areas and we do not want to have to duplicate them multiple times in order to put them in multiple categories.
linnea Friendlinnea
- Join date:
- April 2015
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 24
- Thanked:
- 1 times in 1 posts
August 19, 2015 at 11:13 am #745967Hi Saguaros,
I realize that we have two threads going right now, but I didn’t want to confuse things so I thought I’d post here for this specific issue.
Have you found a way to add the published date to the pages on my site which display tagged items? I guess this would make the display look very similar to the standard category blog, but the menu points would feed from tags and not categories, which is very important for us since many of our articles belong in different areas and we do not want to have to duplicate them multiple times in order to put them in multiple categories.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 20, 2015 at 2:45 am #663105Hi linnea,
By default, the tagged items don’t show date info there, you will have to customise / override com_tags to list it out.
Below is my workaround:
– Go to the file: /root/templates/uber/html/com_tags/tag/default_items.php
– Underneath this line of code:
<?php echo $item->event->afterDisplayTitle; ?>
add this code to show published date:
<div class="tag-published-date">
<?php echo $this->escape($item->core_publish_up); ?>
</div>
It will look like this: http://prntscr.com/86or4l
1 user says Thank You to Saguaros for this useful post
linnea Friendlinnea
- Join date:
- April 2015
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 24
- Thanked:
- 1 times in 1 posts
August 24, 2015 at 9:03 am #664882Thank you very much, that worked perfectly!
I do realize that this is not a default feature. I do hope that it is built into Joomla in the future. In many ways it seems like the Tag feature is in the beginning stages and still needs a bit of work to be fully functional.
linnea Friendlinnea
- Join date:
- April 2015
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 24
- Thanked:
- 1 times in 1 posts
August 24, 2015 at 9:03 am #746384Thank you very much, that worked perfectly!
I do realize that this is not a default feature. I do hope that it is built into Joomla in the future. In many ways it seems like the Tag feature is in the beginning stages and still needs a bit of work to be fully functional.
-
AuthorPosts
This topic contains 10 replies, has 2 voices, and was last updated by linnea 9 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum