Hobo 1.4.0.pre6 - Unable to override <main-nav> if not done in application.dryml
Reported by Tim Griffin | May 24th, 2012 @ 10:18 PM
In implementing some tabbed dropped-down menus from the Hobo Cookbook, I discovered that with a Hobo 1.4.0.pre6 app, a redefinition of the main-nav tag is ignored unless it's done in application.dryml.
I moved my redefinition of this tag to its own file within the taglibs/application folder, and made sure that the file (e.g. "main-nav.dryml") was being included by application.dryml:
<%# Include all the other custom DRYML files %>
<include src="application/*"/>
But, it's ignored. If I move my redefinition back to application.dryml, it is processed.
Tim
Comments and changes to this ticket
-
Bryan Larsen May 25th, 2012 @ 02:37 PM
Stupid question, but is the include of application/* after the include of taglibs/auto/rapid/pages?
-
Tim Griffin May 25th, 2012 @ 05:44 PM
- Assigned user set to Owen
Ah hah!
It works as expected provided the
<%# Include all the other custom DRYML files %> <include src="application/*"/>
appears AFTER the standard includes:
<%# Include all the other custom DRYML files %>
Perhaps Owen could add a documentation note to the effect that in order to correctly override Hobo's own tag definitions, custom definitions should be loaded after the built-in definitions. (It makes sense, but wasn't obvious!). The best place I can see this being added is in the section "Taglibs", on Page 476 of the BETA-6 edition (2011-05-18), just after the phrase "When running in development mode, all of these libraries are automatically reloaded on every
request."Tim
Tim
-
Tim Griffin May 25th, 2012 @ 05:46 PM
Sorry, bad formatting in the last update.
Ah hah!
It works as expected provided the<%# Include all the other custom DRYML files %> <include src="application/*"/>
appears AFTER the standard includes:
<include src="taglibs/auto/rapid/cards"/> <include src="taglibs/auto/rapid/pages"/> <include src="taglibs/auto/rapid/forms"/> <%# Include all the other custom DRYML files %> <include src="application/*"/>
Perhaps Owen could add a documentation note to the effect that in order to correctly override Hobo's own tag definitions, custom definitions must be loaded after the built-in definitions. (It makes sense, but wasn't obvious!). The best place I can see this being added is in the section "Taglibs", on Page 476 of the BETA-6 edition (2011-05-18), just after the phrase "When running in development mode, all of these libraries are automatically reloaded on every
request."
Tim
Tim -
Owen July 23rd, 2012 @ 04:05 PM
- State changed from new to investigating
Thanks for that suggestion, Tim.
-
dordle January 13th, 2024 @ 04:53 AM
As a survival horror game, fnaf security breach was designed with accessibility in mind. The player in Five Nights at Freddy's takes on the role of a security guard working the evening shift.
-
Busiowe March 12th, 2024 @ 09:56 AM
These papa's games challenge players to step into the shoes of a chef or a restaurant owner and try to prepare delicious foods to satisfy hungry customers.
-
board games April 9th, 2024 @ 10:37 AM
This is a fun game, and if you play it with some pals, you're going to have a great time. One of my very good pals who is currently employed at lol beans is the one who introduced me to this game, and I've had the opportunity to collaborate with him on quite a few occasions when playing it. It is really incredible!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป