show all communities on home-page

302 views
Skip to first unread message

Jorge Alberto Bonilla Castaneda

unread,
Oct 14, 2022, 1:14:32 PM10/14/22
to DSpace Technical Support
hello, I would like to show the 8 communities that I have configured in my dspace 7.4, currently it shows only 5 as the custom theme is by default as seen in the image

Captura de pantalla 2022-10-14 110919.png

I have tried to search the documentation but I have not found any way to do it, improvising a bit try to modify the file:

[dspace-build-frontend]/src/app/home-page/top-level-community-list/top-level-community-list.component.spec.ts

Modify where it said:
elementsPerPage = 5;

changing it to 8 didn't work, then I tried changing it to 10 and it didn't work either.

Could you help me ?

Tim Donohue

unread,
Oct 14, 2022, 3:23:07 PM10/14/22
to Jorge Alberto Bonilla Castaneda, DSpace Technical Support
Hi,

This setting is configurable in your 'config.*.yml' file on the frontend.  It's the "topLevelCommunityList.pageSize" setting described here: 


Simply increase the number to 10 and it'll show them all for you.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Jorge Alberto Bonilla Castaneda <jorge....@udb.edu.sv>
Sent: Friday, October 14, 2022 12:14 PM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] show all communities on home-page
 
AVISO DE CONFIDENCIALIDAD: Este mensaje y cualquier archivo adjunto al mismo, se dirige exclusivamente a su(s) destinatario(s), y no puede ser compartido o reenviado a un tercero sin autorización del remitente. Solo puede ser utilizado por las personas o entidades a las cuales está dirigido.
Si usted no es el destinatario al que ha sido remitida esta información, queda prohibida, cualquier modificación, retención, difusión o copia total o parcial, y no puede emprender con ella ningún tipo de acción. Le rogamos que lo comunique inmediatamente por esta misma vía y proceda a su eliminación.
Si es miembro de la Comunidad Educativa de la UDB y viola lo anterior será sujeto a sanción disciplinaria conforme al Art.134, literales “r”, “s”, y “t” del Reglamento General Administrativo-Académico.

CONFIDENTIALITY NOTICE: The content of this email and any attachments are intended solely for the addressee(s). The information cannot be shared without the authorization of the sender. It can only be used by the intended recipients.
If you are not the intended recipient, you are hereby notified that any modification, dissemination, full or partial copy of this email is forbidden. You must not take any kind of action in reliance on it. Please, notify the sender by replying to this email and delete the message without copying or disclosing it.
If you are a member of the UDB community and were to violate the foregoing, you will be subject to disciplinary actions in accordance to Article 134, literal “r”, “s”, and “t” of the General Administrative-Academic Regulations.

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/38574f57-53a5-428f-9613-a09d301ee085n%40googlegroups.com.

Night Librarian

unread,
Oct 22, 2022, 7:48:34 PM10/22/22
to DSpace Technical Support
Greetings!

My home page was showing 5 out 27 communities in 7.2. I upgrade to 7.4 and set topLevelCommunityList.pageSize to 27.  It started to display 20 out 27 communities.  I changed it to 30, but it still shows 20 out 27. 

  topLevelCommunityList:
    # No. of communities to list per page on the home page
    # This will always round to the nearest number from the list of page sizes. e.g. if you set it to 7 it'll use 10
    pageSize: 30

Perhaps there is a place where I could edit /add page sizes, because it looks like default in most files I see is 5 for some things and 20 for some others?

Tim Donohue

unread,
Oct 24, 2022, 10:41:24 AM10/24/22
to Night Librarian, DSpace Technical Support
Hello,

Currently, all "pageSize" style variables will only accept (or round to) one of the default pageSizeOptions​ listed here: https://github.com/DSpace/dspace-angular/blob/main/src/app/shared/pagination/pagination-component-options.model.ts#L25

So, to show 27, you'd want to specify the next highest value in that list, which is 40.

Tim



From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Night Librarian <stani...@gmail.com>
Sent: Saturday, October 22, 2022 6:48 PM

To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: Re: [dspace-tech] show all communities on home-page
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.

Night Librarian

unread,
Oct 24, 2022, 7:38:24 PM10/24/22
to DSpace Technical Support
Thank you, Tim,

It worked like a charm!  Raised pageSize for topLevelCommunityList to 40 and all 27 communities display on the home page now. 

Reply all
Reply to author
Forward
0 new messages