Drupal dropdown translated order - drupal

Drupal 7 plus Internationalization (won't list all modules as quite a lot!).
I have various dropdowns, including exposed view filters based on taxonomy references. These are all translated perfectly however they are always presented in the order of the taxonomy terms in the default language (English). The following shows what I mean, the English is in order but the Spanish appears in the English order
English Spanish (as is) Spanish (should be)
======= =============== ===================
bike bici bici
book libro coche
business empresa empresa
car coche libro
question is how to get the Spanish sorted in to alphanumeric order? (some of these dropdown have 30 or 40 items in a near random order and look awful!)
edit: incorrect additional information removed

rather embarrassingly I have just located a sort in my own code that causes the above behaviour! (Hangs head in shame and exits stage right)

Related

Tranlsated Node is showing in the defaiult language

I have a multilanguage site with its content translated.
I have a problem with some nodes which although the are translated they are showing only the default language.
For example:
http://theacropolismuseum.gr/node/815
http://theacropolismuseum.gr/en/node/815
They both shows the Greek translation.
On the other hand these two nodes below are correct:
http://theacropolismuseum.gr/en/node/154
http://theacropolismuseum.gr/node/154
The difference between these two pairs is that the first pair contains custom paragraph, but I think I have configure them correctly for translation.

Problems with showing rating stars in google search results - Wordpress site

I have the problem with displaying stars in google-search results.
Here, as an example, there are two links to the sites (driving schools in Denmark)
1. https://www.koereskoleoplysningen.dk/listing/skrivers-koreskole-allerod/ (rating stars not working)
2. https://www.koereskoleoplysningen.dk/listing/trekantens-koreskole-vejle/ (rating stars working).
I checked the validity of the star rating (using google search engine), by simply inputting in the mentioned cases:
1. koereskole oplysningen Skrivers Køreskole – Allerød
2. koereskole oplysningen Trekantens Køreskole – Vejle
The first school shows only the link, whereas the second one displays overall rating with total number of ratings correctly. I used https://search.google.com/structured-data/testing-tool to check if both sites contains AggregateRating field (it contains all information about ratings) and both pages returns the same correct results (all pages contains AggregateRating field).
This issue occurs also for other sites (I have more than 1000 listings and some of them as the mentioned examples, show ratings stars properly, some of them not).
I validated the sitemaps, website ranker show me the highest results, Yoast SEO is configured and also didn't return me any errors.
Well, from our analysis there are three factors at play:
1 Trusted review sites
2 Schema markup
3 Site authority
Source

Drupal 8: How do I create a content reference/textarea compound field?

I have a company content type being used on a website-in-progress. Companies consist of a company name, name sorting mechanism, logo image and URL. I have a requirement to show companies taking part in different use cases in various parts of the website.
Challenge:
In the past I used a company content type for a "corporate members" list on a page, also assigning a "member level" field. But then, companies started being listed as event sponsors with specifics for what they were sponsoring, also with different membership levels in a "corporate giving club". It was messy while added/included in the old company content type. It caused confusion for content editors and developers.
Possible Solution:
In other content types, create compound fields such as "Sponsors", "Corporate members", "Donors", select lists with company entities, or sponsorship detail text areas with company entities. That may keep companies flexible and not messy (keeping company just a company).
Progress:
I found the Double field module, splitting core fields up into two separate parts. This is almost what I'm looking for, providing compound field sets. However, it won't allow references to be selected and is out of the scope of this project per this issue. I'm finding a lot of Drupal 7 examples, but not much Drupal 8 yet.
I'm starting to dig into the examples for developers module for inspiration and will post a solution unless you beat me to it. I'm also open to alternative ideas.
What is the best way to proceed? Specific code examples are not required. I would accept clues that lead me to a final working solution.
The solution turned out to be simpler than creating a custom module.
The Field Collection module allowed for the simple creation of compound fields containing any number and most (if not all) field types, including reference fields. It's also available as a Drupal 8 module (alpha at the time of writing, seems to work fine).

Drupal taxonomy popular list

There are about 70 categories in Drupal 7 with taxonomy. I would like to get list 20 of the most popular(most used), sorted from most popular to the least placed in block.
Dogs (200 Entries)
Cats (120 Entries)
..
Is there a module that has this functionality, or how would you get it done.
You can use tagadelic module.
With a bit of CSS you can change the modules' display to not render popular tags larger then less popular tags.
And with a simple theme-override you can add the amount (200) of usage to the output too.

Drupal Content Type with Hundereds of fields

I have a site where users can suggest a restaurant / Bar. The form will have hundreds of form fields, ex Bears can be selected and in bears there will be several brands and each brand will have the prices for Mug, Bottle, Half-pint, Pint, Jug, Bucket of 5, Tower, each will be having 2 prices one is happy hour and other is regular. Once the user data is submitted, admin will approve it and depending on such data we should build the front-end(Bears Section, Spirits Section, etc..) of the site.
What will be the beast possible way to build the form with CCK. The mockup can be viewed at http://indiantourplaces.com/mockup.gif
This is Drupal 7 only, but it sounds like http://drupal.org/project/properties could be helpful.
It is basically a single field that consists of an unlimited amount of properties (key value pairs) grouped into categories. Categories/Properties can either be added dynamically or it can be limited to predefined templates.
Additionally, entities with attached properties can be compared.
I don't think it would be wise to leave it to admins to keep a beer list or spirit list up to date. You should consider having your site users make such a list for you by taking advantage of the Drupal Taxonomy functionality. You could have a beer brand field that would populate a beer brand vocabulary.
Btw it's "beer" not "bear" a bear happens to be a type of beast :P
I think i might be interested in that module
http://drupal.org/project/webform

Resources