MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Dec 04, 2008, 12:54 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Read
Frequently Asked Questions (FAQ)
MODx Community Forums
»
Add-ons, Extensions & Elements
»
Navigation & Tagging/Taxonomy
»
Wayfinder & DropMenu
(Moderators:
zi
,
kylej
,
PaulGregory
)
»
DropMenu with indication of subpages?
Pages: [
1
]
2
Go Down
« Previous topic
Next topic »
Print
Author
Topic: DropMenu with indication of subpages? (Read 4752 times)
0 Members and 1 Guest are viewing this topic.
elander
Jr. Member
Posts: 26
DropMenu with indication of subpages?
«
on:
Jun 14, 2006, 03:35 PM »
Hi!
Is there a way to make DropMenu give a class to each page that has subpages? Sort of like the tree in the manager?
I use css to hide all list items except the ones with a parent with class="here", and I want a way to show visitors which pages have subpages...
I've searched extensively, but I'm either not using the right search words, or nothing has been written about this in the forums...
Logged
/elander
http://scribus.se
yoomai
Full Member
Posts: 247
Re: DropMenu with indication of subpages?
«
Reply #1 on:
Jun 15, 2006, 04:24 AM »
Good question. I'm interested in an answer, too. Somebody?
Logged
//
yoomai
cino
Jr. Member
Posts: 35
Re: DropMenu with indication of subpages?
«
Reply #2 on:
Jun 15, 2006, 09:32 AM »
There is an indication of the opposite. You have a class "last", whenever that page
do not
have any children.
Does this resolve your css matters?
Logged
davidm
Marketing & Design Team
Posts: 6,777
The best way to predict the future is to invent it
Re: DropMenu with indication of subpages?
«
Reply #3 on:
Jun 15, 2006, 09:41 AM »
Funny you ask this, I have the need for the very same thing, as anyone who builds a pure css dropmenu will if the're concerned with UI.
To my knowledge, DropMenu (and its variant) does not provide the necessary code to do what you (and I) need : e.g a css class for every folder with at least one children.
The "last" class won't help with this, I am afraid, as it only styles the last element of a list...
Logged
.:
nodeo.net
: Pour un web libre, moderne et ouvert ! ::
david-molliere.net
:
Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web
:.
***
Forums modxcms.fr
Participez à l'élaboration du site MODx francophone !
***
! Nouveau !
En live, ne manquez pas les news de modxcms.fr sur Twitter
! Nouveau !
MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.
Config :
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
Réalisations sous MODx :
|
pargade-notaires.fr
|
soleil.info
|
gican.asso.fr
|
michelez-notaires.com
|
amadom.gerondicap.com
|
jocelyne-violet.net
elander
Jr. Member
Posts: 26
Re: DropMenu with indication of subpages?
«
Reply #4 on:
Jun 16, 2006, 02:39 AM »
Quote from: cino on Jun 15, 2006, 09:32 AM
There is an indication of the opposite. You have a class "last", whenever that page
do not
have any children.
Does this resolve your css matters?
No and no. The "last" class is only applied to the last list item in the list. It doesn't apply to other list items, regardless of wether they have children or not. I've checked: I have a menu where the last four items in the main list don't have children, and only the last one gets the "last" class.
I need a "has_children"-class that applies to every list item with children, not only the last item on the list.
Logged
/elander
http://scribus.se
cino
Jr. Member
Posts: 35
Re: DropMenu with indication of subpages?
«
Reply #5 on:
Jun 16, 2006, 03:14 AM »
I see now. I can do that (I think).
Stand by.
Logged
davidm
Marketing & Design Team
Posts: 6,777
The best way to predict the future is to invent it
Re: DropMenu with indication of subpages?
«
Reply #6 on:
Jun 16, 2006, 06:24 AM »
That would be awesome
Logged
.:
nodeo.net
: Pour un web libre, moderne et ouvert ! ::
david-molliere.net
:
Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web
:.
***
Forums modxcms.fr
Participez à l'élaboration du site MODx francophone !
***
! Nouveau !
En live, ne manquez pas les news de modxcms.fr sur Twitter
! Nouveau !
MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.
Config :
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
Réalisations sous MODx :
|
pargade-notaires.fr
|
soleil.info
|
gican.asso.fr
|
michelez-notaires.com
|
amadom.gerondicap.com
|
jocelyne-violet.net
elander
Jr. Member
Posts: 26
Re: DropMenu with indication of subpages?
«
Reply #7 on:
Jun 16, 2006, 09:46 AM »
Quote from: cino on Jun 16, 2006, 03:14 AM
I see now. I can do that (I think).
Stand by.
Standing by, holding my brea...
Logged
/elander
http://scribus.se
ppaulousek
Guest
Re: DropMenu with indication of subpages?
«
Reply #8 on:
Jun 17, 2006, 07:08 AM »
I fear this is not a complete solution, just a hint:
children are always wrapped in a sub <ul> element. A childless node could therefore be detected by a li li sequence - i.e. with no ul in between. In CSS it should be possible to create a selector for this like "li>li".
Don't know if this helps, just a thought...
Logged
heliotrope
Coding Team
Posts: 2,447
Re: DropMenu with indication of subpages?
«
Reply #9 on:
Jun 17, 2006, 07:18 AM »
Quote
In CSS it should be possible to create a selector for this like "li>li".
I've tried to do so but IE (as usual shoud I say) does not offer support of this (as far as i know)
«
Last Edit: Jun 17, 2006, 07:24 AM by heliotrope
»
Logged
Made with MODx :
traduction en ligne
|
agence de traduction
|
copadel, fruits et légumes
|
Provence
|
Dictionnaire en ligne
Professional Website:
dixsix, communication interactive
Perrine
Moderators
Posts: 1,764
Re: DropMenu with indication of subpages?
«
Reply #10 on:
Jun 17, 2006, 07:33 AM »
You're right Heliotrope,
IE doesn't understand the children selector... it is so often used to make css hacks.
Logged
Nouveau sur MODx ?
||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...
Atelier d'architecture Gambino
Déco'In
: l'
idée déco
qu'il vous faut
HistWar :
jeu de stratégie
napoléonien
Ma config : MODx 0.9.6.2/3 || Apache 2.2.8 || PHP 5.2.6 || MySQL 5.0.45 || Debian 4.0 (Etch)
elander
Jr. Member
Posts: 26
Re: DropMenu with indication of subpages?
«
Reply #11 on:
Jun 17, 2006, 08:10 AM »
Also, the objective of the whole MODx project is to create a CMS that makes it easy to create validating and accessible web sites. Resorting to CSS hacks (or other hacks) is OK as long as you're a developer working on your own private site. Doing the same on a customers site is less OK. There's a good chance that things'll break when people their update browsers or the CMS. If you're the developer, you can bet your bottom dollar the customer will say it's your fault. And (s)he'll be right.
Logged
/elander
http://scribus.se
sottwell
Documentation Team
Posts: 8,170
Re: DropMenu with indication of subpages?
«
Reply #12 on:
Jun 17, 2006, 09:21 AM »
There is a bit of Javascript that makes IE behave more-or-less like a real browser:
https://sourceforge.net/project/showfiles.php?group_id=109983&package_id=119707
I've successfully used it to implement a remake of a framed site using "fixed" elements.
Then there is the "universal IE hack":
http://www.ibloomstudios.com/article7/
Unfortunately, like it or not, we will be stuck with either hacks or IE conditionals in our templates for a long, long time.
Logged
sottwell.com has moved to a lovely Solaris 10 server!
Log in
username guest, password guestuser.
Templates are now becoming available at
http://sottwell.com/templates.html
ppaulousek
Guest
Re: DropMenu with indication of subpages?
«
Reply #13 on:
Jun 19, 2006, 06:07 AM »
Since this cannot be solved by css and dropmenu's standard features you might have to jump in the source.
I found a control which might be appropriate for your issue:
$itsEmpty = ($isFolder && ($child['template'] == '0'));
So when $itsEmpty is false, the current folder
has
children or is not a folder, just a document. In the "construction-line" of the outstring for those items you may add a class-string (hack) or introduce a new parameter as a variable for it (non-hack).
Hope this helps.
«
Last Edit: Jun 19, 2006, 06:14 AM by ppaulousek
»
Logged
ppaulousek
Guest
Re: DropMenu with indication of subpages?
«
Reply #14 on:
Jun 19, 2006, 01:31 PM »
Ahem:
https://sourceforge.net/project/showfiles.php?group_id=109983&package_id=119707
contains a package of 21 files, apparently related to IE7. What should we do with this?
Logged
Pages: [
1
]
2
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Czech Community
-----------------------------
=> Oznámení
===> Důležitá oznámení/novinky
===> Bezpečnost
=> Podpora
===> FAQ (často kladené otázky)
===> Instalace
===> Moduly, pluginy, "snippets & code" (šablony zdrojových kódů)
===> Design & Šablony
=> Dokumentace, tutoriály (návody) a překlady
===> Dokumentace
===> Tutoriály (návody)
===> Překlady (lokalizace)
=> Komunita
===> Oznámení
===> Představte se, prosím
===> Ukázky práce
===> Různé aneb cokoli co se jinam nehodí
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı