Hello everyone. I am creating a Tainacan site with map view. Is it possible to:
1 - Auto hide filters on the left
2 - Set Items per page default to my custom number (999 here)
pls see the image attached.
Hi @Fatih_Gunes!
For the first question, this setting will be provided either by the block settings or by your theme.
If you are using Tainacan Interface, you can find this option in âThemesâ â âCustomizerâ â âTainacan Items List Pageâ â âFilters panelâ â âBegin with filters collapsedâ.
If you are using Blocksy with the Integration plugin, you can find it in âThemesâ â âCustomizerâ â âYour Collection Items Listâ â âFilters panelâ â "Begin with filters collapsed.
To define a custom max per page it is a bit more tricky. As you may have noticed, you can manually type this in the URL. However, there is a block of 96 maximum items in the API, which nowadays can only be tweaked via a PHP constant:
define(âTAINACAN_API_MAX_ITEMS_PER_PAGEâ, 999);
Keep in mind that this limit exists for a reason: the more items and metadata you have, the more your server will suffer to load all of them. However we do intend to offer this option via UI in the future. By setting it, the new value will be available for selection in the âItems per pageâ dropdown.
In Tainacan Interface you should be able to find this at âThemesâ â âCustomizerâ â âTainacan Items List Pageâ â âPagination sectionâ â âDefault items per pageâ. Iâm afraid in Blocksy I havenât implemented an option to change the default items per page state.
No matter which theme you are using you define both the filters state and the default items per page with more freedom in any page using the Faceted Search Gutenberg block (or the tainacan-search
shortcode). However, if you are not interested in exposing filters, pagination and search control options, you can also use the Dynamic Items List block and set it to the View Mode of your preference, thanks to the recently added feature of using Tainacan View Modes on it:
Hope this put you in a path to achieve what you want
Dear @mateus.m.luna , if there was a category on forum leadership in Paris Olympics started yesterday, you would definitely win the gold medal!
I did exactly what you directed and the site seems just as I imagine: ottomanhistoryisis.org
Iâm glad it worked! BTW @tragnesia since you were looking for examples of people using the Geocoordinate metadatum, here is a nice example
@mateus.m.luna thanks for tagging! indeed a great example of the geolocation tool.
@Fatih_Gunes great repository!
Este tĂłpico foi fechado automaticamente 5 dias depois da Ășltima resposta. Novas respostas nĂŁo sĂŁo mais permitidas.