2
That smarty plugin does not work with blocks that need to assign javascript or styles into header(using $xoTheme) so, no.
If you are using 2.4.x that you can use defacer module. Defacer has a preload that hooks in the block render system and that allows to assign any block content to a smarty variable.
Read defacer readme.txt for more information:
Tips for blocks anywhere (xoops 2.4 only)
=========
Just prefix your block title with an underscore and you will be able to use it has a smarty variable inside your theme or template
Example:
-Edit "User menu" block and rename it to "_User Menu"
-Take notice of the "bid" in the url, in this case it is '1':
modules/system/admin.php?fct=blocksadmin&op=edit&bid=1
-Usage on theme/template:
<{$xoops_block_1.title}> --> echos User Menu
<{$xoops_block_1.content}> --> echos the block content
Blocks that are assigned to smarty variable are not displayed in the blocks layout, that means that:
- the block must be set to visible
- you can enable or disable your block without need to remove the code from template or theme!
- you can change block configuration just as any other block, the only option that does not work is position, the reason is obvious!
Resume:
_Block name -> rendered into a smarty variable
Block name -> rendered into xoops block system