Osclass forums

Support forums => Tips, tricks, and tutorials => Topic started by: monah on May 20, 2015, 02:18:37 pm

Title: a small addition to drawing up categories title
Post by: monah on May 20, 2015, 02:18:37 pm
a small addition to drawing up categories title
edit - meta_edit/index.php
Code: [Select]
case('search'):
            $region   = osc_search_region();
            $city     = osc_search_city();
            $pattern  = osc_search_pattern();
            $category = osc_search_category_id();
            $s_page   = '';
            $i_page   = Params::getParam('iPage');

            if($i_page != '' && $i_page > 1) {
                $s_page = ' - ' . __('page') . ' ' . $i_page ;
            }

            $b_show_all = ($region == '' && $city == '' & $pattern == '' && $category == '');
            $b_category = ($category != '');
            $b_pattern  = ($pattern != '');
            $b_city     = ($city != '');
            $b_region   = ($region != '');

            if($b_show_all) {
                $text = __('Show all listings') . ' - ' . $s_page . osc_page_title();
            }

            $result = '';
            if($b_pattern) {
                $result .= $pattern . ' » ';
            }

            if($b_category && is_array($category) && count($category) > 0) {
                $cat = Category::newInstance()->findByPrimaryKey($category[0]);
                if( $cat ) {
                    $result .= strtolower($cat['s_title']) . ' ' ;
                }
            }
add in *_t_category_description add a column of text with the name of s_title
and the database can make your title
Title: Re: a small addition to drawing up categories title
Post by: Resta on January 27, 2018, 11:37:22 am
"edit - meta_edit/index.php"

Can someone please tell me which folder this file is located in - that monah is referring to? TIA!