Menu question - why doesn't menuName attribute cause a page's menu to change?

12 views
Skip to first unread message

Rick Cogley

unread,
Oct 28, 2014, 6:47:48 AM10/28/14
to far...@googlegroups.com
Hello - I've been opening up OPML files to see how menus can be set up, and am trying to use a structure like this - 

* In cmsPrefs - add a #menus item with default and rick2 items, with the idea of having the default take over for the one baked into globalPrefs.opml, and be able to specify the rick2 one, as needed.
* In my cogley.opml outline - specify #menuName "default" at the root level, and, specify an attribute of menuName=rick2 on a specific page, to have its menu be different from the default. 

I'm expecting that specifying menuName=rick2 on a given page, or, for the whole cogley.opml outline in the #menuName line at the root, will cause the menu to update, but it doesn't. 

What is happening is that, the "default" menu override works fine. When I use the name "default" I can set the whole outline's menu. But with "named" menus namely "rick2" on the Reader Macro Test page, it just stays the same as the default, not changing to the alternate menu. 

I notice that there are a few named menus in Dave's cmsPrefs, but this style is not working for me. 

Does anyone happen to know, is there a reason this would not work in the way I have it set up? 

Also, what's the purpose of the #menus' < % menuTitle % >? I saw some other examples which did not use it, but rather just a text string. 

Please advise and, I appreciate any help. 
Sincerely,
Rick 

Reference:

* My main outline cogley.opml
* My Reader Macro Test page on which I'm trying to specify the rick2 menu

Rick Cogley

unread,
Oct 28, 2014, 7:35:48 AM10/28/14
to far...@googlegroups.com
What I tried: 

* render all pages, render that single page
* delete pack file and re-render
* delete files in S3 and re-render
* in cmsprefs.opml, move rick2 menu up above default menu, in case there's an impact with order, and, re-render

I'm not seeing any errors in the javascript console in Chrome, when I render or take any other actions for that matter. 

FYI and kind regards,
Rick 

Dave Winer

unread,
Oct 28, 2014, 8:45:41 AM10/28/14
to far...@googlegroups.com
Try using "menuname" instead of "menuName".

--
Fargo docs: http://fargo.io/docs/
 
How to ask for help with software: http://scripting.com/2014/03/19/howToAskForHelpWithSoftware.html
 
Mail list: https://groups.google.com/d/forum/fargo2
---
You received this message because you are subscribed to the Google Groups "fargo2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fargo2+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rick Cogley

unread,
Oct 28, 2014, 9:11:51 AM10/28/14
to far...@googlegroups.com, da...@smallpicture.com
And "boom" it's fixed. Thanks, Dave! 
So, as a rule, should these attributes always be lowercase? 
Reply all
Reply to author
Forward
0 new messages