1
SERB-4-LIFE
different html files for certain blocks how to?

ok, i have 2 html files for the midle center block, i want to use one html file for only 1 block which is called Poslednje Vesti and use the other html file for other center blocks

i tried doing this.

<{foreach item=block from=$xoops_ccblocks}> <{if $block.title!="Poslednje Vesti"}><{include file="obscene_v3_3c/obblock_center.html"}> <{else}><{include file="obscene_v3_3c/obblock_c.html"}><{/if}>

<{/foreach}>

but on every block it uses both html files so on the block poslednje vesti it uses the html file for that block and for the other block it does the same for all other blocks

does any1 have any idea how this should be done, i am trying to crack it :P but i dont think i will have any luck, so i thought i might ask for help with it.

thanks
ps. its quite urgent

2
studioC
Re: different html files for certain blocks how to?
  • 2005/8/14 10:59

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


normally this should work correct but try :

<{if $block.title == "Poslednje Vesti"}>
istead of
<{if $block.title!="Poslednje Vesti"}>


michael

3
studioC
Re: different html files for certain blocks how to?
  • 2005/8/14 11:03

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


or use :

<{if $block.title|truncate:9:"" == "Poslednje"}>


of course there are other ways to use truncate and stuff but this should work ...

michael

4
SERB-4-LIFE
Re: different html files for certain blocks how to?

i was hoping that that would help but no it didnt do anything.

can any1 else help

5
SERB-4-LIFE
Re: different html files for certain blocks how to?

Ok i figured it out here is the code if some1 is wondering how to do it

<{foreach item=block from=$xoops_ccblocks}> <{if $block.title =="Poslednje Vesti"}><{include file="obscene_v3_3c/obblock_center.htm"}><{/if}><{if $block.title !="" AND $block.title !="Poslednje Vesti"}><{include file="obscene_v3_3c/noviteti.html"}><{/if}> <{/foreach}>

Login

Who's Online

144 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 144


more...

Donat-O-Meter

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

Latest GitHub Commits