hi i want change my sub menu url, but i cant changing. i want this urls but i try many thing but nothing change for example when views click i want go http://www.question2answer.org/qa/sorular?sort=views: but its not happening. how i can change this menu url links?
Have you seen Subnavi maker plugin?
Example of adding logic in nav() layer function:
function nav($navtype, $level=null) { if($navtype == 'sub') { if(isset($this->content['navigation'][$navtype]['recent'])) { unset($this->content['navigation'][$navtype]['recent']); // In case of removing menu $recent = &$this->content['navigation'][$navtype]['recent']; //$recent['url'] = str_replace('questions', 'recent', $recent['url']); // In case of replacing partial //$recent['url'] = 'solular?sort=views'; // In case of replacing all echo '<pre>'; echo 'subnavi = '.print_r(@$this->content['navigation'][$navtype],true); echo '</pre>'; } } qa_html_theme_base::nav($navtype, $level); }
Because I cannot understand your question exactly, this logic may not satisfy your needs enough.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.