- Posts: 12
COMMUNITY FORUM
Disable K2 Item List From Being Visible
- Trevor J Ellis
- Topic Author
- Offline
- New Member
Less
More
3 years 5 months ago #179027
by Trevor J Ellis
Disable K2 Item List From Being Visible was created by Trevor J Ellis
Hello, we would like to stop the K2 item list from being visible as we have other sites that need to have some content be password protected.
How do we make the "/itemlist" pages on our sites hidden from public access? Example - how do we hide josephfilmreviews.co.uk/itemlist ?
Thanks in advance.
How do we make the "/itemlist" pages on our sites hidden from public access? Example - how do we hide josephfilmreviews.co.uk/itemlist ?
Thanks in advance.
Please Log in or Create an account to join the conversation.
- Trevor J Ellis
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
3 years 5 months ago #179029
by Trevor J Ellis
Replied by Trevor J Ellis on topic Disable K2 Item List From Being Visible
Thanks for the speed of your response. Is there nowhere in the K2 settings (in Global Config>K2 etc...) where this can changed? We DON'T really like to edit files unless it's absolutely necessary for update compatibility reasons.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
3 years 5 months ago #179051
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Disable K2 Item List From Being Visible
Use something like this www.joomlaworks.net/forum/k2-en/61866-display-k2-item-with-registered-access-level-in-category-view#178961 but adapted to the itemlist view.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Trevor J Ellis
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
3 years 5 months ago - 3 years 5 months ago #179063
by Trevor J Ellis
Replied by Trevor J Ellis on topic Disable K2 Item List From Being Visible
Thank you for your response. However, we've found an easy solution by adding some custom.css code.
You put:
If you then have specific pages where you need to display an item list, then it's the following:
Thanks in advance.
You put:
html.com_k2.view-itemlist {display: none;}
If you then have specific pages where you need to display an item list, then it's the following:
html.com_k2.view-itemlist {display: none;}
html.com_k2.view-itemlist.itemid-[ITEM-ID-HERE].[PAGE-NAME-HERE] {display: inline-block!important;}
Thanks in advance.
Last edit: 3 years 5 months ago by Trevor J Ellis.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
3 years 5 months ago #179096
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Disable K2 Item List From Being Visible
Whatever works for you.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.