Keyword

Block K2 component views or layouts

  • Orestis Polychronakis
  • Orestis Polychronakis's Avatar Topic Author
  • Offline
  • New Member
More
12 years 3 weeks ago #103172 by Orestis Polychronakis
Block K2 component views or layouts was created by Orestis Polychronakis
Hello there.

Is there any way to block some views or layouts of the k2 component. Lets say I only want the item view to be available only and not the category view. Is there any way to do this through the back end without altering code or filenames?

Thanks

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

More
12 years 3 weeks ago - 12 years 3 weeks ago #103173 by william white
Replied by william white on topic Re: Block K2 component views or layouts
Are you trying to keep someone from typing something like
YourSite.com/index.php?option=com_k2&view=
itemlist&layout=category&task=category&id=7&Itemid=23

into their browzer and seeing a category view?
I do not know of any k2 settings except public and registared that restrict what is served out
You may be able to create an override and assign it to the category in question and delete the category.php file from the override, but an error page would result
If you have sef turned on, things may get more complicated

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

  • Orestis Polychronakis
  • Orestis Polychronakis's Avatar Topic Author
  • Offline
  • New Member
More
12 years 3 weeks ago #103174 by Orestis Polychronakis
Replied by Orestis Polychronakis on topic Re: Block K2 component views or layouts

William White wrote: Are you trying to keep someone from typing something like
YourSite.com/index.php?option=com_k2&view=
itemlist&layout=category&task=category&id=7&Itemid=23

into their browzer and seeing a category view?
I do not know of any k2 settings except public and registared that restrict what is served out
You may be able to create an override and assign it to the category in question and delete the category.php file from the override, but an error page would result
If you have sef turned on, things may get more complicated

Yes maybe that could be a solution. But how can I configure, lets say the category view, to be rendered only in the registered users?

Thanks

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

More
12 years 3 weeks ago #103175 by Lefteris
Replied by Lefteris on topic Re: Block K2 component views or layouts
Make a system plugin. Check what the view is and handle as you wish.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Orestis Polychronakis
  • Orestis Polychronakis's Avatar Topic Author
  • Offline
  • New Member
More
12 years 3 weeks ago #103176 by Orestis Polychronakis
Replied by Orestis Polychronakis on topic Re: Block K2 component views or layouts
Ok that could be a solution. I have also posted another problem I have about module parameters. Is it possible to alter a module parameter on the fly in the same plugin? Lets say if we are viewing a category view of k2 to take the id of the category and use it for the module parameter

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


Powered by Kunena Forum