mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28: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)
|
# Whether or not to generate a sitemap.xml listing the pages on the site (default: False)
|
||||||
GENERATE_SITEMAP = False
|
GENERATE_SITEMAP = False
|
||||||
|
|
||||||
|
# Whether to include media count numbers on categories and tags listing pages
|
||||||
|
INCLUDE_LISTING_NUMBERS = True
|
||||||
|
|
||||||
USE_I18N = True
|
USE_I18N = True
|
||||||
USE_L10N = True
|
USE_L10N = True
|
||||||
USE_TZ = 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.
|
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.
|
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
|
## 6. Manage pages
|
||||||
to be written
|
to be written
|
||||||
|
|||||||
@ -57,6 +57,7 @@ def stuff(request):
|
|||||||
ret["USE_SAML"] = settings.USE_SAML
|
ret["USE_SAML"] = settings.USE_SAML
|
||||||
ret["USE_RBAC"] = settings.USE_RBAC
|
ret["USE_RBAC"] = settings.USE_RBAC
|
||||||
ret["USE_ROUNDED_CORNERS"] = settings.USE_ROUNDED_CORNERS
|
ret["USE_ROUNDED_CORNERS"] = settings.USE_ROUNDED_CORNERS
|
||||||
|
ret["INCLUDE_LISTING_NUMBERS"] = settings.INCLUDE_LISTING_NUMBERS
|
||||||
ret["VERSION"] = VERSION
|
ret["VERSION"] = VERSION
|
||||||
|
|
||||||
if request.user.is_superuser:
|
if request.user.is_superuser:
|
||||||
|
|||||||
@ -49,6 +49,11 @@ export function UserItemMemberSince(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function TaxonomyItemMediaCount(props) {
|
export function TaxonomyItemMediaCount(props) {
|
||||||
|
// Check if listing numbers should be included based on settings
|
||||||
|
if (!window.MediaCMS.features.listings.includeNumbers) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span key="item-media-count" className="item-media-count">
|
<span key="item-media-count" className="item-media-count">
|
||||||
{' ' + props.count} media
|
{' ' + props.count} media
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -33,6 +33,9 @@ MediaCMS.features = {
|
|||||||
hideViews: false,
|
hideViews: false,
|
||||||
hideAuthor: false,
|
hideAuthor: false,
|
||||||
},
|
},
|
||||||
|
listings:{
|
||||||
|
includeNumbers: {% if INCLUDE_LISTING_NUMBERS %}true{% else %}false{% endif %},
|
||||||
|
},
|
||||||
playlists:{
|
playlists:{
|
||||||
mediaTypes: ['audio', 'video'],
|
mediaTypes: ['audio', 'video'],
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user