| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Latest news mod | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Latest news mod
Hi,
I'm using BOOMER Tabbed Menu Mod and I wanted to use it in a more diverse way: intregrating "latest news" and getting th last 10 items displayed into one of the Tabs. The forum is great thing for learning, espcialy how fellow members resolve problems. I came across a post of Leon, when it hit me :P http://forum.x-cart.com/viewtopic.php?t=8414 It's a very basic mod. Simply wanted a thing something else ... especially since Jon's news mod with admin function is still in beta-testing. Let's take it step by step. Step 1: Create in the Admin a language variable called "lbl_news_none". I gave this contence: "The Latest News section is empty !" Step 2: make a new file or edit modules/News_Management/news_last.php and change the sql part to: Code:
Step 3: replace the contence of today_news.tpl with: Code:
Step 4: For people using BOOMERS Mod: After you've edited the js-file properly and the TAB section in cartlab-tabs.tpl. Simply include today_news.tpl in TAB CONTENT. Example: BTW "Laatste Nieuws" = Dutch for "Latest News" http://www.gbhwebsolutions.com/xcart/latestnewsmod.jpg H.I.H. Gijs |
|||||||||
#2
|
|||||||
|
|||||||
I'm wondering how this mod could be modified to work with the TAB Menu provided by PhilJ http://forum.x-cart.com/viewtopic.php?t=15428. I have attempted to adapt it Phil's version but I guess I just don't understand PHP, Javascript, and HTML well enough to know how.
Anyone got any ideas?
__________________
X-Cart 5.3.5.4 |
|||||||
#3
|
|||||||
|
|||||||
Got it to work after some foolin around. Good mod for those who are interested.
__________________
X-Cart 5.3.5.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|