TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,980
  • Total Topics: 21,320
  • Online today: 281
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 301
  • Total: 301

Fixing menu issue

Started by lish425, April 26, 2007, 05:07:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lish425

Hmm... well I just noticed that when I click on an article on my article page the menu tab jumps back to home instead of staying on articles.  Is there anyway to fix this?  A link to the site Pet Growth

IchBin

You'll need to add some code to your template_menu() function.

if(isset($_GET['page']))
$current_action = 'articles';

I think this will make ALL articles highlight the articles link. Just make sure in your articles link in your menu code that you change the code to say articles. If you need help post your code.

lish425

#2
Thanks worked great.  :)

Edit: I think I'm getting the hang of this.  I had to alter it a little to this. if (isset($_GET['page']) && $_GET['page'] == 22)
  $current_action = 'about';
else
  if(isset($_GET['page']))
$current_action = 'articles';

This website is proudly hosted on Crocweb Cloud Website Hosting.