-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get block with name from a variable #221
Comments
Sorry it work perfectly like that {assign var="name" value="block_name"}
{block name="$name"}{/block} |
Variable name attribute of {block} tags are not supported. {assign var="name" value="block_name"}
{block name="$name"}{/block} Must have worked only by chance in the Smarty version you have used. Which one? Why you need to use a variable name? Looks like a wrong approach. |
What I need with variable name is to load a specific block from a template file with a lot of block. For example : I have a template file which contains blocks with different . Some of them need to be loaded by Ajax dynamically. It'as why I need to use name as variable. Maybe you have a better approach for that ? |
Variable {block} tag names are now supported. |
Hello there !
Is it possible to get a {block} with name issue fromw a vairable ?
{assign var="name" value="block_name"} {block name=$name}{/block}
Thanks !
The text was updated successfully, but these errors were encountered: