mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-05 23:18:53 -05:00
fix
This commit is contained in:
parent
7324a0def7
commit
603fe16fca
@ -100,6 +100,9 @@ RELATED_MEDIA_STRATEGY = "content"
|
||||
# Whether or not to generate a sitemap.xml listing the pages on the site (default: False)
|
||||
GENERATE_SITEMAP = False
|
||||
|
||||
# Whether to include media count numbers on categories and tags listing pages
|
||||
INCLUDE_LISTING_NUMBERS = True
|
||||
|
||||
USE_I18N = True
|
||||
USE_L10N = True
|
||||
USE_TZ = True
|
||||
|
||||
@ -538,6 +538,22 @@ By default `CAN_SEE_MEMBERS_PAGE = "all"` means that all registered users can se
|
||||
By default, users do not require approval, so they can login immediately after registration (if registration is open). However, if the parameter `USERS_NEEDS_TO_BE_APPROVED` is set to `True`, they will first have to have their accounts approved by an administrator before they can successfully sign in.
|
||||
Administrators can approve users through the following ways: 1. through Django administration, 2. through the users management page, 3. through editing the profile page directly. In all cases, set 'Is approved' to True.
|
||||
|
||||
### 5.29 Show or hide media count numbers on categories and tags pages
|
||||
|
||||
By default, the number of media items is displayed next to each category and tag on the `/categories` and `/tags` pages. To hide these numbers:
|
||||
|
||||
```
|
||||
INCLUDE_LISTING_NUMBERS = False
|
||||
```
|
||||
|
||||
To show the numbers (default behavior):
|
||||
|
||||
```
|
||||
INCLUDE_LISTING_NUMBERS = True
|
||||
```
|
||||
|
||||
This setting affects only the visual display on the categories and tags listing pages and does not impact the functionality of filtering by categories or tags.
|
||||
|
||||
|
||||
## 6. Manage pages
|
||||
to be written
|
||||
|
||||
@ -57,6 +57,7 @@ def stuff(request):
|
||||
ret["USE_SAML"] = settings.USE_SAML
|
||||
ret["USE_RBAC"] = settings.USE_RBAC
|
||||
ret["USE_ROUNDED_CORNERS"] = settings.USE_ROUNDED_CORNERS
|
||||
ret["INCLUDE_LISTING_NUMBERS"] = settings.INCLUDE_LISTING_NUMBERS
|
||||
ret["VERSION"] = VERSION
|
||||
|
||||
if request.user.is_superuser:
|
||||
|
||||
@ -49,6 +49,11 @@ export function UserItemMemberSince(props) {
|
||||
}
|
||||
|
||||
export function TaxonomyItemMediaCount(props) {
|
||||
// Check if listing numbers should be included based on settings
|
||||
if (!window.MediaCMS.features.listings.includeNumbers) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<span key="item-media-count" className="item-media-count">
|
||||
{' ' + props.count} media
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -33,6 +33,9 @@ MediaCMS.features = {
|
||||
hideViews: false,
|
||||
hideAuthor: false,
|
||||
},
|
||||
listings:{
|
||||
includeNumbers: {% if INCLUDE_LISTING_NUMBERS %}true{% else %}false{% endif %},
|
||||
},
|
||||
playlists:{
|
||||
mediaTypes: ['audio', 'video'],
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user