Hi,
I've added dynamic syntax parser variables to a layout:
{variable name="productid" label="Product Id" tab="Product" type="text"}{/variable}
This works fine, i can change the variable in static page, and show it with:
{{ productid }}
I'm trying to pass this value to my custom component:
[ProductPrice ProductPrice1]
productid="{{ productid }}"
With the following defineProperties and onRun:
public function defineProperties()
{
return
[
'productid' =>
[
'title' => 'Product Id',
'description' => 'The id of the product to show the price of.',
'type' => 'string'
],
];
}
public function onRun()
{
$productid = $this->property('productid');
die($productid);
}
The page always dies empty, the content of property 'productid' is empty. I cannot pass the variable to the component. Is this by design or am i missing something?
Thanks,
Last updated