Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Passing variables to admin CMS blocks

edited January 15 in Installation
Hi Admin,

I have a block made in the admin panel - CMS named top_about_menu. I am using the below code to pass data to it.

<?php echo fuel_block('top_about_menu', array('current_menu' => 'who-we-are')) ?>
//and tried this as well
<?php echo fuel_block(array('view' => 'top_about_menu', 'var' => array('current_menu' => 'who-we-are'))) ?>
the block code looks like follow:

{$current_menu}
Am I missing something here!

Comments

  • edited January 15
    typo*

    <?php echo fuel_block(array('view' => 'top_about_menu', 'vars' => array('current_menu' => 'who-we-are'))) ?>
Sign In or Register to comment.