Keyword

Hide itemlist from user profile page

  • Tim Taylor
  • Tim Taylor's Avatar Topic Author
  • Offline
  • New Member
More
7 years 1 month ago #164517 by Tim Taylor
Hide itemlist from user profile page was created by Tim Taylor
Hi,

This seems like a simple request which I expected to find a switch for in K2 global settings so apologies if I am missing something.
I am trying to stop the itemlist (of items created by the user) being displayed on the user's profile page (including the pagination controls under the list).

I have played with the K2 Parameters > Layout & view options for user (author) pages and I have only the Name, Image (avatar), Description and 'Enable K2 plugins' set to 'Show'. Everything else is set to 'Hide' and the 'Item Count on user pages' field is set to '0'.
This gives me the static profile page I want, followed by a large white space and at the bottom, pagination buttons. It is as though the item list is still present but its contents (except for the pagination controls) are hidden.

I would prefer not to use CSS for this and just disable the itemlist specifically when displayed on user profile pages - is this possible?

Running K2 v2.8.0 and latest Joomla 3.8.1.

Thanks in advance.

T

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

More
7 years 1 month ago #164518 by william white
Replied by william white on topic Hide itemlist from user profile page
Please send us a link to inspect.
If you do not want to use css then you will need to override the view and remove the div's that are causing the space

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 month ago #164525 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide itemlist from user profile page
This can only be achieved by overriding the user.php file.
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.

  • Tim Taylor
  • Tim Taylor's Avatar Topic Author
  • Offline
  • New Member
More
7 years 1 month ago #164541 by Tim Taylor
Replied by Tim Taylor on topic Hide itemlist from user profile page
Hi,

Thanks both for your replies.
I took William's advice and just overrode the CSS using immediate sibling operators to ensure that no other itemlists were affected. I use a Gavick template so added the custom CSS to override.css, as follows:

div.itemAuthorData + section.itemList, div.itemAuthorData + section.itemList + nav.pagination {
display:none;
}

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 month ago #164556 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide itemlist from user profile page
Nice to hear that you sorted it out.

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