Hi, Just wondering if someone could point me in right direction.
I’m trying to change card layout in expanded board view.
It seems bit troublesome to have overview of many cards on small screens, it requires lots of scrolling.
Compact view its fantastic for seeing more cards, but also limits information displayed.
I’m trying to achieve something middle of road… ie Compact ish card in expanded view.
Here is example of standard card…
And here is possible idea of layout I’m looking after
btw… I have already removed task_id and assigne_name
there is also some customization of whats is displayed in BoardCustomizer Plugin … but I’m more after re-positioning items… especially footer.
Any advise , perhaps info about which files/ templates need to be modified would be great…
Although this is new world to me I would love to spend some time learning and tweaking this great software.
Eventually would love to do it as plugin, however don’t yet have enough understanding how to even start plugin development…
At the moment I’m only tinkering (and learning) code in template files (that’s how I removed task Id and assignee name… - thanks to other forum posts )
Don’t really understand yet whole Kanboard structure of files etc … or even code, its bit of guess work for me… my programming skill is limited to Delphi which I last used few years ago. However I’m willing to learn …and get back to coding.
What would you recommend to get myself upto speed?
Anyway going back to custom card layout…
I was think initially to modify templates. (as it seems most likely for me to succeed ) Hopefully anyway
Maybe this is a good start. In the plugin.php file is defined, what the plugin does.
With $this->template->setTemplateOverride('header', 'theme:layout/header'); the original Kanboard template/header.php is replaced with the layout/header.php in the sample plugin. So you don’t have the change the core files, you could replace them via additional files in your plugin folder.
And take a look in the plugin development section in the does.
Your message was really helpful as I have managed to apply previous changes in form of plugin… instead of changing core files.
Also had some progress in trying to achieve custom layout.
However not entirely yet sure what I’m doing as although it seems to work I don’t know how to control formatting… I believe I have broken some ccs part of it. Excuse my ignorance…
Here is what I got so far:
I’ve used template override for
Essentially in task_private.php under expanded view I’m only calling footer and avatar. task_footer.php now also renders dropdown and edit as well as Task title and everything else.
I’m not able yet to remove Task title "large bottom margin / spacing…
and as per image above… all sections are together with same formatting… ie Category is no longer aligned to right etc (also task-board-icons are no longer grey and small)
Only way I so far found to group sections together (like tags , date, category) was by using: <div style=“display:inline-block”…
which I believe is responsible for messing up formatting… I’n not sure though.
Anyway thanks again… would much appreciate any new pointers if you find spare minute.
Just a word of encouragement to say that if you were to release this as a plugin, I, and possibly quite a few others, would be interested in using it being able to compact card elements (especially tags, categories, etc.) into a single row is one of the limitations of what I couldn’t do with simple “custom CSS” rules… so I’ll be keeping an eye on this thread!
Yeah sure hopefully I will get it to stage when its good enough for public release (thats if/when I learn how to release plugin )
Even If I wont be able to achieve this I can always share my changes so you can apply those yourself.
tbh if you don’t mind fact that Category and due date are not always in same place, this already seem like decent improvement. (I mean if there is no tag/ date Category will be aligned to left - ie not all card look same )
Anyway on other note I have noticed slight nuisance having cards “semi-compacted” : there seems to be a lot tool tips appearing erratically … Initially assumed it was down to my code changes but later found out its just default behaviour… after quick forum search I coincidentally found your post about side bar to eliminate unpredictable tool tips behaviour… I got to agree that would be way better solution as it would also show all info on side bar even with compacted board view…
all this made me question my custom view idea but same time I don’t think I will be using lots of field with tooltips so I might be able to live with it… this may not be case for others though.
OK I’ve done some progress with custom view…
As I wasn’t able to keep nice look/ formatting in my original concept I tried to go further and actually do some sort if auto - resize view…
I reordered items based of my use starting with category (which mostly will be present)
This approach ain’t pretty and quite “busy” but it seems to compact cards to quite good degree… Especially when used with BlueTeck BoardCustomizer plugin…
Here is example of few cards on board with 6 columns. Card size is related to amount of information on card:
Here is example with some of items removed using BoardCustomizer plugin.
I’m finding difficult to tweak formatting … (I cannot find Date formatting ) I hopefully will be able to improve it a little bit…
Main drawback with this idea: information isn’t fixed to same position… cards can be bit confusing ( perhaps this will not bother me too much… dont know yet)
I guess it may work well with board containing less columns.
Whats your thoughts? thanks
with BlueTeck material design it looks not too bad