Hello
Is there a way to make a dynamic box with the contents of the Quick Search form in it?
screenshot1.jpg
Many thanks,
Troy.
Hello
Is there a way to make a dynamic box with the contents of the Quick Search form in it?
screenshot1.jpg
Many thanks,
Troy.
Hello Troy,
Yes it's possible but this block may mess up pages with search forms. If you will show this new search block on search pages it will be with empty fields. But if you will show this block on other pages it will be ok.
create new file for example new_search_block.tpl and insert this code in:
save it and upload in ftp://templates>>your_tepmplate>>tpl>>blocksCode:Only registered members can view the code.
then go to Admin Panel >> Content Boxes and create new block with:
Key for example 'new_search_block'
Name - any
Box side: any
Box Type : smarty
Content: {include file='blocks'|cat:$smarty.const.RL_DS|cat:'new_sea rch_block.tpl'}
Show on Pages: where do you want to see this block for example Home
and save it.
Remember block key foe me it's: 'new_search_block'
Then go to: ftp://includes>>controllers>>common.inc.php
find code:
and after that add new code:PHP Code:
Only registered members can view the code.
here you should write your block keyPHP Code:
Only registered members can view the code.
save it and check.
Viktor,
Flynax technical department,
Best wishes.
That's great - thanks Viktor.
Hi, I have just did this example and show the search form on a category, how can I use a custom search form instead of quick search form??? lets say I want the description and price fields for this search on this category...
Thank You
Hello Abelardo,
I think it will be customization because take many times and needs many changes for it.
If you want you may create a new ticket with your request and we will do it for you for a some fee.
Viktor,
Flynax technical department,
Best wishes.
Hello Abelardo,
1) Create new search form
admin panel > search forms > add new form.
add new form with key form example 'search_for_category' and select listing type then save and build new form
2) create new file for example search_form.tpl and insert this code in:
save it and upload in ftp://templates>>your_tepmplate>>tpl>>blocksCode:Only registered members can view the code.
3) add box in admin panel
then go to Admin Panel >> Content Boxes and create new block with:
Key for example 'search_box_for_category'
Box Type : smarty
Content: {include file='blocks'|cat:$smarty.const.RL_DS|cat:'search_ form.tpl' search_forms=$search_for_category type="listings"}
You need to add your listing type like it - type="listings"
4) Add code in common.inc.php
Then go to: ftp://includes>>controllers>>common.inc.php
You need to add code like say Viktor before:
// buildSearch( 'search_for_category', 'listings');Code:Only registered members can view the code.
'search_for_category' - it is 'Key' your custom form.
'listings' - it is 'Key' of listing type
It is all.
Thanks.