Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 08:19:47 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155534
Posts in
21713
Topics by
7737
Members
Latest Member:
chris85
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
Can we find out if the page has children?
Pages: [
1
]
Go Down
Author
Topic: Can we find out if the page has children? (Read 320 times)
yuri
Offline
Posts: 6
Can we find out if the page has children?
«
on:
April 18, 2010, 11:36:58 PM »
programmatically...
I need to use a side menu if a page has chidren (hence 2 columns) and 1 column layout if the page has no children...
Messed with show_menu2() without success.
Thanks
Logged
BerndJM
Offline
Posts: 1764
Re: Can we find out if the page has children?
«
Reply #1 on:
April 19, 2010, 01:58:15 AM »
Oh man,
this is discussed such a lot here in this forum:
- read your child menu into a buffer
- look if there is any content in the buffer
- if it's so - write the buffer out
- if not do nothing
search a little bit in this forum and you'll find solutions ...
Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.
yuri
Offline
Posts: 6
Re: Can we find out if the page has children?
«
Reply #2 on:
April 19, 2010, 09:05:52 PM »
Excellent! just what I needed, thank you very much, Bernd!
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...