1
pulapol
how to always show submenu in mainmenu block ?
  • 2010/1/27 14:29

  • pulapol

  • Just popping in

  • Posts: 55

  • Since: 2008/4/6 1


how to always show the news module submit news submenu link in the main menu block

right now i know two method to do do this

1. make news as startpage
2. go to modules/news/


how can i do this wthout doing the two above...


if im not mistaken i seen some XOOPS website that did this...

i forgot the url

2
dupek
Re: how to always show submenu in mainmenu block ?
  • 2010/1/27 15:00

  • dupek

  • Just popping in

  • Posts: 15

  • Since: 2010/1/26


I am new to xoops, but I think that you can set to "show in all pages" in system/blocks if that is what you are looking for.
If you want to put your own news in center block then in Blocks at the bottom choose center-center and edit there. It will allow you put there html code.

3
ghia
Re: how to always show submenu in mainmenu block ?
  • 2010/1/27 16:08

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try by changing
if ((count($sublinks) > 0) && (!empty($xoopsModule)) && ($i == $xoopsModule->getVar('mid'))) {

to
if ((count($sublinks) > 0) && (!empty($xoopsModule))) {
in function b_system_main_show in /modules/system/blocks/system_blocks.php

4
pulapol
Re: how to always show submenu in mainmenu block ?
  • 2010/1/29 5:20

  • pulapol

  • Just popping in

  • Posts: 55

  • Since: 2008/4/6 1


Ghia Thanks..its almost working..

right now my news module submenu is displayed in all page/modules except main page ..any fix?


dupek ..thanks but you misunderstood my question

5
ghia
Re: how to always show submenu in mainmenu block ?
  • 2010/1/29 10:35

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try with:
if (count($sublinks) > 0) {

6
pulapol
Re: how to always show submenu in mainmenu block ?
  • 2010/2/1 4:38

  • pulapol

  • Just popping in

  • Posts: 55

  • Since: 2008/4/6 1


Thanks Ghia..its now working as what i wanted

Login

Who's Online

340 user(s) are online (249 user(s) are browsing Support Forums)


Members: 0


Guests: 340


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits