Ahmed Eltanahy
Ahmed Eltanahy

Reputation: 29

Passing values between expression engine templates

Any idea about How can I pass hidden values between 2 expression engine templates?

I don't want to use PHP code, is there any plugin or module?

Thanks

Upvotes: 1

Views: 1024

Answers (2)

Peter Lewis
Peter Lewis

Reputation: 1085

Highly recommend using Session Variables.

On your first page:

{exp:session_variables:set name="talking" value="nonsense"}

On your second page:

{exp:session_variables:get name="talking"}

Then you can always delete it afterwards:

{exp:session_variables:delete name="talking"}

If you want to deal with POST variables and set it on the first page via a form submission, then you can get it easily with Mo' Variables:

{post:talking}

Upvotes: 2

Tim C
Tim C

Reputation: 635

What you may be looking for is an add-on called Stash . I think that would do exactly what you need!

Upvotes: 0

Related Questions