RuB@N Posted February 6, 2011 Share Posted February 6, 2011 Здравствуйте! Дайте,Пожалуйста,содержание блока Article Menu (наизменялся)Заранее Спасибо! Link to comment Share on other sites More sharing options...
Fisana Posted February 6, 2011 Share Posted February 6, 2011 <php> // Modify the array so that categories are hierarchical $this->_categories = array(); foreach( $records as $r ){ $this->_categories[ $r['category']['category_parent_id'] ][ $r['category']['category_id'] ] = $r['category']; } $this->_database_url = ( $records[0] ) ? $this->registry->ccsFunctions->returnDatabaseUrl( $records[0]['category']['category_database_id'] ) : false; //print_r( $this->_database_url ); </php> <div id='category_list' class='general_box clearfix'> <h3>Categories <a href='{$this->_database_url}?view=categories'>See All →</a></h3> <ul> <if test="is_array( $this->_categories ) && count( $this->_categories )"> <foreach loop="$this->_categories[0] as $r"> <li> <a href='{$this->registry->ccsFunctions->returnDatabaseUrl( $r['category_database_id'], $r['category_id'] )}'>{$r['category_name']}</a> <if test="count( $this->_categories[ $r['category_id'] ] )"> <ul> <foreach loop="$this->_categories[ $r['category_id'] ] as $sub"> <li> <a href='{$this->registry->ccsFunctions->returnDatabaseUrl( $sub['category_database_id'], $sub['category_id'] )}'>{$sub['category_name']}</a> </li> </foreach> </ul> </if> </li> </foreach> </if> </ul> </div> <br /> <if test="$this->_database_url"> <div class='general_box clearfix' id='article_search'> <h3>Search Articles</h3> <form method='post' action='{$this->_database_url}'> <input type='hidden' name='do' value='search' /> <input type='text' name='search_value' class='input_text' /> <input type='submit' value='Search' class='input_submit' /> </form> </div> <br /> </if> Там опасно рисковать, потом не восстановишь, если под рукой нету запасного форума, где ничего не трогаешь.Лучше блоки дублировать и уже дубли мучать. 2 Link to comment Share on other sites More sharing options...
kicule Posted July 2, 2011 Share Posted July 2, 2011 Здравствуйте.Может быть , что у меня нету Promote Article ? Т.е. нету My Apps -> IP.Content -> Promote Article Settings. Или его надо включить? Link to comment Share on other sites More sharing options...
Fisana Posted July 2, 2011 Share Posted July 2, 2011 Как Ваша проблема связана с данной темой?Меня здесь просили выложить код блока. Если Вам он тоже нужен, скопируйте. И не флудите не по теме! Для каждого вопроса следует создавать отдельную тему, а не загаживать чужие. Link to comment Share on other sites More sharing options...
Recommended Posts