+ Reply to Thread
Results 1 to 9 of 9

Thread: Custom search form question

  1. #1

    Custom search form question

    Hi,

    In admincp > search form, we can create 2 form type
    - Custom form
    - In a category
    ----------------
    - For custom form, how can we place this form in a page? I assume we create a content box and the add the code? Or is there another way.
    - For in a category form, I can see the form shows in category, but how do I stick this form on mobile, I know that we can add stick option in blocks_manager.tpl, but it require the box key, how do I find this key? In custom form, we are allow to input box key. But in category form we don't.

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    - Custom form: https://forum.flynax.com/showthread....6924#post26924

    - Stick category form on mobile: you need to use a key of the sidebar search box (refine search), in your case:

    Code:
    Only registered members can view the code.

  3. #3
    Quote Originally Posted by Rudi View Post
    - Custom form: https://forum.flynax.com/showthread....6924#post26924

    - Stick category form on mobile: you need to use a key of the sidebar search box (refine search), in your case:

    Code:
    Only registered members can view the code.
    Perfect, thank you so much, Rudi.

  4. #4
    Hi Rudi,

    One last question. How do I make the In a category search form to have the (+) (-) sign for collapse like the filter in this screenshot on mobile

    Screen Shot 2021-06-29 at 11.08.25 PM.png

    Once I get into the category page car on mobile, the filter has (+) hide, but the in category search form does not:

    Screen Shot 2021-06-29 at 11.08.40 PM.png

    However, once I click search on that in category search box, in the next result page, it has (+) (-)

    Screen Shot 2021-06-29 at 11.08.48 PM.png

    Is there anyway if I can make it has (+) (-) just like the filter box, as soon as user click on the category car page on mobile?

  5. #5
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Go to tpl > blocks > side_bar_search.tpl and add at the top

    <span class="expander"></span>

  6. #6
    Quote Originally Posted by Rudi View Post
    Go to tpl > blocks > side_bar_search.tpl and add at the top

    <span class="expander"></span>
    It works excellent. Thanks Rudi,

  7. #7
    Hi Rudi, I'm sorry I said it was last question. This is the real final last question. I have successfully add the (+) (-) thanks to your guidance. Is there a simple way to make it expanded (opened) by default? If user don't want it, they can just hit the (-) and close it.

    Also how do I set position for it to be 0 or 1 so it can be on top of the sidebar
    Last edited by Wei Hong; June 30, 2021 at 08:32 AM.

  8. #8
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Try to follow this thread: https://forum.flynax.com/showthread....light=expander

    it should help

  9. #9
    Quote Originally Posted by Rudi View Post
    Try to follow this thread: https://forum.flynax.com/showthread....light=expander

    it should help
    Thanks Rudi, it did the trick. About setting position for in a category search box. I can't find it in content box section. How can I set position for it to be on top of the sidebar in desktop mode?

+ Reply to Thread