I was just guessing.
ok, found it. I thought it was the dashboard, but that’s run through the ProjectListController.
sorry same nothing change lol
looks like it worked to me, im on your page now.
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),
)));
}
}
incredible …
i use chrome and try with incognito mode … i only see 20 items …
maybe a cache problem …
most likely, dump your cache.
i will try thanks for your prompt support !!! your tool is realy cool
and for full width, just change this file:
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:
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 …
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”
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.:
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:
This is an example of how it is currently done with the project title as the $label
:
So, in a nutshell, it should look something like this:
<?= $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
very cool thanks !!!
a question is possible and how to override this controler to create mine ? the goal => don’t loose this modification after update
regards
just create a plugin that uses a template override.
https://docs.kanboard.org/en/latest/plugins/index.html
do you need more help?
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?
you cannot override a controller.
a controller is called through a template. so if you wish to change which controller is called, you would need to override the template calling it.
this is not a controller. ive never tried, so, i do not know. I would say probably.
edit: i took a quick peak, and i do believe it can be overriden. something like the below should do it.
$this->container['dashboardPagination'] = $this->container->factory(function ($c) {
return new NewDashboardPagination($c);
});
where NewDashboardPagination
is your new pagination class, that you intend to replace it with
Hey creecros, thank you for your fast reply on this topic! I will give this a try and report later, if it works! (=
So I came up with something. I made it public in a new thread here (there’s the github link as well):