Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 05:04:59 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
149621
Posts in
21098
Topics by
7537
Members
Latest Member:
lotte2
WebsiteBaker Community Forum
English
Templates, Menus & Design
(Moderator:
Argos
)
show_menu2 show subs + the poot page
Pages: [
1
]
Go Down
Author
Topic: show_menu2 show subs + the poot page (Read 811 times)
c0de
Offline
Posts: 16
show_menu2 show subs + the poot page
«
on:
March 11, 2010, 12:20:47 PM »
Hey.
I didnt found an answer by searching, and the Doku also dont really Helps, maybe somebody can tell me how i can show the The Sub Menüs + the Root Link?
Like That (Struktur in WB):
- Contact
-- Contact 2
-- Contact 3
And i want (In my Theme):
- Contact
- Contact 2
- Contact 3
Anybody an Idea?
Have to get this as fast as possible, thx!
Greetings, c0de
Logged
Argos
Moderator
Offline
Posts: 2084
Re: show_menu2 show subs + the poot page
«
Reply #1 on:
March 11, 2010, 03:31:00 PM »
You have to set them on the same level. Or remove the indent for subitems.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
c0de
Offline
Posts: 16
Re: show_menu2 show subs + the poot page
«
Reply #2 on:
March 11, 2010, 07:44:28 PM »
Are im wrong or are both ways the Same?
But they are Both useless. i cant Crash my Beautiful Structure that would be Stupid...
And when they are all on the Same Level there are new Problems comming...
Is there no "normal" way for show_menu(2) ?
Logged
Argos
Moderator
Offline
Posts: 2084
Re: show_menu2 show subs + the poot page
«
Reply #3 on:
March 11, 2010, 08:26:21 PM »
I'm afraid I don't understand what you mean then...
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
c0de
Offline
Posts: 16
Re: show_menu2 show subs + the poot page
«
Reply #4 on:
March 11, 2010, 08:35:28 PM »
lol ok this can be xD
I fu**ing tired today, and when i'm tired my Brain makes Stupid things sometimes ^^
Ok lets Try again, i have this Order in WB:
- Root Page
-- Subpage 1
-- Subpage 2
And now when i'm on "Root Page" i want to show the Subpages AND the Root Page in a seperate Sidebar navigation.
Ha, i think this discription is much more perfekt then my last! xD
EDIT:// Read my first Post again... I'm really sorry... Really... that was really really stupid nonsense-s*** up there
Thx,
Greetings c0de
«
Last Edit: March 11, 2010, 08:38:12 PM by c0de
»
Logged
Argos
Moderator
Offline
Posts: 2084
Re: show_menu2 show subs + the poot page
«
Reply #5 on:
March 11, 2010, 09:06:32 PM »
Eh... that is actually the default standard menu. It shows the complete menu regardless of where you are in the tree. Maybe show us your site, to make it easier to comment. And what is your menu call? Did you try basic
Code:
<php showmenu2(0); ?>
already?
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
c0de
Offline
Posts: 16
Re: show_menu2 show subs + the poot page
«
Reply #6 on:
March 12, 2010, 12:03:58 AM »
Code:
<php show_menu2(0); ?>
No... this shows all Root Items, i only want to show the Recent (Aktual?!) Root item, and its Sub Items...
Gr33tz
Logged
Argos
Moderator
Offline
Posts: 2084
Re: show_menu2 show subs + the poot page
«
Reply #7 on:
March 12, 2010, 12:08:59 AM »
OK, I understand now
Code:
show_menu2(0, SM2_CURR+1, SM2_ALL, SM2_ALL|SM2_CURRTREE);
Or use the droplet:
http://www.websitebakers.com/pages/droplets/official-library/navigation/sitemapchild.php
BTW: here are the showmenu2 docs:
http://www.websitebakers.de/sm2/
«
Last Edit: March 12, 2010, 12:11:39 AM by Argos
»
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
c0de
Offline
Posts: 16
Re: show_menu2 show subs + the poot page
«
Reply #8 on:
March 12, 2010, 01:59:47 PM »
Thx, i know the docs... they are horror xD
Your snipped also wont work... ok maybe i really will build a workaround, but thx
greetings
Logged
Argos
Moderator
Offline
Posts: 2084
Re: show_menu2 show subs + the poot page
«
Reply #9 on:
March 12, 2010, 02:03:54 PM »
Quote from: c0de on March 12, 2010, 01:59:47 PM
Your snipped also wont work... ok maybe i really will build a workaround, but thx
It's not a snippet, it's a droplet, and to use it you first have to add it to the droplet repository in your admin.
But the menu call I gave you should work as well. So I don't understand what the problem is. Did you try the menu call?
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
c0de
Offline
Posts: 16
Re: show_menu2 show subs + the poot page
«
Reply #10 on:
March 12, 2010, 07:01:53 PM »
Sorry with snipped i meant the Menu call.
And this doesnt work, it shows only the Submenüs...
The things with the Droplets is, i lose survey of my code, what i really dont like.
But thx
Greetings
Logged
Argos
Moderator
Offline
Posts: 2084
Re: show_menu2 show subs + the poot page
«
Reply #11 on:
March 12, 2010, 11:37:36 PM »
Oops, it's:
Code:
<?php show_menu2
(
0
,
SM2_CURR
,
SM2_ALL
,
SM2_ALL
|
SM2_CURRTREE
);
?>
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
c0de
Offline
Posts: 16
Re: show_menu2 show subs + the poot page
«
Reply #12 on:
March 13, 2010, 02:55:07 AM »
WOW!!!!
Big thx!!!
And Big thx that you dont gave up helping me ^^
Greetz
Logged
c0de
Offline
Posts: 16
Re: show_menu2 show subs + the poot page
«
Reply #13 on:
March 14, 2010, 12:51:29 AM »
Ah s***... i didnt get the next level...
This Shema:
- Root
-- Sub 1
-- Sub 2
Now when i am on Sub2 Page it only shows items in this Level....
But i need the "Root" here too...
I trie and trie, and the only thing which works is my head, getting an huge headage...
Logged
c0de
Offline
Posts: 16
Re: show_menu2 show subs + the poot page
«
Reply #14 on:
March 14, 2010, 12:57:55 AM »
To fast Headage is Huge but the Answer is mine xD
For Searching Users:
Code:
show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_CURRTREE);
Logged
Argos
Moderator
Offline
Posts: 2084
Re: show_menu2 show subs + the poot page
«
Reply #15 on:
March 14, 2010, 12:29:16 PM »
That's not what you asked for, you asked for the current root + children. This shows site root + children in cureent tree. Well, if this is what you want then it's nice you have found out. The thing with showmenu2 is, it seems complex, and although it is not easy, there is of course a logic in it and it really helps to study the docs and just try things out to see what the output is.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...