-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move logic to model #87
Conversation
I'm still fixing some things |
ok - ping back when its ready. Now you can see the limits of my abilities ;) |
So this part is ready, wanted to make it possible to layout this in the template but then the "htmlhelper link" comes between me and the solution... and I didn't want to make it to complicated |
yeah I tried the layout route myself and failed ;) |
js still missing, no idea if we have already a solution for this somewhere in our code base. I know it only from the menu button to call some js for reloading... |
yes we have the js for it in admin-add_module.js it is used to refresh the cpanel after adding a module |
Could you explain this code |
Thats the future proof part ;). I want to have this as patten also for other libs and extensions. My first approach was to have an additional key containing the parts to build the link in the template, but ended with the feeling of over engineering... ...$array explodes the array to function parameters... Maybe it makes sense to move the foreach part to a layout then we could move the link creation there too |
I understand you now about the new code. If you can document that a bit then I can have a go at converting others. |
No sure if I can do this today, no lunch and then I have to assemble my new pc... I will came up with a better solution later or tomorrow |
no problem. I am doing something similar now for smart-search but its much easier for that component |
Also added a more future proved way to add information to the layout.