By Zehn on Sunday, 23 August 2020
Posted in Technical Issues
Likes 0
Views 541
Votes 0
Hello,

Currently, the advanced search page defaults to "People." I would like it to default to "Pages." How can this be done.

Thanks!
Hi there,

Unfortunately, there is no available settings to change that. To change that it requires some customization on the codes.

I'll help you once, checkout this file: /components/com_easysocial/themes/wireframe/search/default/default.php on line: 26, you'll need to pass `type` parameter to the search router.

<div class="es-search-advance">
<a href="<?php echo ESR::search(array('layout' => 'advanced', 'type' => 'page')); ?>"><?php echo JText::_('COM_EASYSOCIAL_ADVANCED_SEARCH_LINK'); ?></a>
</div>


Please do understand this is a customization on the core file and it will get overwritten when updating EasySocial. Therefore, I'd like to advise you to place your customization on the template override. Checkout our documentation on template override: https://stackideas.com/docs/easysocial/administrators/templating/template-overrides for more information.

Hope this helps.
·
Monday, 24 August 2020 10:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Appreciate the willingness to help.

Regards
·
Saturday, 05 September 2020 08:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Saturday, 05 September 2020 10:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post