Content plugin filtering with a stored cookie?

cyberholic

Member
Good evening!
I am using this code within a Custom HTML module:
Code:
{fabrik view=details id=5 usekey=playlist_id rowid=234}
and everything works fine.

I know about the [ ] brackets to load a variable from within aURL in the address bar.
BUT: what i need would be something like this:

{fabrik view=details id=5 usekey=playlist_id rowid=$_COOKIE["mySavedCookie"]}

In other words: i want the value to come from a previously saved cookie.
Is this possible!?

Big hugs and hava a great night!
Carlos
 
You could customise your template to pickup the cookie value

or use Sourcerer, (https://www.nonumber.nl/extensions/sourcerer), and do something like.

Code:
{source}
<?php
$inputCookie = JFactory::getApplication()->input->cookie;
$value = $inputCookie->get($name = 'mySavedCookie', $defaultValue = null);
$fabdetails = "{fabrik view=details id=5 usekey=playlist_id rowid=" . $value . "}";
echo $fabdetails;
?>
{/source}
 
After several days of finding a solution i took a different approach.
I created a pre-filter where the VALUE is evaluated via PHP.

Thanks for your time mates!
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top