Default (News)
Loading...
News
Loading...
Events
Loading...
Galleries
Loading...
Videos
Loading...
Each variation will be presented in the following section.
component)This blueprint is based on the blueprint of Veams.
Veams#5.0.0veams install bp absolute/filepath/to/newsroom-ch
newsroom-ch.hbs| Parameter | Type | Default | Description |
|---|---|---|---|
| settings.newsroomChClasses | String | '' |
Modifier classes for component |
| settings.newsroomChContextClass | String | 'default' |
Context class of component |
| Parameter | Type | Description |
|---|---|---|
| content.newsroomChField | String | Please add a description! |
The FirstSpirit sources live in templates/fs-templates/:
| Template | Role |
|---|---|
ft_newsroom_edit_vue_js_script__master |
Format template. Renders the app container (data-lmu-app + data-config). No inline <script>, no LmuNewsroomCH.init(). The name is kept so existing references in FS keep working. |
st/st_newsroom_edit_{news,events,videos,galleries,social_medias}_list__master |
Section templates. Header texts + “create” button, then render the FT where the list should appear. |
$CMS_SET(set_st_is_archive, !ss_newsroom_edit_archive.isNull() && !ss_newsroom_edit_archive.isEmpty() && ss_newsroom_edit_archive == "true")$
...
<h2 class="cms__headline-h2">$CMS_VALUE(set_st_list_searcharea_text)$</h2><br>
$CMS_RENDER(template:"ft_newsroom_edit_vue_js_script__master", set_ft_newsroom_edit_typ:"2", set_ft_newsroom_edit_archive:set_st_is_archive)$
| set_ft_newsroom_edit_typ | newsroomEditTyp | fetchUrl (current / archive) |
|---|---|---|
| 1 | NewsroomCh_News |
ps_nrch_news_current_json / ps_nrch_news_archive_json |
| 2 | NewsroomCh_Events |
ps_nrch_events_current_json / ps_nrch_events_archive_json |
| 3 | NewsroomCh_Video |
ps_nrch_videos_current_json / ps_nrch_videos_archive_json |
| 4 | NewsroomCh_Galleries |
ps_nrch_galleries_current_json / ps_nrch_galleries_archive_json |
| 5 | NewsroomCh_SocialMedia |
ps_nrch_social_medias_current_json / ps_nrch_social_medias_archive_json |
An empty/unknown type falls back to News, both in the FT and in the app.
id on the container. The app is found via data-lmu-app="newsroom-ch", so several lists on one page are fine.data-config is JSON inside a single-quoted attribute. Every dictionary/label value is written as
.toString().replace("\\", "\\\\").replace("\"", "\\\"").replace("'", "'") (JSON-escape \ and ", ' as HTML entity).
URLs (CMS_REF) and constant values are written as-is.sort is date_sort (the old FS script used '' = unsorted; the pattern library always used date_sort).data-lmu-app containers automatically and still supports the legacy LmuNewsroomCH.init(); a container is never mounted twice.globalName: 'LmuNewsroomCH' from app/index.ts.<div class="c-newsroom-ch--default"
data-css="c-newsroom-ch"
data-lmu-app="newsroom-ch"
data-config='{
"fetchUrl": "/…/events_current.json",
"newsroomEditTyp": "NewsroomCh_Events",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/…/img/Newsroom_green_LMU.svg",
"categoryTypes": [
{"id": "1", "label": "Forschung", "value": "Forschung"},
{"id": "3", "label": "Uni & Campus", "value": "Uni & Campus"}
],
"options": [
{"label": "Titel", "value": "title"},
{"label": "Datum", "value": "date_sort"}
],
"text": {
"categoryFilterText": "Nach Kategorien filtern",
"allText": "Alle",
"searchListText": "Liste durchsuchen nach Begriffen im Titel oder Datum",
"searchInputPlaceholderText": "Liste durchsuchen",
"sortByText": "Sortieren nach",
"chooseSortingTypeText": "Bitte Sortierungsart wählen",
"noSearchResultsText": "Es gibt keine Treffer zu Ihrer Suche.",
"till": "bis"
}
}'>
</div>
<div id="{{settings.newsroomChId}}"
class="c-newsroom-ch{{#if settings.newsroomChContextClass}}--{{settings.newsroomChContextClass}}{{else}}--default{{/if}}{{#if settings.newsroomChClasses}} {{settings.newsroomChClasses}}{{/if}}"
data-css="c-newsroom-ch"
data-config='{
"fetchUrl": "{{#if (prod)}}{{content.prodJsonUrl}}{{else}}{{content.devJsonUrl}}{{/if}}",
"newsroomEditTyp": "{{content.newsroomEditTyp}}",
"selectedCategoryType": "{{content.selectedCategoryType}}",
"sort": "{{content.sort}}",
"fallbackImgPath": "{{content.fallbackImgPath}}",
"categoryTypes": {{{json content.categoryTypes}}},
"options": {{{json content.options}}},
"text": {{{json content.text}}}
}'
data-lmu-app="newsroom-ch"
>
Loading...
</div>
{
"demo": {
"headline": "Search and edit current:",
"tabs": [
{
"type": "news",
"label": "News",
"href": "newsroom-ch-news-page.html"
},
{
"type": "events",
"label": "Events",
"href": "newsroom-ch-events-page.html"
},
{
"type": "galleries",
"label": "Galleries",
"href": "newsroom-ch-galleries-page.html"
},
{
"type": "video",
"label": "Videos",
"href": "newsroom-ch-video-page.html"
},
{
"type": "social-media",
"label": "Social Media",
"href": "newsroom-ch-social-media-page.html"
}
]
},
"variations": {
"default": {
"docs": {
"variationName": "Default (News)"
},
"settings": {
"newsroomChContextClass": "default",
"newsroomChClasses": "",
"newsroomChId": "newsroom-ch-default"
},
"content": {
"prodJsonUrl": "/assets/mocks/newsroom-ch/news/data.json",
"devJsonUrl": "/api/newsroom-ch/news",
"newsroomEditTyp": "NewsroomCh_News",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [
{
"id": "1",
"label": "Forschung",
"value": "Forschung"
},
{
"id": "3",
"label": "Uni & Campus",
"value": "Uni & Campus"
}
],
"options": [
{
"label": "Titel",
"value": "title"
},
{
"label": "Datum",
"value": "date_sort"
}
],
"text": {
"categoryFilterText": "Nach Kategorien filtern",
"allText": "Alle",
"searchListText": "Liste durchsuchen nach Begriffen im Titel oder Datum",
"searchInputPlaceholderText": "Liste durchsuchen",
"sortByText": "Sortieren nach",
"chooseSortingTypeText": "Bitte Sortierungsart wählen",
"noSearchResultsText": "Es gibt keine Treffer zu Ihrer Suche.",
"till": "bis"
}
}
},
"news": {
"docs": {
"variationName": "News"
},
"settings": {
"newsroomChContextClass": "default",
"newsroomChClasses": "",
"newsroomChId": "newsroom-ch-news"
},
"content": {
"prodJsonUrl": "/assets/mocks/newsroom-ch/news/data.json",
"devJsonUrl": "/api/newsroom-ch/news",
"newsroomEditTyp": "NewsroomCh_News",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [
{
"id": "1",
"label": "Forschung",
"value": "Forschung"
},
{
"id": "3",
"label": "Uni & Campus",
"value": "Uni & Campus"
}
],
"options": [
{
"label": "Titel",
"value": "title"
},
{
"label": "Datum",
"value": "date_sort"
}
],
"text": {
"categoryFilterText": "Nach Kategorien filtern",
"allText": "Alle",
"searchListText": "Liste durchsuchen nach Begriffen im Titel oder Datum",
"searchInputPlaceholderText": "Liste durchsuchen",
"sortByText": "Sortieren nach",
"chooseSortingTypeText": "Bitte Sortierungsart wählen",
"noSearchResultsText": "Es gibt keine Treffer zu Ihrer Suche.",
"till": "bis"
}
}
},
"events": {
"docs": {
"variationName": "Events"
},
"settings": {
"newsroomChContextClass": "default",
"newsroomChClasses": "",
"newsroomChId": "newsroom-ch-events"
},
"content": {
"prodJsonUrl": "/assets/mocks/newsroom-ch/events/data.json",
"devJsonUrl": "/api/newsroom-ch/events",
"newsroomEditTyp": "NewsroomCh_Events",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [
{
"id": "1",
"label": "Forschung",
"value": "Forschung"
},
{
"id": "3",
"label": "Uni & Campus",
"value": "Uni & Campus"
}
],
"options": [
{
"label": "Titel",
"value": "title"
},
{
"label": "Datum",
"value": "date_sort"
}
],
"text": {
"categoryFilterText": "Nach Kategorien filtern",
"allText": "Alle",
"searchListText": "Liste durchsuchen nach Begriffen im Titel oder Datum",
"searchInputPlaceholderText": "Liste durchsuchen",
"sortByText": "Sortieren nach",
"chooseSortingTypeText": "Bitte Sortierungsart wählen",
"noSearchResultsText": "Es gibt keine Treffer zu Ihrer Suche.",
"till": "bis"
}
}
},
"galleries": {
"docs": {
"variationName": "Galleries"
},
"settings": {
"newsroomChContextClass": "default",
"newsroomChClasses": "",
"newsroomChId": "newsroom-ch-galleries"
},
"content": {
"prodJsonUrl": "/assets/mocks/newsroom-ch/galleries/data.json",
"devJsonUrl": "/api/newsroom-ch/galleries",
"newsroomEditTyp": "NewsroomCh_Galleries",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [
{
"id": "1",
"label": "Forschung",
"value": "Forschung"
},
{
"id": "3",
"label": "Uni & Campus",
"value": "Uni & Campus"
}
],
"options": [
{
"label": "Titel",
"value": "title"
},
{
"label": "Datum",
"value": "date_sort"
}
],
"text": {
"categoryFilterText": "Nach Kategorien filtern",
"allText": "Alle",
"searchListText": "Liste durchsuchen nach Begriffen im Titel oder Datum",
"searchInputPlaceholderText": "Liste durchsuchen",
"sortByText": "Sortieren nach",
"chooseSortingTypeText": "Bitte Sortierungsart wählen",
"noSearchResultsText": "Es gibt keine Treffer zu Ihrer Suche.",
"till": "bis"
}
}
},
"video": {
"docs": {
"variationName": "Videos"
},
"settings": {
"newsroomChContextClass": "default",
"newsroomChClasses": "",
"newsroomChId": "newsroom-ch-video"
},
"content": {
"prodJsonUrl": "/assets/mocks/newsroom-ch/videos/data.json",
"devJsonUrl": "/api/newsroom-ch/video",
"newsroomEditTyp": "NewsroomCh_Video",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [
{
"id": "1",
"label": "Forschung",
"value": "Forschung"
},
{
"id": "3",
"label": "Uni & Campus",
"value": "Uni & Campus"
}
],
"options": [
{
"label": "Titel",
"value": "title"
},
{
"label": "Datum",
"value": "date_sort"
}
],
"text": {
"categoryFilterText": "Nach Kategorien filtern",
"allText": "Alle",
"searchListText": "Liste durchsuchen nach Begriffen im Titel oder Datum",
"searchInputPlaceholderText": "Liste durchsuchen",
"sortByText": "Sortieren nach",
"chooseSortingTypeText": "Bitte Sortierungsart wählen",
"noSearchResultsText": "Es gibt keine Treffer zu Ihrer Suche.",
"till": "bis"
}
}
},
"social-media": {
"docs": {
"variationName": "Social Media"
},
"settings": {
"newsroomChContextClass": "default",
"newsroomChClasses": "",
"newsroomChId": "newsroom-ch-social-media"
},
"content": {
"prodJsonUrl": "/assets/mocks/newsroom-ch/social-media/data.json",
"devJsonUrl": "/api/newsroom-ch/social-media",
"newsroomEditTyp": "NewsroomCh_SocialMedia",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [
{
"id": "1",
"label": "Forschung",
"value": "Forschung"
},
{
"id": "3",
"label": "Uni & Campus",
"value": "Uni & Campus"
}
],
"options": [
{
"label": "Titel",
"value": "title"
},
{
"label": "Datum",
"value": "date_sort"
}
],
"text": {
"categoryFilterText": "Nach Kategorien filtern",
"allText": "Alle",
"searchListText": "Liste durchsuchen nach Begriffen im Titel oder Datum",
"searchInputPlaceholderText": "Liste durchsuchen",
"sortByText": "Sortieren nach",
"chooseSortingTypeText": "Bitte Sortierungsart wählen",
"noSearchResultsText": "Es gibt keine Treffer zu Ihrer Suche.",
"till": "bis"
}
}
}
}
}
/* ===================================================
component: newsroom-app
=================================================== */
/* ---------------------------------------------------
Global Styles
--------------------------------------------------- */
[data-css="c-newsroom-ch"] {
}
/* ---------------------------------------------------
Context: Default
--------------------------------------------------- */
.c-newsroom-ch--default {
.newsroom-ch__form-select {
border: none;
width: 100%;
background-color: #f5f5f5;
color: #232323;
padding: 6px 10px 6px 10px;
line-height: 1.46667;
letter-spacing: 0.3px;
caret-color: #008f3f;
font-family: Roboto-regular, sans-serif;
font-size: 1.5rem;
outline: none;
cursor: pointer;
}
.newsroom-ch__form-select option {
color: #232323;
line-height: 1.46667;
letter-spacing: 0.3px;
caret-color: #008f3f;
font-family: Roboto-regular, sans-serif;
font-size: 1.5rem;
}
.newsroom-ch__form-select:focus::-ms-value {
background-color: transparent;
color: #232323;
}
.newsroom-ch__form-area {
display: inline-block;
width: 100%;
padding-bottom: 2px;
border-bottom: 1px solid #e6e6e7;
margin-bottom: 20px;
}
}
<div id="newsroom-ch-default" class="c-newsroom-ch--default" data-css="c-newsroom-ch" data-config='{
"fetchUrl": "/assets/mocks/newsroom-ch/news/data.json",
"newsroomEditTyp": "NewsroomCh_News",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [{"id":"1","label":"Forschung","value":"Forschung"},{"id":"3","label":"Uni & Campus","value":"Uni & Campus"}],
"options": [{"label":"Titel","value":"title"},{"label":"Datum","value":"date_sort"}],
"text": {"categoryFilterText":"Nach Kategorien filtern","allText":"Alle","searchListText":"Liste durchsuchen nach Begriffen im Titel oder Datum","searchInputPlaceholderText":"Liste durchsuchen","sortByText":"Sortieren nach","chooseSortingTypeText":"Bitte Sortierungsart wählen","noSearchResultsText":"Es gibt keine Treffer zu Ihrer Suche.","till":"bis"}
}' data-lmu-app="newsroom-ch">
Loading...
</div> <div id="newsroom-ch-news" class="c-newsroom-ch--default" data-css="c-newsroom-ch" data-config='{
"fetchUrl": "/assets/mocks/newsroom-ch/news/data.json",
"newsroomEditTyp": "NewsroomCh_News",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [{"id":"1","label":"Forschung","value":"Forschung"},{"id":"3","label":"Uni & Campus","value":"Uni & Campus"}],
"options": [{"label":"Titel","value":"title"},{"label":"Datum","value":"date_sort"}],
"text": {"categoryFilterText":"Nach Kategorien filtern","allText":"Alle","searchListText":"Liste durchsuchen nach Begriffen im Titel oder Datum","searchInputPlaceholderText":"Liste durchsuchen","sortByText":"Sortieren nach","chooseSortingTypeText":"Bitte Sortierungsart wählen","noSearchResultsText":"Es gibt keine Treffer zu Ihrer Suche.","till":"bis"}
}' data-lmu-app="newsroom-ch">
Loading...
</div> <div id="newsroom-ch-events" class="c-newsroom-ch--default" data-css="c-newsroom-ch" data-config='{
"fetchUrl": "/assets/mocks/newsroom-ch/events/data.json",
"newsroomEditTyp": "NewsroomCh_Events",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [{"id":"1","label":"Forschung","value":"Forschung"},{"id":"3","label":"Uni & Campus","value":"Uni & Campus"}],
"options": [{"label":"Titel","value":"title"},{"label":"Datum","value":"date_sort"}],
"text": {"categoryFilterText":"Nach Kategorien filtern","allText":"Alle","searchListText":"Liste durchsuchen nach Begriffen im Titel oder Datum","searchInputPlaceholderText":"Liste durchsuchen","sortByText":"Sortieren nach","chooseSortingTypeText":"Bitte Sortierungsart wählen","noSearchResultsText":"Es gibt keine Treffer zu Ihrer Suche.","till":"bis"}
}' data-lmu-app="newsroom-ch">
Loading...
</div> <div id="newsroom-ch-galleries" class="c-newsroom-ch--default" data-css="c-newsroom-ch" data-config='{
"fetchUrl": "/assets/mocks/newsroom-ch/galleries/data.json",
"newsroomEditTyp": "NewsroomCh_Galleries",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [{"id":"1","label":"Forschung","value":"Forschung"},{"id":"3","label":"Uni & Campus","value":"Uni & Campus"}],
"options": [{"label":"Titel","value":"title"},{"label":"Datum","value":"date_sort"}],
"text": {"categoryFilterText":"Nach Kategorien filtern","allText":"Alle","searchListText":"Liste durchsuchen nach Begriffen im Titel oder Datum","searchInputPlaceholderText":"Liste durchsuchen","sortByText":"Sortieren nach","chooseSortingTypeText":"Bitte Sortierungsart wählen","noSearchResultsText":"Es gibt keine Treffer zu Ihrer Suche.","till":"bis"}
}' data-lmu-app="newsroom-ch">
Loading...
</div> <div id="newsroom-ch-video" class="c-newsroom-ch--default" data-css="c-newsroom-ch" data-config='{
"fetchUrl": "/assets/mocks/newsroom-ch/videos/data.json",
"newsroomEditTyp": "NewsroomCh_Video",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [{"id":"1","label":"Forschung","value":"Forschung"},{"id":"3","label":"Uni & Campus","value":"Uni & Campus"}],
"options": [{"label":"Titel","value":"title"},{"label":"Datum","value":"date_sort"}],
"text": {"categoryFilterText":"Nach Kategorien filtern","allText":"Alle","searchListText":"Liste durchsuchen nach Begriffen im Titel oder Datum","searchInputPlaceholderText":"Liste durchsuchen","sortByText":"Sortieren nach","chooseSortingTypeText":"Bitte Sortierungsart wählen","noSearchResultsText":"Es gibt keine Treffer zu Ihrer Suche.","till":"bis"}
}' data-lmu-app="newsroom-ch">
Loading...
</div> <div id="newsroom-ch-social-media" class="c-newsroom-ch--default" data-css="c-newsroom-ch" data-config='{
"fetchUrl": "/assets/mocks/newsroom-ch/social-media/data.json",
"newsroomEditTyp": "NewsroomCh_SocialMedia",
"selectedCategoryType": "all",
"sort": "date_sort",
"fallbackImgPath": "/img/Newsroom_green_LMU.svg",
"categoryTypes": [{"id":"1","label":"Forschung","value":"Forschung"},{"id":"3","label":"Uni & Campus","value":"Uni & Campus"}],
"options": [{"label":"Titel","value":"title"},{"label":"Datum","value":"date_sort"}],
"text": {"categoryFilterText":"Nach Kategorien filtern","allText":"Alle","searchListText":"Liste durchsuchen nach Begriffen im Titel oder Datum","searchInputPlaceholderText":"Liste durchsuchen","sortByText":"Sortieren nach","chooseSortingTypeText":"Bitte Sortierungsart wählen","noSearchResultsText":"Es gibt keine Treffer zu Ihrer Suche.","till":"bis"}
}' data-lmu-app="newsroom-ch">
Loading...
</div>