1
MisterB
Menu - TinyContent - Simple Question?
  • 2004/5/24 22:39

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


This is potentially a simple question (for those of you who know how!).

I am using Tinycontent duplicatable so that I can have different content for anonymous visitors compared to members who are logged in. When I use Tinycontent and create more than one page with it, the "sub-menu" (when switched on) is indented. Although I understand why people would want this, and it is a feature, I would prefer for it not to be indented, so that although technically additional pages are subsections in tinycontent, in reality they all appear as top level.

I am sure this is possible - but where would I hack for sub-menus to appear at the same level?

The alternative appears to be to set up duplicate tinycontent modules but that seems messy.

Many thanks for any ideas.

Kind regards

MisterB

2
GIJOE
Re: Menu - TinyContent - Simple Question?
  • 2004/5/25 0:45

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


hi MisterB.
Thank you for choosing TinyD.

If you only want to eliminate indent of submenu, it's easy.
Edit your template of main menu.

Else, you want to control menu items with more detail, I recommend using menu modules instead of using "main menu" of system.

Both iMenu and MultiMenu are good.


3
solidsnake
Re: Menu - TinyContent - Simple Question?
  • 2004/5/25 1:33

  • solidsnake

  • Just popping in

  • Posts: 33

  • Since: 2004/5/16


As a follow-up to this question, would searching be done on a "per section" basis? -- I have 5 sections, (Section A, Section B, Section C, etc.) and would want to categorize search results per section. Would TinyContentD be the best module to use?

In your opinion, which module is the best to use? would i need to hack other modules? --

As always, thank you very much for your responses!

4
GIJOE
Re: Menu - TinyContent - Simple Question?
  • 2004/5/25 1:51

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


Quote:

solidsnake wrote:
As a follow-up to this question, would searching be done on a "per section" basis? -- I have 5 sections, (Section A, Section B, Section C, etc.) and would want to categorize search results per section.

Yes.
You can get the result "per section" when you search.
see this

Quote:
Would TinyContentD be the best module to use?

I don't have the answer.
As you know, WF-Section is a good module too.

TinyD categorize their contents by module base.
WF-Section categorize their contents by section base.

Competition is nonsense.

It is important that there are choices with the meanings.

5
solidsnake
Re: Menu - TinyContent - Simple Question?
  • 2004/5/25 2:10

  • solidsnake

  • Just popping in

  • Posts: 33

  • Since: 2004/5/16


Hi GIJOE,
thanks for your quick reply, would like to try out TinyD --if you may, i would like to ask your opinion on how to better implement this:

as mentioned, i have 5 Sections (Main Menu, at left hand side): Section A, B, C... and for each section, i have subsection a, subsection b (at right hand side). I was thinking of using javascript to do this, but i wonder if this is the best way to do this? -- can TinyD do this?

thanks very much for your help, GIJOE!

6
MisterB
Re: Menu - TinyContent - Simple Question?
  • 2004/5/25 7:13

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Thank you for your feedback - I am new to this.

I have tried editing system_block_mainmenu.html in ../modules/system/templates/blocks (copied in below) by removing spacing before the sublink lines but this doesn't make any difference. I cannot see where the code is forcing the submenu to indent. Does anyone have any ideas please?

Quote:
<table cellspacing="0">
<tr>
<td id="mainmenu">
<a class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
<{foreach item=sublink from=$module.sublinks}>
<a class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
<{/foreach}>
<{/foreach}>
<!-- end module menu loop -->
</td>
</tr>
</table>


Many thanks

Mister B

7
MisterB
Re: Menu - TinyContent - Simple Question?
  • 2004/5/26 7:21

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Dear All

I have searched through the code and am obviously missing something - does anyone know where the indent is being forced?

Many thanks

Mister B

8
chapi
Re: Menu - TinyContent - Simple Question?
  • 2004/5/26 7:55

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


This is controlled through style.css in your themes folder.

themes/your_theme/style.css

In this file search for the line with

td#mainmenu a.menuSub

In this line you can control the appearance of the submenu points. Normally it should be the padding-left setting which makes the indent.

9
MisterB
Re: Menu - TinyContent - Simple Question?
  • 2004/5/27 6:52

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Thank you very much for your response - muhc appreciated.

MisterB

Login

Who's Online

237 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 237


more...

Donat-O-Meter

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

Latest GitHub Commits