Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/news/+personlink.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added a control panel setting for disabling the link for Person content types in teasers and listings. @iFlameing
10 changes: 10 additions & 0 deletions backend/src/kitconcept/core/controlpanel/kitconcept.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ class IKitconceptSettings(Interface):
required=False,
)

disable_profile_links = schema.Bool(
title=_("Non-clickable Profiles"),
description=_(
"Person profiles are not clickable in teasers, grids, listings, and search"
),
required=False,
default=False,
)


class KitconceptSettingsEditForm(RegistryEditForm):
schema = IKitconceptSettings
Expand Down Expand Up @@ -59,3 +68,4 @@ def __call__(self, data):
IKitconceptSettings, prefix="kitconcept.core.settings"
)
data["kitconcept.custom_css"] = settings.custom_css
data["kitconcept.disable_profile_links"] = settings.disable_profile_links
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-12-09 17:11+0000\n"
"POT-Creation-Date: 2026-01-22 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -50,10 +50,18 @@ msgstr "Generisches Setup-Profil mit Kernabhängigkeiten, die von CMF benötigt
msgid "Generic setup profile with dependencies used by kitconcept projects."
msgstr "Generisches Setup-Profil mit Abhängigkeiten, die von kitconcept-Projekten verwendet werden."

#: kitconcept/core/controlpanel/kitconcept.py:25
msgid "Non-clickable Profiles"
msgstr "Nicht anklickbare Profile"

#: kitconcept/core/profiles/dependencies/registry/querystring.xml
msgid "Path"
msgstr "Pfad"

#: kitconcept/core/controlpanel/kitconcept.py:26
msgid "Person profiles are not clickable in teasers, grids, listings, and search"
msgstr "Personenprofile sind in Teasern, Rastern, Listen und Suchergebnissen nicht anklickbar."

#: kitconcept/core/behaviors/configure.zcml:27
msgid "Person: Additional contact information"
msgstr "Person: Zusätzliche Kontaktinformationen"
Expand Down Expand Up @@ -93,7 +101,7 @@ msgstr "Kurzbiographie der Person."
msgid "help_person_image"
msgstr "Laden Sie ein normales Portraitbild mit Ihrem Kopf in der Mitte hoch."

#: kitconcept/core/controlpanel/kitconcept.py:27
#: kitconcept/core/controlpanel/kitconcept.py:36
msgid "kitconcept Settings"
msgstr ""

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-12-09 17:11+0000\n"
"POT-Creation-Date: 2026-01-22 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -50,10 +50,18 @@ msgstr ""
msgid "Generic setup profile with dependencies used by kitconcept projects."
msgstr ""

#: kitconcept/core/controlpanel/kitconcept.py:25
msgid "Non-clickable Profiles"
msgstr ""

#: kitconcept/core/profiles/dependencies/registry/querystring.xml
msgid "Path"
msgstr ""

#: kitconcept/core/controlpanel/kitconcept.py:26
msgid "Person profiles are not clickable in teasers, grids, listings, and search"
msgstr ""

#: kitconcept/core/behaviors/configure.zcml:27
msgid "Person: Additional contact information"
msgstr ""
Expand Down Expand Up @@ -93,7 +101,7 @@ msgstr ""
msgid "help_person_image"
msgstr ""

#: kitconcept/core/controlpanel/kitconcept.py:27
#: kitconcept/core/controlpanel/kitconcept.py:36
msgid "kitconcept Settings"
msgstr ""

Expand Down
12 changes: 10 additions & 2 deletions backend/src/kitconcept/core/locales/kitconcept.core.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-12-09 17:11+0000\n"
"POT-Creation-Date: 2026-01-22 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -53,10 +53,18 @@ msgstr ""
msgid "Generic setup profile with dependencies used by kitconcept projects."
msgstr ""

#: kitconcept/core/controlpanel/kitconcept.py:25
msgid "Non-clickable Profiles"
msgstr ""

#: kitconcept/core/profiles/dependencies/registry/querystring.xml
msgid "Path"
msgstr ""

#: kitconcept/core/controlpanel/kitconcept.py:26
msgid "Person profiles are not clickable in teasers, grids, listings, and search"
msgstr ""

#: kitconcept/core/behaviors/configure.zcml:27
msgid "Person: Additional contact information"
msgstr ""
Expand Down Expand Up @@ -96,7 +104,7 @@ msgstr ""
msgid "help_person_image"
msgstr ""

#: kitconcept/core/controlpanel/kitconcept.py:27
#: kitconcept/core/controlpanel/kitconcept.py:36
msgid "kitconcept Settings"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion backend/src/kitconcept/core/profiles/base/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>20251209001</version>
<version>20260122001</version>
</metadata>
1 change: 1 addition & 0 deletions backend/src/kitconcept/core/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
<include package=".v20250916001" />
<include package=".v20250917001" />
<include package=".v20251209001" />
<include package=".v20260122001" />

</configure>
Empty file.
18 changes: 18 additions & 0 deletions backend/src/kitconcept/core/upgrades/v20260122001/configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
>

<genericsetup:upgradeSteps
profile="kitconcept.core:base"
source="20251209001"
destination="20260122001"
>
<genericsetup:upgradeDepends
title="Adds disable_profile_links setting to kitconcept settings"
import_profile="kitconcept.core:dependencies"
import_steps="plone.app.registry"
/>
</genericsetup:upgradeSteps>

</configure>
2 changes: 1 addition & 1 deletion backend/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def current_versions() -> CurrentVersions:
from kitconcept.core import __version__

return CurrentVersions(
base="20251209001",
base="20260122001",
dependencies="1000",
package=__version__,
)
Expand Down