# Modify dashboard

**URL:** <https://kanboard.discourse.group/t/modify-dashboard/1440>\
**Category:** Open Discussions\
**Created:** [September 30, 2020, 8:54am UTC](https://kanboard.discourse.group/t/modify-dashboard/1440 "2020-09-30T08:54:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [September 30, 2020, 8:54am UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/1 "2020-09-30T08:54:16Z")

</div>

hello i want to change something in dasboard …  
like this  
with css i create a base but need more explain

 ![2020-09-30_10h47_49](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/1X/b49ed1ee4e3448f310db74614d1d92bd6d40f489.png)  
1 how to display imge porject in full with with text after  
2 how to change number of project with pagination ?  
=\> what is the technique to acheive this ? (plugin, template override ?)  
regards

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [September 30, 2020, 12:30pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/2 "2020-09-30T12:30:58Z")

</div>

1.) The image is provided through the cover image plugin, not kanboard core. Your best bet would be to edit that plugin directly to achieve full width. If you do it right, you could make a pull request, but not sure how that would play out for users without your edits, I cant remember if I have collab on that repo, so you’d have to talk to bluetek.

2.) I think the task limit is defined here:

> <https://github.com/kanboard/kanboard/blob/4c68ab4dbdc3ed290a3ff5513bb5067a5e228f12/app/Pagination/DashboardPagination.php#L36>

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [September 30, 2020, 1:00pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/3 "2020-09-30T13:00:20Z")

</div>

cool thanks ! did you recommand to use a plugin or maybe it can be an option in global config (for pagination)?

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [September 30, 2020, 1:45pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/4 "2020-09-30T13:45:05Z")

</div>

i try to set max(40) nothing change only 20 peer 20

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [September 30, 2020, 1:54pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/5 "2020-09-30T13:54:35Z")

</div>

I was just guessing.

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [September 30, 2020, 5:16pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/6 "2020-09-30T17:16:51Z")

</div>

ok, found it. I thought it was the dashboard, but that’s run through the ProjectListController.

> <https://github.com/kanboard/kanboard/blob/4c68ab4dbdc3ed290a3ff5513bb5067a5e228f12/app/Controller/ProjectListController.php#L35>

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [September 30, 2020, 5:33pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/7 "2020-09-30T17:33:43Z")

</div>

sorry same nothing change lol

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [September 30, 2020, 5:38pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/8 "2020-09-30T17:38:31Z")

</div>

looks like it worked to me, im on your page now.

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [September 30, 2020, 5:53pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/9 "2020-09-30T17:53:22Z")

</div>

strange that already display " Éléments 1 à 10 sur 24← PrécédentSuivant →"

```
        $paginator = $this->paginator
        ->setUrl('ProjectListController', 'show')
        ->setMax(100)
        ->setOrder('name')
        ->setQuery($query)
        ->calculate();

    $this->response->html($this->helper->layout->app('project_list/listing', array(
        'paginator' => $paginator,
        'title' => t('Projects') . ' (' . $paginator->getTotal() . ')',
        'values' => array('search' => $search),
    )));
}

```

}

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [September 30, 2020, 5:55pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/10 "2020-09-30T17:55:53Z")

</div>

![test_paginator](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/1X/9819cdef2627fab34516286e81833819497a1d8a.gif)

all 39 projects show for me.

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [September 30, 2020, 5:57pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/11 "2020-09-30T17:57:46Z")

</div>

incredible …  
i use chrome and try with incognito mode … i only see 20 items …  
maybe a cache problem …

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [September 30, 2020, 5:58pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/12 "2020-09-30T17:58:11Z")

</div>

most likely, dump your cache.

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [September 30, 2020, 5:58pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/13 "2020-09-30T17:58:46Z")

</div>

i will try thanks for your prompt support !!! your tool is realy cool

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [September 30, 2020, 6:17pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/14 "2020-09-30T18:17:46Z")

</div>

and for full width, just change this file:

> <https://github.com/BlueTeck/kanboard_plugin_coverimage/blob/master/Template/dashboard/overview.php>

by removing `vspace="5" hspace="3" height="25"` from the `<img src`  
and add `width="100%"`

and remove the `class="avatar avatar-20 avatar-inline"`, replace with your own class and then add some css for it to round the corners.

result:  
 ![image](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/1X/047b8c961b122453522f518be89694d3936e1f1b.png)

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [October 1, 2020, 9:15am UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/15 "2020-10-01T09:15:37Z")

</div>

its very cool  
=\> other question how to add link in image ? i check code for title but not sure  
for me only 25 item per page … i change computer for testing … its realy incredible i try with an other account same …

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [October 1, 2020, 1:07pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/16 "2020-10-01T13:07:17Z")

</div>

Each view has it’s own controller, so it depends on which view you are using. If all you see is 25, then you are going through the Dashboard controller to “My Projects”

> <https://github.com/kanboard/kanboard/blob/4c68ab4dbdc3ed290a3ff5513bb5067a5e228f12/app/Controller/DashboardController.php#L74>

There isn’t just 1 location to set the paginator limit. You have to account for all the possibilities.

To make the image a link, you need to wrap it with an `<a>` tag using the `href` attribute.  
i.e.:

```auto
      The following image works as a link:<br>
      <a href="https://www.qries.com/">
         <img alt="Qries" src="https://www.qries.com/images/banner_logo.png"
         width=150" height="70">
      </a>

```

To do this, you will need to send the entire `<img>` code, as the `$label` to the link function in the UrlHelper via `$this->url->link`

for reference:

> <https://github.com/kanboard/kanboard/blob/master/app/Helper/UrlHelper.php#L98-L101>

This is an example of how it is currently done with the project title as the `$label`:

> <https://github.com/kanboard/kanboard/blob/4c68ab4dbdc3ed290a3ff5513bb5067a5e228f12/app/Template/project_list/project_title.php#L11>

So, in a nutshell, it should look something like this:

```auto
<?= $this->url->link('
    <span class="mynewclasstoroundthecorners">
        <img src="'<?= $this->url->href('FileViewerController', 'thumbnail', array('file_id' => $file['id'], 'project_id' => $project['id'])) ?>'" title="'<?= $this->text->e($file['name']) ?>'" alt="'<?= $this->text->e($file['name']) ?>'" width="100%">
    </span>', 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>

```

my apostrophes/quotes may not be correct, but you get the idea, i hope

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [October 1, 2020, 8:47pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/17 "2020-10-01T20:47:30Z")

</div>

very cool thanks !!!

---

<div class="post-metadata">

**Author:** ![micker](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/micker/32/108_2.png) [@micker](https://kanboard.discourse.group/u/micker)\
**Post date:** [June 10, 2021, 9:09am UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/18 "2021-06-10T09:09:37Z")

</div>

a question is possible and how to override this controler to create mine ? the goal =\> don’t loose this modification after update  
regards

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [June 13, 2021, 11:20am UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/19 "2021-06-13T11:20:47Z")

</div>

just create a plugin that uses a template override.

[https://docs.kanboard.org/en/latest/plugins/index.html](https://docs.kanboard.org/en/latest/plugins/index.html)

do you need more help?

---

<div class="post-metadata">

**Author:** ![Tagirijus](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/tagirijus/32/1528_2.png) [@Tagirijus](https://kanboard.discourse.group/u/Tagirijus)\
**Post date:** [March 3, 2023, 6:29pm UTC](https://kanboard.discourse.group/t/modify-dashboard/1440/20 "2023-03-03T18:29:09Z")

</div>

> [@creecros](#):
>
> just create a plugin that uses a template override

Hey Creecros. I am new here and I have a similar problem. I am at a point where I seem to understand the `setTemplateOverwrite` method and logic. The post starter asked about override a **controller** and you answered with the _template overriding logic_. Just to be clear, since I am still learning the plugin logic etc.: template overriding cannot override _controllers_, right? Or am I missing something?

E.g. would it be possible to override the **app/Pagination/DashboardPagination.php** with a plugin?

[Next page](https://kanboard.discourse.group/t/modify-dashboard/1440.md?page=2)
