Show/Hide html code
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Show/Hide html code
Laravel 2017.10
Hello Sir,
I would like to show and hide anchors in the app.blade.php, depending on the category id.
How am I supposed to check the id number?
Hello Sir,
I would like to show and hide anchors in the app.blade.php, depending on the category id.
How am I supposed to check the id number?
Re: Show/Hide html code
It's better to use the category codes as they usually don't change
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Show/Hide html code
Sir, I do use category codes (the catalog ones), I just want to create some if statement to check them.aimeos wrote:It's better to use the category codes as they usually don't change
Something like:
Code: Select all
@php $_GET['f_catid'];
if($_GET["f_catid"] == 15)
I tried
Code: Select all
Input::get('f_catid')
Re: Show/Hide html code
Are you using a Blade template? if yes, have you tried "\Input" instead? Might be a namespacing issue in this case.
If you are using the standard Aimeos PHP template engine, you have to use "$this->param( 'f_catid' )" instead.
If you are using the standard Aimeos PHP template engine, you have to use "$this->param( 'f_catid' )" instead.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star