Keyword

[SOLVED] Adding "More" in the Latest items on homepage

  • Abdul Sattar
  • Abdul Sattar's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago - 11 years 2 weeks ago #118230 by Abdul Sattar
Hello everyone!

Can anyone please help me on this.

How can i add "more" after the list of the links which would direct to the respective category on homepage in "Latest items from (one or more) users or categories"...............

Please see below link

buddysinstitute.com/images/homepage.jpg


Thanks for your time

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

  • Abdul Sattar
  • Abdul Sattar's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118231 by Abdul Sattar
Replied by Abdul Sattar on topic Re: Adding "More" in the Latest items on homepage
Really appreciateif someone could reply on this.....thanks!

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 2 weeks ago #118232 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Adding "More" in the Latest items on homepage
I think if you configure a category to display specific number of links and you have more items in this category, K2 will display the more link automatically.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • Abdul Sattar
  • Abdul Sattar's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118233 by Abdul Sattar
Replied by Abdul Sattar on topic Re: Adding "More" in the Latest items on homepage
just saw the post..let me give a quick try.....


Jazakallah Khaira

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

  • Abdul Sattar
  • Abdul Sattar's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118234 by Abdul Sattar
Replied by Abdul Sattar on topic Re: Adding "More" in the Latest items on homepage
Im sorry but nt able to figure out how......can you please let me know..how can i achieve this.....

I just want a more button below the links....whic when clicked will take to the respective category...

Thanks

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 2 weeks ago #118235 by Yiota
You will have to modify the latest.php file a bit in order to achieve this.

First you will have to use K2 template overrides if not using already. Read here getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates on how the K2 overrides are used.

Then edit the latest.php file and in the bottom of this block

<div class="latestItemList">

add
<a class="latestItemMore" href="<?php echo $category->link; ?>"><?php echo JText::_('K2_VIEW_ITEMS'); ?></a>

This will show a more link button right under the list of items in this view.

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

  • Abdul Sattar
  • Abdul Sattar's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118236 by Abdul Sattar
Replied by Abdul Sattar on topic Re: Adding "More" in the Latest items on homepage
Thanks Yiota.....will try today.....and update!

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

  • Abdul Sattar
  • Abdul Sattar's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118237 by Abdul Sattar
Replied by Abdul Sattar on topic Re: Adding "More" in the Latest items on homepage
Thank you so much........worked!

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


Powered by Kunena Forum