Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2005-12-19 03:38:04
- kdix
- Member
- From: Texas
- Registered: 2005-12-09
- Posts: 11
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
nighthawk
Unfortunately, the problem still remains. I uninstalled version 0.4, then installed 0.5. First I needed to change your <code><A HREF and </A></code> to lowercase in order to get that to validate. You may want to change that in your plugin since I’ve had to do it each time :)
Anyway, it seems to break on the 4th level. For instance, the community page is still broken, but a page with one less level of nesting is fine.
I can’t tell from the plugin code what would cause this. shrug
Last edited by kdix (2005-12-19 03:38:38)
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
@kdix
Sorry, I’m going nuts over this – I simply cannot reproduce this problem on my box. :( All the opened li-tags are closed nicely. BTW, from your description, it doesn’t break at 4th level, but at the 3rd.
The strange thing is: I always set /ul along with /li – there is not statement in the display code which solely places a /ul tag without then also immediately closing the previous list element. So, from a technical point of view, it is impossible that you get a closing /ul without the closing /li tag.
Can you send me an excerpt of your page code, please? Is it possible that you’re using more than one wow_plugin function call to display your tree instead of one, and that the opening li tag doesn’t originate from the plugin, but from your page code?
Last edited by nighthawk (2005-12-21 23:36:09)
Offline
#33 2005-12-24 12:20:32
- kdix
- Member
- From: Texas
- Registered: 2005-12-09
- Posts: 11
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
@nighthawk
I encountered another problem just now when I tried to change the order of something and save the changes:
<code>New menu order successfully saved.
Warning: Missing argument 3 for displaymenu() in /textpattern/lib/txplib_misc.php(455) : eval()’d code on line 131</code>
I changed some category names and the changes show up in my “Extensions” menu that is created by the plugin. They do not show up on the actual page on the site. For instance, on the Buying a Home page I have changed the category “Client Gateway Service” to “Email Home Search.” I see it in the Extensions tab, click Save Changes, then get the error message above and still see no change on my actual page.
Back to my first issue, the code that I’m using to display the menu on the Community is
<code><txp:wow_menu hide=“68,70,83,99,105” /></code>
So that is saying to hide the menu for “Buying a Home,” “Selling a Home,” “About Michele,” and “Contact Us”
So when I try to validate I get a bunch of errors from the list.
My list of sections/categories listed under the “Extensions” menu that the plugin creates is as follows…
<ul><li><a href=“index.php?c=Home”>Home</a></li><li><a href=“index.php?c=Buying-a-Home”>Buying a Home</a><ul><li><a href=“index.php?c=Active-Listings”>Active Listings</a><ul><li><a href=“index.php?c=Our-Listings”>Our Listings</a></li>
<li><a href=“index.php?c=The-Woodlands-New-Custom-Homes”>The Woodlands New Custom Homes</a></li>
<li><a href=“index.php?c=The-Woodlands-East-Shore”>The Woodlands East Shore</a></li>
<li><a href=“index.php?c=Search-Only-The-Woodlands-MLS”>Search Only The Woodlands MLS</a></li>
<li><a href=“index.php?c=All-Houston-MLS”>All Houston MLS</a></li></ul>
</li><li><a href=“index.php?c=Mortgage-Information”>Mortgage Information</a></li>
<li><a href=“index.php?c=Schedule-a-Visit”>Schedule a Visit</a></li>
<li><a href=“index.php?c=Email-Home-Search”>Email Home Search</a></li>
<li><a href=“index.php?c=Insurance-Information”>Insurance Information</a></li>
<li><a href=“index.php?c=Essential-Home-Services”>Essential Home Services</a></li>
<li><a href=“index.php?c=1031-Exchange”>1031 Exchange</a></li></ul>
</li><li><a href=“index.php?c=Selling-a-Home”>Selling a Home</a><ul><li><a href=“index.php?c=ProActive-Marketing”>ProActive Marketing</a></li>
<li><a href=“index.php?c=PGG-Performance”>PGG Performance</a></li>
<li><a href=“index.php?c=My-Homes-Current-Value”>My Home’s Current Value</a></li>
<li><a href=“index.php?c=Repairs-and-Services-Directory”>Repairs and Services Directory</a></li>
<li><a href=“index.php?c=Centralized-Showing-Service”>Centralized Showing Service</a></li>
<li><a href=“index.php?c=Neighborhood-Activity”>Neighborhood Activity</a></li></ul>
</li><li><a href=“index.php?c=Community”>Community</a><ul><li><a href=“index.php?c=The-Woodlands-FAQ”>The Woodlands FAQ</a></li>
<li><a href=“index.php?c=The-Woodlands-Photo-Gallery”>The Woodlands Photo Gallery</a></li>
<li><a href=“index.php?c=The-Woodlands-Country-Club”>The Woodlands Country Club</a></li>
<li><a href=“index.php?c=Schools”>Schools</a><ul><li><a href=“index.php?c=Public-Schools”>Public Schools</a></li>
<li><a href=“index.php?c=Private-Schools”>Private Schools</a></li>
<li><a href=“index.php?c=Community-College”>Community College</a></li>
<li><a href=“index.php?c=University-Center”>University Center</a></li></ul>
</li><li><a href=“index.php?c=Taxes-and-Statistics”>Taxes and Statistics</a><ul><li><a href=“index.php?c=Current-Market-Conditions”>Current Market Conditions</a></li>
<li><a href=“index.php?c=Real-Estate-Property-Tax”>Real Estate Property Tax</a></li>
<li><a href=“index.php?c=Appreciation-Rate-Charts”>Appreciation Rate Charts</a></li>
<li><a href=“index.php?c=Cost-of-Ownership-Comparisons”>Cost of Ownership Comparisons</a></li>
<li><a href=“index.php?c=Demographics”>Demographics</a></li>
<li><a href=“index.php?c=MCAD”>MCAD</a></li></ul>
</li><li><a href=“index.php?c=Town-Center”>Town Center</a><ul><li><a href=“index.php?c=Entertainment”>Entertainment</a><ul><li><a href=“index.php?c=Pavilion-Schedule”>Pavilion Schedule</a></li>
<li><a href=“index.php?c=Northshore-Park”>Northshore Park</a></li>
<li><a href=“index.php?c=Central-Park”>Central Park</a></li>
<li><a href=“index.php?c=Movie-Theatres”>Movie Theatres</a></li></ul>
</li><li><a href=“index.php?c=Market-Street”>Market Street</a></li>
<li><a href=“index.php?c=The-Woodlands-Mall”>The Woodlands Mall</a></li>
<li><a href=“index.php?c=The-Woodlands-Waterway-Arts-Festival”>The Woodlands Waterway Arts Festival</a></li></ul>
</li><li><a href=“index.php?c=Government”>Government</a><ul><li><a href=“index.php?c=The-Woodlands-Governance”>The Woodlands Governance</a></li>
<li><a href=“index.php?c=The-Woodlands-Homeowners-Association”>The Woodlands Homeowners Association</a></li>
<li><a href=“index.php?c=Village-Associations”>Village Associations</a></li>
<li><a href=“index.php?c=Montgomery-County”>Montgomery County</a></li>
<li><a href=“index.php?c=State-of-Texas”>State of Texas</a></li></ul>
</li></ul>
</li><li><a href=“index.php?c=About-Michele”>About Michele</a><ul><li><a href=“index.php?c=Recognition”>Recognition</a></li>
<li><a href=“index.php?c=Resume”>Resume</a></li>
<li><a href=“index.php?c=Client-Comments”>Client Comments</a></li>
<li><a href=“index.php?c=The-Team”>The Team</a></li>
<li><a href=“index.php?c=Realtor-Referral-Network”>Realtor Referral Network</a></li></ul>
</li><li><a href=“index.php?c=Contact-Us”>Contact Us</a><ul><li><a href=“index.php?c=Email”>Email</a></li>
<li><a href=“index.php?c=Phone-and-Fax”>Phone and Fax</a></li>
<li><a href=“index.php?c=Skype-VoIP-Calls”>Skype VoIP Calls</a></li>
<li><a href=“index.php?c=Live-Chat”>Live Chat</a></li></ul></li></ul>
Last edited by kdix (2005-12-24 12:28:08)
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
@kdix
Sorry for the error, this was my fault (forgot to pass on a variable) – this will be fixed soon, but shouldn’t cause a problem though.
Regarding the changes: You need to save the menu order once again after you have made changes to your categories, no matter if it’s names or parent-child-relationships. Otherwise, the menu plugin will not recognize the changes. If you did that and it still isn’t visible online, I wonder if you probably cache the site? From a code point of view, this behaviour isn’t possible because the plugin always uses the names set through Textpattern – it doesn’t store category name information of its own. :/
Anyway – the next version with the fix for the bug mentioned above will be out shortly. Even though I believe this is not related to the problem you’re mentioning, maybe you want to give it a try.
Regarding the validation: Please give me a hand here, because the HTML source of the page doesn’t look like it has been generated by the wow_menu plugin (it’s much too orderly for that ;). I tried the validation of your page, and to be honest, the response from the validator looks wrong to me. It mentions that opening “ul“s are missing, but this is not the case when looking at the page’s source code.
If there is a problem with the validation, I can only work with the code which has been solely created by the plugin. Please bear with me – I’m happy to help you out if there are plugin problems, but once you modify the code or use it in a way which I can’t analyze due to lack of access to your txp setup/page code, I cannot help you. :(
Have a good start into 2006!
Offline
#35 2005-12-31 19:31:46
- kdix
- Member
- From: Texas
- Registered: 2005-12-09
- Posts: 11
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
@nighthawk
Well, the only thing that I have changed in the plugin was <code>A HREF</code> to lowercase <code>a href</code>. That is a trivial change in itself. NO other portion of the plugin has been modified. If you need to see this, I have pasted it here
The code for the menu when you look at my source is under <code><div id=“content”></code>. If you look at the Buying a Home list for example, you should see the following (NOTE: I have taken it into an editor and added carriage returns and tabs to allow for easier viewing. The problem area in the code will be in all caps – also pasted here for easier viewing)
<code><div id=“menutree”>
<ul>
<li><a href=“index.php?c=Buying-a-Home”>Buying a Home</a>
<ul>
<li><a href=“index.php?c=Active-Listings”>Active Listings</a>
<ul>
<li><a href=“index.php?c=Our-Listings”>Our Listings</a></li>
<li><a href=“index.php?c=The-Woodlands-New-Custom-Homes”>The Woodlands New Custom Homes</a></li>
<li><a href=“index.php?c=The-Woodlands-East-Shore”>The Woodlands East Shore</a></li>
<li><a href=“index.php?c=Search-Only-The-Woodlands-MLS”>Search Only The Woodlands MLS</a></li>
<li><a href=“index.php?c=All-Houston-MLS”>All Houston MLS</a></li>
</ul>
THERE SHOULD BE A CLOSING </li> TO END THE ACTIVE LISTINGS SUB-MENU
Hopefully that makes some sense. It is not a problem with the validator, it is simply catching that there is no closing tag for the Active Listings sub-menu.
“If you did that and it still isn’t visible online, I wonder if you probably cache the site?”
You were correct, it was cached in Firefox, clearing the cache showed the correct results. Thank you for that suggestion!
Have a wonderful 2006 too!
Last edited by kdix (2005-12-31 19:35:28)
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
this looks very interesting. but where can I learn about how to use it?
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
#37 2006-01-07 23:52:04
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
Install it and read the help, it’s got all you need to know.
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
oh, I didn’t know about the help grin
maybe I am that dumb, or just too tired…
thanks!
…but now I see I think it doesn’t help me with what I want to do, that is, to sort the categories by id, not alphabetically.
Any ideas?
Last edited by BZ (2006-01-07 23:59:51)
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
Pls read the help text – you can sort the menu items in any way you want, but you need to do it manually. There is not “autosort by ID” kind of thing.
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
oh, ok, I saw the new extensions tab just now – it works wonderfully!
And I shouldn’t ask questions any more when it’s time to go to bed…
Thanks a lot!
Last edited by BZ (2006-01-08 09:06:04)
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
#41 2006-01-09 21:02:46
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
Thanks for this, it’s brilliant! How would I apply a css class or id to show the active link?
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
just the option to show the article count for each category would make it perfect!
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
Greets,
thanks for using the plugin. :) Andrei – who recently offered his help in further developing the plugin – and I will look into your requests, especially the option to add an identifying tag for the currently selected menu item. BUT — please remember that this is only half of the problem. You will also need an option to change the item highlight when the user follows a link which is not part of the menu, for example if he clicks on a link somewhere on your page which would require a totally different branch of the menu tree to be displayed.
This functionality is quite difficult to implement, given the fact that it requires external control through JavaScript (at the moment, it’s all plain CSS). We’ll spend some more thought on that, but it’ll take us a while until we will add this feature – first of all, the basic functionality needs to be fully stable.
@BZ: Greetings to Stuttgart. :) I think your request has already been tackled by Andrei – if everything goes well, it’ll be included in the next release, so stay tuned.
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
Okay, lots of things have been added in the latest release (0.8), which is also why we left out 0.7 (it took us a while to get to this release, after all! :).
Especially for BZ, we have added the support for displaying the number of articles. ;) Please test it thoroughly, not sure if it works correctly – this goes for all changes in this release BTW. We modified so many things that stuff which had already been ok’ed might start acting up, so… beware and let us know if you find bugs.
@oldi, I don’t know if this release fixes your problem, but Andrei has changed the way the category references work. Try it out, please.
Many other users have requested a feature to highlight the active LI item. Well, we can’t do that for you (you’ll have to write the JavaScript yourself :), but we can pass on all the data you need from the plugin. This release features id attributes for all LIs and ULs so you can grab them through the DOM manipulation functions in JavaScript, which should make highlighting easy.
There’s also a new JavaScript array which holds all the UL id’s for each LI item. This means that if you work with dynamic menus and want to automatically display the proper branches for the active element, you simply need to grab the corresponding id’s from the array and use a JavaScript to make sure these ULs are displayed.
And last but not least, there’s the “section auto-link” (sal) feature. The problem is that you sometimes have to use a section instead of a category to achieve certain design/structural goals (I mean, if we’re honest, categories aren’t the things to build a menu from – if we’d do it correctly, we’d need to use sections). wow_menu now offers a way to link to sections, too: Just make sure there’s a category with the exact same name, and the link will automatically point to the section instead of the category. Of course you can switch this off if you want to. The only problem is that the article count is not gonna work for these menu entries – we still have to figure out what to do about this – feedback welcome.
And yes, did I mention that we now support unmessy URLs? I can’t test that on my machine, so please give it a shot and let us know if it works ok for you.
All in all: Lots of new stuff to try out. Please go ahead! :)
Offline
Re: [plugin] [ORPHAN] wow_menu-Full menu control (order, hide/show items, subtree)
oh, I am feeling honoured! Thank you very much for your effort :)
I will test it as soon as possible. Greetings to FRA!
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline