Note that there are some explanatory texts on larger screens.

plurals
  1. POadd place search option in search bar in OSClass
    primarykey
    data
    text
    <p>I'm new for OSClass. This code from <code>oc-content\themes\modern\inc.search.php</code>,</p> <pre><code>&lt;form action="&lt;?php echo osc_base_url(true); ?&gt;" method="get" class="search" onsubmit="javascript:return doSearch();"&gt; &lt;input type="hidden" name="page" value="search" /&gt; &lt;fieldset class="main"&gt; &lt;input type="text" name="sPattern" id="query" value="&lt;?php echo osc_esc_html( ( osc_search_pattern() != '' ) ? osc_search_pattern() : $sQuery ); ?&gt;" /&gt; &lt;?php if ( osc_count_categories() ) { ?&gt; &lt;?php osc_categories_select('sCategory', null, __('Select a category', 'modern')); ?&gt; &lt;?php } ?&gt; &lt;button type="submit"&gt;&lt;?php _e('Search', 'modern'); ?&gt;&lt;/button&gt; &lt;/fieldset&gt; &lt;div id="search-example"&gt;&lt;/div&gt; &lt;/form&gt; </code></pre> <p>Here, i need to add one more option to search. That is <strong>Place</strong>, same as <strong>#query</strong>. What can I do?</p> <p>And where I can make change(s) for good work to this search?</p> <p>I know following codes,</p> <pre><code>&lt;input type="text" name="sCity" id="sCity" value="&lt;?php _e('Enter your city here'); ?&gt;" /&gt; </code></pre> <p>that's give the result like following, <img src="https://i.stack.imgur.com/rNAEv.png" alt="enter image description here"></p> <p>But, My requirement is the <code>sCity</code> is also same as <code>sPattern</code>. See the <code>value</code> in both. sPattern shows same result when redirect. but sCity wouldn't. I need that.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload