Content Management solutions using Drupal, Wordpress, and Magento
Zack Design Zack Design

Forum

Current User: Guest
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Exclude pages

Add a New Topic Reply to Post
UserPost

1:48 pm
April 12, 2009


Tom

Guest

What is the code to exclude pages from the menu?? exclude=2,3,4 etc doesnt work for me

1:02 am
January 22, 2010


Jim

Guest

Post edited 1:03 am – January 22, 2010 by Jim


I am having the same issue with the exclude code.


<?php
if (class_exists('CSSDropDownMenu'))
 {
     $myMenu = new CSSDropDownMenu();

     /* Extra options here */

     $myMenu->exclude_pid=74,83,85;
     $myMenu->show();  
 }
 ?>

The above code only seems to exclude post number 74. Post number 83 & 85 still display on the menu.

Am i using it right?

Any help would be appreciated. Thanks

9:30 am
January 22, 2010


admin

Admin

posts 116

Post edited 9:31 am – January 22, 2010 by admin


You have to enclose your PHP string in quotes, like so: '74,83,85'. Otherwise PHP reads it wrong.

7:45 pm
January 22, 2010


Jim

Guest

Many thanks for the quick response and correct syntax.

The following code works fine: $myMenu->exclude_pid='74,83,2';

Reply to Post

Reply to Topic:
Exclude pages

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
2 + 8
   


About the Zack Design Forum

Most Users Ever Online: 168

Currently Online:
7 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 4
Forums: 10
Topics: 166
Posts: 437

Membership:

There have been 200 Guests

There are 2 Admins

Top Posters:

Administrators: admin (116 Posts), jporter (0 Posts)



Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Twitter
  • Reddit

Comments are closed.