Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How to get help pages under help box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 10-25-2004, 01:48 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

Hi Gijs,

You could merge both if statements togther since the content within each is the same:

Code:
<table width="100%"> <tr> <td align="center"><h1>{$lng.lbl_tab_how_to}</h1></td> </tr> <tr> <td>{$lng.lbl_how_to_text} </td> </tr> </table> {if $store_language eq "NL" or $store_language eq "US"} {capture name=dialog} {section name=pg loop=$pages_menu} {if $pages_menu[pg].pageid ne "1"} {$pages_menu[pg].title} {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_tab_how_to content=$smarty.capture.dialog extra="width=100%"} {/if}
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote
  #12  
Old 10-25-2004, 03:53 AM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default

hi pmstudios,

Made a mistake in my code

US should be "2" as page_id is an auto-increment field
Code:
{if $pages_menu[pg].pageid ne "2"}

So I guess putting them together is out of the question ?

Thanks,

Gijs
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote
  #13  
Old 10-25-2004, 04:11 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

Hey Gijs,

Try this then...

Code:
{if $store_language eq "NL" or $store_language eq "US"} {capture name=dialog} {section name=pg loop=$pages_menu} {if $pages_menu[pg].pageid ne "1" or ($store_language eq "US" and $pages_menu[pg].pageid ne "2")} {$pages_menu[pg].title} {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_tab_how_to content=$smarty.capture.dialog extra="width=100%"} {/if}
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote
  #14  
Old 10-25-2004, 06:00 AM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default

Hi pmstudios,

This doesn't work as in the US-language it shows the file with pageid=2.

But again, you've pointed me in the right direction

This 'll do the trick:
Code:
{if $store_language eq "NL" or $store_language eq "US"} {capture name=dialog} {section name=pg loop=$pages_menu} {if $pages_menu[pg].pageid ne "1" and $pages_menu[pg].pageid ne "2"} {$pages_menu[pg].title} {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_tab_how_to content=$smarty.capture.dialog extra="width=100%"} {/if}

Thanks,

Gijs
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote
  #15  
Old 10-25-2004, 06:08 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

Ah, I see. I was confused as to what you were wanting to display.

Glad you got it
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:04 PM.

   

 
X-Cart forums © 2001-2020