1
hipoonios
Blocks inside articles
  • 2014/2/28 13:51

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Yep, this is something I need right now.

I'm using the block anywhere plug in and that works for templates and theme.

eg: <{block id=5}>

But I'm trying to post it in a Publisher article. But it does not show up.

Is it even possible?

2
hipoonios
Re: Blocks inside articles
  • 2014/2/28 15:48

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Never mind. Found another solution.

Using code in the templates.

le="color: #000000"><?php <{php}> $pageurl = getenv("REQUEST_URI"); $GLOBALS['xoopsTpl']->assign( 'xoops_pageurl', $pageurl); <{/php}> <{if $xoops_pageurl == "/classic/modules/publisher/item.php?itemid=1"}> <{block id=31}> <{else}> <{/if}>