Keyword

make a list simple to multiple !

  • Alaabouch
  • Alaabouch's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 5 months ago #176319 by Alaabouch
make a list simple to multiple ! was created by Alaabouch
Hello,

I have an additional field in the form of a simple list and which contains names of drugs that I use them from the back office of the platform to create articles but over time I realized that the selection of these drugs must be multiple. my question is can we make this multiple field select without I start again from the beginning. that is, do I have to fill in the field with the names of drugs ?

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

  • Alaabouch
  • Alaabouch's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #176323 by Alaabouch
Replied by Alaabouch on topic make a list simple to multiple !
no one can help me please !

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

More
4 years 4 months ago #176335 by JoomlaWorks
Replied by JoomlaWorks on topic make a list simple to multiple !
Change the type of the extra field. Simple.

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

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

  • Alaabouch
  • Alaabouch's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #176346 by Alaabouch
Replied by Alaabouch on topic make a list simple to multiple !
Hi,

how to do it ? I point out that the field has been created and I don't want to start all over again from the beginning. if you mean change it from the database and replace "Select" with "multipleselect"! I already tried with an additional test field but it didn't work. the number 1 is always displayed instead of the terms added in the field !

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

More
4 years 4 months ago #176352 by JoomlaWorks
Replied by JoomlaWorks on topic make a list simple to multiple !
Edit the extra field under "Extra Fields" in the K2 backend. Can't get any simpler...

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

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

  • Alaabouch
  • Alaabouch's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #176358 by Alaabouch
Replied by Alaabouch on topic make a list simple to multiple !
Hi,

Yes I have already tried this method but it did not work for this field exactly. when I change to multiple list and I click on saved, it fails and it leaves the K2 component! I have tried for others and it works well. but there is a particularity in this field, it is that it contains almost 7305 line. it is the only one that contains so many words. I wonder if there is a possibility to modify from the database? so we can force it to modify for multiple list !

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

More
4 years 4 months ago #176361 by JoomlaWorks
Replied by JoomlaWorks on topic make a list simple to multiple !
Using phpMyAdmin or some similar tool, locate the #__k2_extra_fields table and the relevant entry for that extra field. As you can see, there is a "type" column. Change from "select" (or whatever you have) to "multipleSelect".

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

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

  • Alaabouch
  • Alaabouch's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #176368 by Alaabouch
Replied by Alaabouch on topic make a list simple to multiple !
Hi,

it worked from the database. except that the field is not displayed to the user if and only I open the article and I re-choose the selected word from the administration page. knowing that I have almost 7000 thousand article !!!

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

  • Alaabouch
  • Alaabouch's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #176370 by Alaabouch
Replied by Alaabouch on topic make a list simple to multiple !
I would like to know how can we widen the multiple list fields a little, it's too tight to choose between the lines

zupimages.net/up/20/27/1tfq.jpg

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

More
4 years 4 months ago #176372 by JoomlaWorks
Replied by JoomlaWorks on topic make a list simple to multiple !
You should actually be seeing this: jmp.sh/cGQoZ9a

So something (another extension or custom CSS added by someone) is probably attaching/changing K2's styling. In any case, it's a matter of CSS styling for select elements with the attribute "multiple".

Fotis / 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