Keyword

Adding tags in article editing

  • cyfcaloryfrio
  • cyfcaloryfrio's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 5 months ago - 8 years 5 months ago #153471 by cyfcaloryfrio
Adding tags in article editing was created by cyfcaloryfrio
In an article editing page, when you associate tags to the article, how can you configure this selection list to:
1. search all around the tag, not only the beginning (like in category seleccition can do)
2. show tags in alphabetic order

Thanks
Last edit: 8 years 5 months ago by cyfcaloryfrio. Reason: add explanation

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #153491 by Krikor Boghossian
Replied by Krikor Boghossian on topic Adding tags in article editing
Hello,

You will need to hack the core of K2 in order to achieve this. I would not recommend performing this edit.

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

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
8 years 5 months ago #153504 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Adding tags in article editing
Hi,
The selection tag mechanism is totally different than the categories.
Categories are preloaded in a tree structure inside an html select element that is rendered by bootstrap offering you the search functionality you mentioned.
On the other hand tags are loaded on demand with ajax request every time you type in the appropriate field. In order for this to work you will need the following

- create a query that loads all tags in alphabetic order.
- fetch the data from the query and display it in a select element that is the same type as the categories select element.
- Disable the old tag input.
- Finally you must handle the data during the save-update procedure of the K2 item.

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