These are chat archives for jbroadway/elefant

21st
Sep 2015
xmory
@xmory
Sep 21 2015 04:50
When I use the default site navigation builder, it doesn't seem to fit some frontend frameworks, such as ul or li nodes need to be added some classes. Another, elefant crud-app command generate default views, which maybe not exact what I want. especially I should not modify the templates for further updates. There will no one-size-fits-all solution, but it can be more customizable.
xmory
@xmory
Sep 21 2015 04:57
I tried to solve this. I create a small app, add a option named "theme". If theme is set to "bootstrap", view in apps/{appname}/views/{theme} will be used to build the navbar. Then I can create bootstrap, or anything else to fit my need. I think it will also be useful for generate command, ust a small change.
My codes is simple, I can share it later. But because I don't realize the navigation class very much, it just fits for a simple use.
xmory
@xmory
Sep 21 2015 05:12
Another suggestion is, the $page->add_script method. The default place to be added is "head". A better way is to add js to tail, and css link to head.