Keyword

Front-end add new article - avoid categories selec

  • Udi K
  • Udi K's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #123851 by Udi K
Hi,

I use K2 categories and items, selected from the main menu.

When user selects a category, he sees all articles and can add new article.

Selecting "Add Item" brings the K2 edit screen with all categories, so the user can select another category.

How can I avoid it?

Thanks

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #123852 by Yiota
You can limit the user group's access to the categories you actually need them to add/edit items.

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

  • Udi K
  • Udi K's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #123853 by Udi K
Thanks - but it doesn't prevent the user selecting another authorized category although he currently adds K2 item when he is at another category.

I want that when he is in specific category any new item will be added to that category.

Please advise.

Udi

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #123854 by Yiota
I don't think you can do that. You can disable the selection by css, though.

Add this in your template's css file.

table.adminFormK2 tr td.adminK2RightCol select#catid {
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none;
}

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

  • Udi K
  • Udi K's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #123855 by Udi K
Hi,

Thanks a lot - we check it.
I'll inform if it works

:ohmy:

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #123856 by Yiota
OK. Let me know. :)

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

  • Udi K
  • Udi K's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago #123857 by Udi K
Hi,

Sorry for the delay.

We solved it internally and it works fine.

It means that adding an item within the category, the selected category is displayed automatically.

Thank you.

Udi

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


Powered by Kunena Forum