forked from extern/egroupware
New syntax (@@name) to access values absolute to the content array ofs
the request. Here's an example: $content['my-label'] = $id ? 'Edit' : 'Add'; You can use it now in the template of an nextmatch row for the label: @@my-label Saved the need to import these kind of data in the get_rows function into the rows.
This commit is contained in:
parent
5d7b9133f1
commit
a94586bad4
@ -170,7 +170,14 @@ class boetemplate extends soetemplate
|
|||||||
}
|
}
|
||||||
if ($is_index_in_content)
|
if ($is_index_in_content)
|
||||||
{
|
{
|
||||||
$name = boetemplate::get_array($cont,substr($name,1));
|
if ($name[1] == '@')
|
||||||
|
{
|
||||||
|
$name = self::get_array(self::$request->content,substr($name,2));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$name = self::get_array($cont,substr($name,1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user