WeStandWithUkraine

85 Posts
root
8 years ago
7
Topic
I like a lot playing with HTML typography, but the processed custom storage of a FieldX only can return this text: "Array" - Maybe bacause html typography does not know how to "decode" that array.

I've tried different methods with no success:

*value*
$cck->getHtml('myField');
$cck->getValue('myField');
$cck->getText('myField');
$cck->renderField('myField');

My fieldx is stored as Custom - Free.

This is not yet possible with seblod or am I doing something wrong?

Any help will be appreciated.
Best Regards.
Get a Book for SEBLOD
85 Posts
root
8 years ago
0
Level 1
Hello friends,

I've noticed in latest version (3.3.1) there is a changelog reference to this issue, but unafortunately it is still not working for me. I tried:

*value* with result:
Catchable fatal error: Object of class stdClass could not be converted to string in /plugins/cck_field_typo/html/html.php on line 58

$cck->getHtml('myField'); with blank result

$cck->getValue('myField'); with same text: "Array"

Is there another way to get the value since latest version from html typography?
Thank you for your help.
Best regards.

8 years ago
1
Level 1
Hi

we prefer using code fields which are much powerful than typo plugins:

For example for retrieving or setting the values inside a groupx you have to handle:

$fields['groupx_field']->value[$i]['group_field']->value


cyril


85 Posts
root
8 years ago
0
Level 2
Hi cyril,
Thanks for your reply.

It seems interesting, but which code field are you talking about?

Kind regards.
8 years ago
1
Level 1
85 Posts
root
8 years ago
0
Level 2
Thanks for your time,

That is a very useful plugin, but a little expensive for my purposes. I only want to get the value of a field, and HTML typography is done to make this possible.

As I said, latest version has a changelog line regarding this issue, maybe is still not solved at all.

Regards.
85 Posts
root
8 years ago
0
Level 1
This issue is marked as solved in 3.3.1 changelog, but it is still not working on version 3.3.2 :|

Best regards.
85 Posts
root
8 years ago
0
Level 1

For more info about this persistent issue, I've got this log:

With this HTML typography:

<a title="title" href="#id$cck->getValue('field_id');" data-lightbox="on"><span></span></a>

<div style="display: none;">
  <div id="id$cck->getValue('field_id');" style="width: 400px; height: 300px; overflow: auto;">$cck->getValue('other_field');</div>
</div>

I've got these errors:

Undefined index: field_name in /some/place/mysite.com/plugins/cck_field_typo/html/html.php on line 128
Array to string conversion in /some/place/mysite.com/plugins/cck_field_typo/html/html.php on line 130
Trying to get property of non-object in /some/place/mysite.com/plugins/cck_field_typo/html/html.php on line 128

Get a Book for SEBLOD