Custom attributes, qtranslate-x
-
Hi,
I’m living in Japan and we need event information in Japanese and in English. Installed the eme-qtranslate-x package and it works almost fine.
It would be great to have language flags before the custom attribute block – and to be able to maintain the custom attribute text in different languages.
I did a bit of research.
1) Added “id=”loc_attribute” to eme_location.php, line 371
2) Added “id=”att_<?php echo $count; ?>” to eme_attributes, line 99
3) “edit_location” block in i18n-config.json now looks like this:
“edit_location”:{
“pages”: { “admin.php”: “page=eme-locations&eme_admin_action=edit_location” },
“anchors”: {
“titlediv”: {
“where”: “before”
},
“loc_description”: {
“where”: “before”
},
“loc_attributes”:{
“where”:”before”
}
},
“forms”: {
“editloc”: {
“fields”: {
“title”: [],
“content”: [],
“location_address”:[],
“location_town”: [],
“att_1”:[],
“att_2”:[]
}
}
}
},And this works.
Problem here is that the number of custom attributes is unlimited while we have to list the “att_$count” fields in the json file.
Would it be possible to define a max of custom attributes in the eme configuration and then to generate the corresponding number of “att_$count”?As a first step – if you could add the id’s to eme_location.php and eme_attributes.php that would help me a lot!
Cheers,
Bernd
- The topic ‘Custom attributes, qtranslate-x’ is closed to new replies.