| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
controlling static page appearance | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
Is it possible to have static pages appear in the help menu and one of the other menus? Thanks, tbm
__________________
Linux X-Cart 4.1.11 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Quote:
You can use the solution snippet for the division into blocs. block 1 (all static page with value 'order by' <=100) PHP Code:
block 2 (all static page with value 'order by' >100) PHP Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() Hi Yurij,
That makes sense, and is exactly what I'm after. Which PHP code do I apply it too though? Thanks, Mark.
__________________
Linux X-Cart 4.1.11 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() You do not need to change "PHP" code. Just add these blocks to the template and add the static pages (for "orderby" <100 and "orderby"> 100) |
|||||||||
#5
|
|||||||
|
|||||||
![]() Hi Yuri,
I added this code to the pages_menu.tpl, see bellow: Code:
does that look right? it doesn't seem to be working. do i not need to refer to the menu modules that i need the static pages to appear in?
__________________
Linux X-Cart 4.1.11 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
Ok... try added next code to the "help.tpl" (used it just for examples): PHP Code:
PS. And add a some pages with the "order by" more than 100. PS2. If there are more questions, ask me ![]() |
|||||||||
#7
|
|||||||
|
|||||||
![]() Ok, that worked! it created 2 new menu blocks and put the correct menu items in each!
now, if i want to add certain static pages to the manufacturers menu and other static pages to the help can i do this using the same idea? for example, if i wanted to add the < 100 static menu items to the help menu, could i do this: PHP Code:
__________________
Linux X-Cart 4.1.11 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Quote:
Yes, you can (Use composite conditions), example for "120 >= orderby > 100": PHP Code:
|
|||||||||
#9
|
|||||||
|
|||||||
![]() that worked! thanks yurij!
now, can i apply the same principle to the product or manufacturer menus? having a look at their relevant .tpl files, it's not as obvious where to put the code.
__________________
Linux X-Cart 4.1.11 |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Quote:
You can split into as many blocks - how much you need. Left manufacturer menu block - "skin1\modules\Manufacturers\menu_manufacturers.tp l ". |
|||||||||
|
|||
X-Cart forums © 2001-2020
|