- Posts: 46
COMMUNITY FORUM
k2 2.2.3 fetch extra field by ALIASNAME / joomfish
- ATHANASIOS ILIOPOULOS
-
Topic Author
- Offline
- Senior Member
Less
More
12 years 4 months ago #108791
by ATHANASIOS ILIOPOULOS
k2 2.2.3 fetch extra field by ALIASNAME / joomfish was created by ATHANASIOS ILIOPOULOS
My message has to do with 2.2.3 K2 update and particularly with the option to individually fetch extra fields (names & values) by ALIASNAME which is really useful!
But i think that something is not working 100% for multilingua sites using joomfish for translation...
I am using Joomla 1.5.26 and joomfish for localising the content...
The expression
$this->item->extraFields->EXTRAFIELDALIASHERE->name/value
does not seem to function for other than the default language!
For example:
Lets say we have a bi-lingual site in Greek (default) and English locales.
Lets create an extra field in Default locale "Πεδίο 1" with alias name 'field1'
If i try to translate it the only option i have is to translate its name to lets say 'Extra Field 1' (different than its alias) ...
Then in my custom template if i try to fetch it like:
$this->item->extraFields->field1->value
only the Greek locale works ... In English locale i receive a NULL value!
So, is it a matter of joomfish or by updating the content element file with a field named alias is going to work?
But i think that something is not working 100% for multilingua sites using joomfish for translation...
I am using Joomla 1.5.26 and joomfish for localising the content...
The expression
$this->item->extraFields->EXTRAFIELDALIASHERE->name/value
does not seem to function for other than the default language!
For example:
Lets say we have a bi-lingual site in Greek (default) and English locales.
Lets create an extra field in Default locale "Πεδίο 1" with alias name 'field1'
If i try to translate it the only option i have is to translate its name to lets say 'Extra Field 1' (different than its alias) ...
Then in my custom template if i try to fetch it like:
$this->item->extraFields->field1->value
only the Greek locale works ... In English locale i receive a NULL value!
So, is it a matter of joomfish or by updating the content element file with a field named alias is going to work?
Please Log in or Create an account to join the conversation.
- chilly_bang
-
- Offline
- Junior Member
Less
More
- Posts: 38
12 years 4 months ago #108792
by chilly_bang
Replied by chilly_bang on topic Re: k2 2.2.3 fetch extra field by ALIASNAME / joomfish
i would try to create k2 templates for each language, than create menu points for each language and assign templates to menu points.
Please Log in or Create an account to join the conversation.
- ATHANASIOS ILIOPOULOS
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 46
12 years 4 months ago #108793
by ATHANASIOS ILIOPOULOS
Replied by ATHANASIOS ILIOPOULOS on topic Re: k2 2.2.3 fetch extra field by ALIASNAME / joomfish
Thanks for replying ...
This is an issue related to Joomla 1.5 ...
The solution you propose seems to be in the correct direction (at least i could try) ... BUT:
a) it doubles at least the work to be done since individual menu items should be parameterized (in joomla menu system but also into joomfish translation)...
and
b) can i assign different template to menu item translation in Joomla 1.5?
I guess that when you say "use different content templates for each language" you mean to just duplicate each custom template and make the calls:
$this->item->extraFields->EXTRAFIELDALIASHERE->name/value
differently for each translation...
Is that correct?
This is an issue related to Joomla 1.5 ...
The solution you propose seems to be in the correct direction (at least i could try) ... BUT:
a) it doubles at least the work to be done since individual menu items should be parameterized (in joomla menu system but also into joomfish translation)...
and
b) can i assign different template to menu item translation in Joomla 1.5?
I guess that when you say "use different content templates for each language" you mean to just duplicate each custom template and make the calls:
$this->item->extraFields->EXTRAFIELDALIASHERE->name/value
differently for each translation...
Is that correct?
Please Log in or Create an account to join the conversation.
- chilly_bang
-
- Offline
- Junior Member
Less
More
- Posts: 38
12 years 4 months ago - 12 years 4 months ago #108794
by chilly_bang
yes, this is correct.
But... first of all i would ask in the joomfish forum, how to add to extra field call, like you have: $this->item->extraFields->EXTRAFIELDALIASHERE->name/value the right (correlating) translation. I'm sure it is possible, but don't know how.
Replied by chilly_bang on topic Re: k2 2.2.3 fetch extra field by ALIASNAME / joomfish
I guess that when you say "use different content templates for each language" you mean to just duplicate each custom template and make the calls:
$this->item->extraFields->EXTRAFIELDALIASHERE->name/value
differently for each translation...
yes, this is correct.
But... first of all i would ask in the joomfish forum, how to add to extra field call, like you have: $this->item->extraFields->EXTRAFIELDALIASHERE->name/value the right (correlating) translation. I'm sure it is possible, but don't know how.
Please Log in or Create an account to join the conversation.