0
Welcome Guest! Login
0 items Join Now

[Feature] Add a search position next to navigation.

    • MindTooth's Avatar
    • MindTooth
    • Elite Rocketeer
    • Posts: 563
    • Thanks: 0

    [Feature] Add a search position next to navigation.

    Posted 14 years 7 months ago
    • Hello,

      One feature that I seem to miss, is that the navigation position should either support horizontal alignment when adding more modules, be divided like the others (a,b,c,etc.) or add a position called search.

      What do you think about this? Because I think that the seach is always fitted nice next to menu. On the far right, (or left for RTL users).

      Thank you for Gantry :)
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: [Feature] Add a search position next to navigation.

    Posted 14 years 7 months ago
    • You can publish the search module in the navigation too (an tweak it a bit via css)
      or you can add the a-f positions to the navigation

      in the index.php of the template find line 54:
      <?php echo $gantry->displayModules('navigation','basic','basic'); ?>
      change it to
      <?php echo $gantry->displayModules('navigation','standard','basic'); ?>
       
      in the templateDetails.xml replace
      <position>navigation</position>
      with
       
      <position>navigation-a</position>
      <position>navigation-b</position>
      <position>navigation-c</position>
      <position>navigation-d</position>
      <position>navigation-e</position>
      <position>navigation-f</position>
       
       
       
      find
      <param name="position" type="position" default="navigation" label="POSITION"
      change it to
      <param name="position" type="position" default="navigation-a" label="POSITION"
      and find
      <param name="menu-type-suckerfishmenu-position" type="hidden" default="navigation"/>
      change it to
      <param name="menu-type-suckerfishmenu-position" type="hidden" default="navigation-a"/>
       
      add
      <param name="navigationPosition" type="positions" default="9,3" label="NAVIGATION_POS" description="POS_DESC">
      <schemas>1,2,3,4,5,6</schemas>
      <words>2,3,4,5,6,7,8,9,10</words>
      </param>
       
      right after
      <param name="layouts" type="gspacer" default="" description="" label="" glabel="LAYOUTS" />
    • MindTooth's Avatar
    • MindTooth
    • Elite Rocketeer
    • Posts: 563
    • Thanks: 0

    Re: [Feature] Add a search position next to navigation.

    Posted 14 years 7 months ago
    • Thank you so much :) And this will create the option in the Gantry back-end as well?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: [Feature] Add a search position next to navigation.

    Posted 14 years 7 months ago
    • it will create the slider for navigation a-f in the backend
    • MindTooth's Avatar
    • MindTooth
    • Elite Rocketeer
    • Posts: 563
    • Thanks: 0

    Re: [Feature] Add a search position next to navigation.

    Posted 14 years 7 months ago
    • Good work. And once again, thank you so much :) Should be submitted upstream.
  • Re: [Feature] Add a search position next to navigation.

    Posted 14 years 1 month ago
    • Hi Henning

      Thanks for this short tutorial ;-)

      One question: I tried to add the navigation position to the advance template tab so I can force the positions.

      here is what I put in the templateDetails.xml file to add Navigation_pos to the advance tab:

      <param name="navigation" type="chain" label="NAVIGATION_POS" description="ADVANCED_DESC">
      <param name="showall" type="toggle" default="0" label="FORCE_POS" />
      <param name="showmax" type="showmax" default="6" label="POS_COUNT" />
      </param>

      somehow the force don't work ;-( I followed the steps mentioned above provided by you and the navigation a-f positions are available but without the force option.

      Thanks for your help in advance.

      Regards,
      Menelik
    • kandki's Avatar
    • kandki
    • Newbie
    • Posts: 4
    • Thanks: 0

    Re: [Feature] Add a search position next to navigation.

    Posted 14 years 3 weeks ago
    • +1 - Thanks for posting this info. We too also would like to add the force option. Thanks in advance! :cheesy:
  • Re: [Feature] Add a search position next to navigation.

    Posted 11 years 2 weeks ago
    • Hi. Will this work with new templates like Epsilon? Thanks!
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: [Feature] Add a search position next to navigation.

    Posted 11 years 2 weeks ago

Time to create page: 0.349 seconds