Skip to content
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

[Feature] Enable/disable the filter and/or the page browser in the list plugin [jobapplications_frontend] #133

Open
zenoussi opened this issue Nov 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@zenoussi
Copy link

With a generally low number of vacancies, a page browser makes no sense.
If there are fewer or the same number of job vacancies with regard to the set maximum number per page settings.itemsOnPage, it makes no sense to display the page browser because it has no function.
A small number of job offers can be quickly achieved if the output of job offers is restricted to one category.

In my opinion, the display of the filter should be an option of the editor, which depends on the size of the respective project or also on the personalised number of job offers on a respective page.

@ghost
Copy link

ghost commented Nov 30, 2023

Sure one could do that, but you are free to do that in the template as you'd like. Feel free to make a PR if you come up with a general solution.

@ghost ghost added the enhancement New feature or request label Nov 30, 2023
@r4fx
Copy link

r4fx commented Feb 10, 2024

try this

Templates/Posting/List.html :

<f:if condition="{paginator.numberOfPages} > {settings.itemsOnPage}">
  <div class="job-offers-pagination">
    <f:render partial="Pagination"
              arguments="{pagination: pagination, paginator: paginator, action: 'list', constraint: constraint}"></f:render>
  </div>
</f:if>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants