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.

<{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}>

Login

Who's Online

258 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 258


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits