127 Posts
Cappu
9 years ago
8
Topic
Hello,

just bought the Code Pack. - May I do something like this:

I do have a List & Search Type seb_table view. - In one row I do have a value I like to manipulate just before it gets rendered, i. e. the Article Title.

I defined a Before Render Field with some simple code added to the textarea: $fields['art_title']->value = 'test';

I do have another Field another Field in the table layout to show the Article Title. -

I can see the Article Title - but no manipulated string.

What am I missing? - Is this approach the best to choose to manipulate fields before render them to a table?

Thanks for any hint.

Bernhard


Get a VIP membership
127 Posts
Cappu
9 years ago
0
Level 1
Hi zwergo,

thanks for the example code.
My before render seems not to do anything. :-(

Right now I do understand the Before Render like this:

  • In the textarea: This is for PHP code. No <?php ?> necessary.
  • I may access a fiels value by using $fields['one']->value
  • I may overwrite it by using $fields['one']->value = $newvalue
  • If the original value get used to render the page it uses the overwritten one

It seems not to be correct. What is wrong? Is there any documentation?

127 Posts
Cappu
9 years ago
0
Level 1
Of course I tried to HTML overwrite the seb_table. But this seems not to be possible link
127 Posts
Cappu
9 years ago
0
Level 1
Coming closer to a solution to to this thread link
127 Posts
Cappu
9 years ago
0
Level 1
Is this possible with Code Pack, anyways:

--> Manipulate a field before output it in seb_table list view template?

Thanks for any hint.

Kind regards,

Bernhard




127 Posts
Cappu
9 years ago
0
Level 1
Hi Zwergo,

thanks for coming back onto this: No, no output - nowhere on th Lists & Searches Type. It very limited to style the lists, anyways?!
No HTML overwrite and no way to modify it with Code Pack, is this right?


127 Posts
Cappu
9 years ago
2
Level 1
Hi Zwergo,

thanks for the hint. - I saw it the other day and used it for my Yootheme Widgetkit Slideshow. I used in in an Forms & Content Type overwrite.

Let me know if you someday managed to use Codepack on a Lists & Search Type successfully.

Best


1281 Posts
Bucklash
7 years ago
1
Level 2

Hi guys

Any luck?

7 years ago
0
Level 3

Did you guys tried to call an external function, with require_once?

Get a VIP membership