10 Posts
kkdahl
6 years ago
3
Topic

Quick question: Having a save and redirect button, with a custom variable:

If the custom variable is static, e.g. RttId=123, the redirect works fine, if the custom variable is dynamic, e.g. RttId=$cck->getValue('art_id') it doesn't work

The art_id is present in the site form (all though hidden), and this operation is never done, when creating a new article - only when editin existing ones, so the art_id is never empty.

Get a VIP membership
4229 Posts
Kadministrator
6 years ago
0
Level 1

$cck->get does not work on forms, it only works on content pages

10 Posts
kkdahl
6 years ago
1
Level 1

Is there any way of getting a "Save form and redirect to another page"-button to work, where the redirect contains the article id of the article your are redirecting from...

1283 Posts
Bucklash
6 years ago
0
Level 2

Have you tried $fields[‘art_id’]->value

Get a Book for SEBLOD