Keyword

Inserting a country list drop down

  • Alain d'Aboville
  • Alain d'Aboville's Avatar Topic Author
  • Offline
  • New Member
More
11 years 7 months ago #110263 by Alain d'Aboville
Inserting a country list drop down was created by Alain d'Aboville

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

More
11 years 7 months ago #110264 by william white
Replied by william white on topic Re: Inserting a country list drop down
This would require a custom script, and be pretty complicated for an existing content base. It would be easier if you were starting from scratch with only one xtra field
It would be an good idea to create a plugin that uses existing code that you can find in many exeetnison such as akeeba subs, to present the list for you, and stuff the value selected into the k2 xtra field.

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

  • Alain d'Aboville
  • Alain d'Aboville's Avatar Topic Author
  • Offline
  • New Member
More
11 years 7 months ago #110265 by Alain d'Aboville
Replied by Alain d'Aboville on topic Re: Inserting a country list drop down
Thks for the swift answer. I am starting from scratch.
How easier would it be?
I remember doing this for the CB (Community Builder) and the SQL table was just the country fields.
Thank you,

Alek

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

More
11 years 7 months ago #110266 by william white
Replied by william white on topic Re: Inserting a country list drop down
easy is relative. i know a couple of people who do k2 plugins, i will pass the idea along to them

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 7 months ago #110267 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Inserting a country list drop down
I can help if you send the csv file of countries.

I will convert it to the appropriate format and send it to insert directly in the database.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • Alain d'Aboville
  • Alain d'Aboville's Avatar Topic Author
  • Offline
  • New Member
More
11 years 7 months ago #110268 by Alain d'Aboville
Replied by Alain d'Aboville on topic Re: Inserting a country list drop down
Thank you very much. :)
Here is the CSV file with just the country names.
How will add the required infos? :unsure:
Thanks a million.

Alek

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

  • Alain d'Aboville
  • Alain d'Aboville's Avatar Topic Author
  • Offline
  • New Member
More
11 years 7 months ago #110269 by Alain d'Aboville
Replied by Alain d'Aboville on topic Re: Inserting a country list drop down
Hi Mohamed,
Here is the country fil in ZIP format, the only accepted by the Forum.
Thansk again,
Alek
Attachments:

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 7 months ago - 11 years 7 months ago #110270 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Inserting a country list drop down
Hi Alek,

Please find the attached file

1- If you have not added the country extra field, please create it with only one country, it will be enough.
2- Uzip the file and open the txt file.
3- copy the text in the file.
4- go to phpmyadmin.
5- open the '#_k2_extra_fields' table and edit the row of th country extra file.
6- paste the copied text into the 'value' column of this field.
7- Save

Now you have full country dropdown list.

Attachment not found


Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Attachments:

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

  • Alain d'Aboville
  • Alain d'Aboville's Avatar Topic Author
  • Offline
  • New Member
More
11 years 7 months ago #110271 by Alain d'Aboville
Replied by Alain d'Aboville on topic Re: Inserting a country list drop down
:) Thanks a million! Mohamed!!!
It worked easily and I now have all the countries in my drop down field. How dod you enter the Value number etc... needed??

I'm working on a local server on the next version of my site www.donalek.com about chocolate, which uses K2. So you can't see the result of work yet, but it will be online by end of March latest.
Thanks again,
Alek

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 7 months ago #110272 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Inserting a country list drop down
No problem Alek ;)

I did it with some sql statements, within 15 mins it was ready.

Looking forward to have a look at your new site.

I'm ready in case you need any help.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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


Powered by Kunena Forum