Gibt es in Analogie zu {{insert_article::*}} auch fertige Inserttags für News-Beiträge und/oder Events, z.B. {{insert_news::*}} bzw. {{insert_event::*}}?
Druckbare Version
Gibt es in Analogie zu {{insert_article::*}} auch fertige Inserttags für News-Beiträge und/oder Events, z.B. {{insert_news::*}} bzw. {{insert_event::*}}?
Ja, hier findest du die Übersicht: http://contao.org/de/insert-tags.html
Vielen Dank für die schnelle Antwort. Die Liste ist mir bekannt und war u.a. auch der Ausgangspunkt meiner Frage.
Während jedoch {{insert_article::*}}, {{insert_content::*}} und {{insert_module::*}} die kompletten Inhalte eines Artikels, eines Inhaltselements bzw. einer Modulausführung liefern, bekommt man über die Inserttags zu News und Events entweder nur die URL in irgendeiner Form oder maximal den Titel:
{{news::*}}
Dieses Tag wird mit einem Link zu einer Nachricht ersetzt (ersetzen Sie * mit der ID oder dem Alias).
{{news_open::*}}
Wird mit dem öffnenden Tag eines Links zu einer Nachricht ersetzt: {{news_open::12}}Click here{{link_close}}.
{{news_url::*}}
Dieses Tag wird mit der URL einer Nachricht ersetzt: <a href="{{news_url::12}}">Click here</a>.
{{news_title::*}}
Dieses Tag wird mit dem Titel einer Nachricht ersetzt: <a title="{{news_title::12}}">Click here</a>.
Gibt es nicht die Möglichkeit, per Inserttag einen kompletten per ID adressierten Nachrichtenbeitrag einzufügen? Ganz so wie bei
{{insert_article::*}}
Dieses Tag wird mit dem referenzierten Artikel ersetzt (ersetzen Sie * mit der ID oder dem Alias).
ich krame diesen thread mal aus der vergangenheit aus weil ich dasselbe problem habe. den kompletten inhalt eines events auf einer anderen auszugeben.
geht das mittlerweile?
Hier sind die aktuellen Inserttags https://docs.contao.org/books/manual...nserttags.html
{{event_content}} ist nicht dabei, nur {{event_teaser}} und {{event_title}}.
also geht es nicht. das ist ja nicht so toll. :(
*genau* auf der Suche war ich auch gerade :)
Szenario: Auf der Startseite soll ein ganz bestimmtes Event angerissen werden.
- Der Event-Teaser eignet sich inhaltlich aber nicht dafür, es müsste der volle Event-Text dargestellt werden.
- Es handelt sich auch nicht (unbedingt) um das aktuellste oder nächste Event; das könnte ich ja über ein Kalender-Modul darstellen.
- Anders als bei den News, habe ich bei den Events leider auch keine "Hervorheben"-Funktion -- die könnte ich hierfür gut einsetzen.
Es scheint zumindest mit Bordmitteln nicht möglich zu sein. So dass erst mal die auf der Startseite gefeature-ten Events von Hand gebaut werden (Bild/Text/Link). Geht natürlich auch.
Mit einem include-tag á la {{event:X}} oder {{event_full:X}} wäre halt für den Redaktuer bequemer :cool:
Baue dir einen eigenen Insert Tag mit {{file::*}}.
Danke. Ich behelfe mir jetzt so:
Es gibt einen eigenen Event-Kalender "Aktuelles Highlight". Da wird dann das entsprechende Event reingepackt, und aus diesem Kalender im Volltext (event_full o.ä.) an der entsprechenden Stelle ausgegeben.
Der Redakteur muss sich dann halt manuell darum kümmern*: Kommt das nächste Highlight, wird das alte in den regulären Event-Kalender verschoben, und das zu featurende Event in den "Aktuelles Highlight"-Kalender (oder dort angelegt, falls es noch nicht existiert).
So bekommt man das auch hin :)
*Im anderen Szenario hätte er sich auch manuell kümmern müssen, durch das Anpassen der ID im insert-tag
Brauchst du überhaupt zwei Kalender dafür?
hmmm... wie denn?
Wie gesagt, wenn es eine "Favoriten-"/Sternchen-Funktion für den Eventkalender gäbe (vergleichbar wie bei den News), dann bräuchte ich den nicht...
... aber vielleicht steht mir auch nur grad einer auf einer entscheidenen Hirnzuleitung?
Achso ja stimmt, eine Featured Funktion gibt es für Events nicht :). Dann ist die Lösung über einen separaten Kalender eh die bessere.
Genau das hatte schmerzlich einem Projekt (Freundschaftsleistung ohne Etat) vermisst :-)
:D
Hallo,
die Extension ist zwar im Manager zu finden und wird auch zum Install als passend für Contao 4 definiert, aber doch geht nix, vermutlich weil doch nix mit Contao 4 geht :(
Gruß dtptiger
Code:Using version ^1.0 for erdmannfreunde/calendar_feature
/var/customers/webs/gmantel/hundetherapie-mantel.de/composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for erdmannfreunde/calendar_feature ^1.0 -> satisfiable by erdmannfreunde/calendar_feature[1.0.0].
- Conclusion: remove contao/calendar-bundle 4.4.16
- Conclusion: don't install contao/calendar-bundle 4.4.16
- erdmannfreunde/calendar_feature 1.0.0 requires contao/core-bundle >=3.5,<=3.5.9999 -> satisfiable by contao/core[3.5.0, 3.5.1, 3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.2, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.3, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.4, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
- contao/core 3.5.0 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.1 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.10 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.11 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.12 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.13 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.14 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.15 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.16 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.17 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.18 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.19 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.2 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.20 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.21 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.22 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.23 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.24 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.25 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.26 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.27 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.28 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.29 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.3 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.30 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.31 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.32 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.33 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.4 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.5 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.6 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.7 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.8 conflicts with contao/calendar-bundle[4.4.16].
- contao/core 3.5.9 conflicts with contao/calendar-bundle[4.4.16].
- Installation request for contao/calendar-bundle (locked at 4.4.16, required as 4.4.*) -> satisfiable by contao/calendar-bundle[4.4.16].
<warning>Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.</warning>
....
Process terminated with exit code 1
Reason: General error
Die Extension hat noch keinen Release Tag, wo sie für Contao 4 freigeschalten ist. Nur die dev-master Version kann installiert werden.
Also die dev-master manuell ????
Naja ich würde dort ein issue aufmachen und nachfragen, ob und wann ein release tag vom aktuellen Stand gemacht wird.
Hab ich soeben gemacht.