Forums / General Questions / Get a list of just Sidebox Ezpages

Get a list of just Sidebox Ezpages

Started by psvialli on 29 Mar 2013, 9:44 AM · Views: 442

Results 1 to 2 of 2
29 Mar 2013, 9:44 AM
#1
psvialli avatar

psvialli

New Zenner

Join Date:
Mar 2011
Posts:
76
Plugin Contributions:
0

Get a list of just Sidebox Ezpages

I have a Mega Menu i am using but i wanted to limit the Ezpage list to just show pages that are set to Sidebox.

I am using the below but it shoes ALL ezpages not just the ones that are set to Sidebox , any idea how i just get the Sidebox ones ?

Thanks

<?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
29 Mar 2013, 1:33 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Get a list of just Sidebox Ezpages

The place you want to look is probably in ezpages_drop_menu.php, where the SQL query that retrieves the list of ez-pages is built. You will want to test for the sidebox status and sort order of each ez-page while retrieving the list. Look up the correct field names in the database.