Results 1 to 10 of 2344

Threaded View

  1. #11
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Well never mind.

    I made the changes my self it was mutch simpler than I thought.

    Not sure if anyone care as not mutch communication hre but if somebody need solution here it is.

    It is based on my earlier design which enables to add ezpaged filtering which groups they belong.

    It would be even better code if it could outomatically check if multi languge expages module is installed instead of using comments character. Wen I dont know how to do it so this will do.

    // --------------------


    If ($chapNumber != ""){

    // USE THIS IS MULTI-LANGUGE EZPAGES MODULE NOT INSTALLED
    // $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where toc_chapter = " . $chapNumber . " and status_header = 1 order by header_sort_order, pages_title");

    // USE THIS IS MULTI-LANGUGE EZPAGES MODULE IS INSTALLED
    // query modified for multi-language support
    $page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
    from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
    where toc_chapter = " . $chapNumber . " and e.pages_id = et.pages_id
    and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
    and status_header = 1
    and header_sort_order > 0
    order by header_sort_order, pages_title");
    // end of modification


    } else

    {
    // USE THIS IS MULTI-LANGUGE EZPAGES MODULE NOT INSTALLED
    $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_header = 1 order by header_sort_order, pages_title");

    // USE THIS IS MULTI-LANGUGE EZPAGES MODULE IS INSTALLED
    // query modified for multi-language support
    $page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
    from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
    where e.pages_id = et.pages_id
    and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
    and status_header = 1
    and header_sort_order > 0
    order by header_sort_order, pages_title");
    // end of modification
    }
    // --------------------

    marksu
    Last edited by marksu; 18 Jan 2008 at 09:12 PM.

 

 

Similar Threads

  1. Categories dropdown menu/css
    By KenshiroU in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2013, 01:04 PM
  2. HIde categories mod with css dropdown menu
    By adowty in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Feb 2012, 01:05 AM
  3. How to use ezpages/categories as dropdown menu in the header?
    By mdivk in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Dec 2011, 06:32 PM
  4. whats wrong with this css for my dropdown menu?
    By 1kell in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 28 May 2010, 02:47 AM
  5. Header Dropdown Menu (CSS) Without the Dropdown???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2009, 01:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR