![]() |
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:
{* $Id: today_news.tpl,v 1.10 2004/05/31 06:25:32 max Exp $ *} 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 |
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? |
Got it to work after some foolin around. Good mod for those who are interested. :D
|
All times are GMT -8. The time now is 07:27 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.