Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K2 Extra Fields Translation not stored #127

Open
harrybevers opened this issue Jan 21, 2013 · 10 comments
Open

K2 Extra Fields Translation not stored #127

harrybevers opened this issue Jan 21, 2013 · 10 comments

Comments

@harrybevers
Copy link

Schermafbeelding 2013-01-21 om 10 38 41
The translation of the extra field label in K2 items is not being stored. From original: Original [{"id":"1","value":"2"}]
Only {[ is stored in the translation.

@akempkens
Copy link
Member

Does the K2 version you use support JoomFish 2.5 already? I know that in
the past they integrated some special code to work with JoomFish

2013/1/21 harrybevers [email protected]

[image: Schermafbeelding 2013-01-21 om 10 38 41]https://f.cloud.github.com/assets/1586304/82530/9a1d0fa2-63ae-11e2-8534-665f01761b34.png
The translation of the extra field label in K2 items is not being stored.
From original: Original [{"id":"1","value":"2"}]

Only {[ is stored in the translation.


Reply to this email directly or view it on GitHubhttps://github.com/JoomFish/jf-future/issues/127.

@harrybevers
Copy link
Author

Hello Alex,

After posting and reading this: http://www.joomfish.net/forum/viewtopic.php?f=48&t=11732 I assumed support of K2 was working. However, reading your question makes me wonder if it is really so.
I already did post a question http://getk2.org/community/New-to-K2-Ask-here-first/167662-Joomfish-25-for-Joomla-25-and-K2 but nobody has answered yet.
I suppose there is no contact between JF developers and K2 developers, otherwise you would know. What is the best way to handle this, because both JF and K2 are major applications for me.

Regards,

Harry

@akempkens
Copy link
Member

Hi Harry,

The teams do have contacts sometimes. It isn't that easy to fix as the
storage of extra fields is something quite complex. Let us check as well
and with both of your links we have a good chance to improve both
extensions.

  • Alex

2013/1/21 harrybevers [email protected]

Hello Alex,

After posting and reading this:
http://www.joomfish.net/forum/viewtopic.php?f=48&t=11732 I assumed
support of K2 was working. However, reading your question makes me wonder
if it is really so.
I already did post a question
http://getk2.org/community/New-to-K2-Ask-here-first/167662-Joomfish-25-for-Joomla-25-and-K2but nobody has answered yet.
I suppose there is no contact between JF developers and K2 developers,
otherwise you would know. What is the best way to handle this, because both
JF and K2 are major applications for me.

Regards,

Harry


Reply to this email directly or view it on GitHubhttps://github.com/JoomFish/jf-future/issues/127#issuecomment-12495798.

@harrybevers
Copy link
Author

Hello Alex,

Good news: “If you didn't know already, Joom!Fish is http://www.joomfish.net/en/news/247-joomfish-250-stable-release-for-club-members now available for Joomla! 2.5 or newer (good news!) and we've adapted K2 to be fully compatible with this new release.”

http://getk2.org/blog/item/1145-k2-v263-released-new-performance-improvements http://getk2.org/blog/item/1145-k2-v263-released-new-performance-improvements

Best regards,

Harry

Van: Alex Kempkens [mailto:[email protected]]
Verzonden: maandag 21 januari 2013 13:35
Aan: JoomFish/jf-future
CC: harrybevers
Onderwerp: Re: [jf-future] K2 Extra Fields Translation not stored (#127)

Hi Harry,

The teams do have contacts sometimes. It isn't that easy to fix as the
storage of extra fields is something quite complex. Let us check as well
and with both of your links we have a good chance to improve both
extensions.

  • Alex

2013/1/21 harrybevers < mailto:[email protected] [email protected]>

Hello Alex,

After posting and reading this:
http://www.joomfish.net/forum/viewtopic.php?f=48&t=11732 http://www.joomfish.net/forum/viewtopic.php?f=48&t=11732 I assumed
support of K2 was working. However, reading your question makes me wonder
if it is really so.
I already did post a question
http://getk2.org/community/New-to-K2-Ask-here-first/167662-Joomfish-25-for-Joomla-25-and-K2but http://getk2.org/community/New-to-K2-Ask-here-first/167662-Joomfish-25-for-Joomla-25-and-K2but nobody has answered yet.
I suppose there is no contact between JF developers and K2 developers,
otherwise you would know. What is the best way to handle this, because both
JF and K2 are major applications for me.

Regards,

Harry


Reply to this email directly or view it on GitHub< https://github.com/JoomFish/jf-future/issues/127#issuecomment-12495798 https://github.com/JoomFish/jf-future/issues/127#issuecomment-12495798>.


Reply to this email directly or view it on GitHub https://github.com/JoomFish/jf-future/issues/127#issuecomment-12495934 .

https://github.com/notifications/beacon/X7lAL7E9HoLE0rSt-iS2SZJ5ceUMBN8l3sP-1BFZwDZgyW9bB0rTRuSMTYTPgU09.gif

@harrybevers
Copy link
Author

K2 is fully compatible, all is working, except the issue of the storage of the Extra Fields, as described in my first message.

@harrybevers
Copy link
Author

Hello,

This problem is, as far as i can see, unsolved. Also no comments from Joomlaworks. An change of Solution or Workaround?

Harry

@StVak
Copy link

StVak commented Jul 18, 2013

Same problem here, any solution found?

@harrybevers
Copy link
Author

Ik ben afwezig t/m 19 juli. Vanaf 17 juli kan ik uw e-mail weer beantwoorden.
Vriendelijk groet,

Harry Bevers
BCMI Leeuwarden

@batfich
Copy link

batfich commented Jul 18, 2013

Hello,

It is the solution of the problem: http://code.google.com/p/getk2/issues/detail?id=491
Make change in: yourhomedir/plugins/system/k2/k2.php

Regards,
Nikolay Tachev

@antoniocici
Copy link

Hello,

I think I've found the needle. In fact, I've solved the problem and now it works properly on my website.

The problem is inside the view, and only there. When the value is echoed, it contains double quotes, and here comes the struggle:

<input class="inputbox" type="text" name="refField_<?php echo $field->Name;?>" size="<?php echo $length;?>" value="<?php echo $translationContent->value; ?>" "<?php echo $maxLength;?>"/>

so the browser, at the first occurrency of " into the value, close the property, trunking the value.

What is the solution? Changing double quotes with a single quote at the row 272 of the /views/translate/tmpl/edit.php file as follow:

<input class="inputbox" type="text" name="refField_<?php echo $field->Name;?>" size="<?php echo $length;?>" value='<?php echo $translationContent->value; ?>' "<?php echo $maxLength;?>"/>

Just a small change :)

I've still a little problem with multiple extra fields, that are not correctly displayed into the front end side, but I hope to solve also that problem soon.

I hope that this solution can be helpful to someone else.

Antonio Cicirelli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants