0 users online. Create an account or sign in to join them.Users
Adding your own parameter to a frontend page within an extension
This is an open discussion with no replies, filed under General.
Search
Create an account or sign in to comment.
0 users online. Create an account or sign in to join them.Users
This is an open discussion with no replies, filed under General.
Create an account or sign in to comment.
Symphony • Open Source XSLT CMS
--with-xsl)
Heloo,
Does this method look right to be able to append my own parameter to a frontend page?
I have a delegate in my extension:
array('page' => '/frontend/','delegate' => 'FrontendParamsResolve','callback' => 'addParam')And I am trying to call it like this:
public function addParam(&$context) { $set_id = $context['params']['current-page-id']; $parameter = Symphony::Database()->query("SELECT s.* FROM `sym_mytable` AS s WHERE s.page_id = '{$set_id}' LIMIT 1"); $context['params'][$parameter['myparamname']] = $parameter['value']; }Just not seeing my parameter output to the page. Any pointers?
EDIT
Forgot to add:
To the driver file... dumb + ass = moi!