ein Blog

Shopware Smarty Textbausteine

wenn man mal in nem smarty template herausfinden will, ob ein textbaustein gefüllt ist, kann man das so machen:

{if '{s name="sFooterShopNavi"}{/s}'}

außer, dass man es eben nicht so machen kann. smarty (bzw. shopware) fügt am ende den namespace noch an. allerdings mit single quotes. dann sieht das so aus:

{if '{s name="sFooterShopNavi" namespace='something'}{/s}'}

was dann natürlich nicht so geil ist. deswegen so machen:

{if "{s name='sFooterShopNavi'}{/s}"}