Contao-Summit 2026

Ankündigung

Collapse
No announcement yet.

a href geo - in HTML

Collapse
X
 
  • Filter
  • Zeit
  • Show
Clear All
new posts

    5.7.x a href geo - in HTML

    Hi, ich versuche gerade einen Link im Format

    <a href="geo:longitude,latitude">Linktext</a> in einem Text einzubauen.

    Leider wird daraus nach speichern aus geo: immer geo%3A

    Habe in den Seiteneinstellungen schon geo als Tag und als Attribut für a gespeichert, aber ohne Erfolg :-(

    Würde höchst ungern nur um den Link so zu schreiben ein unfiltered HTML Element verwenden.

    #2
    Du musst auch noch das Protokoll in der config erlauben (contao.sanitizer.allowed_url_protocols).
    Last edited by Spooky; 07.09.2026, 11:48. Grund: added config path & URL
    » sponsor me via GitHub or Revolut

    Comment


      #3
      ich habe lange gesucht um zu finden wo die Config in 5.7 stehen muss.

      Dann habe ich nochmal versucht zu verstehen wie die config.yaml korrekt geschrieben wird.

      ich probiere nur blind rum, weil er keine richtige Erklärung gibt.


      Im Homeverzeichnis habe ich /config/config.yaml erstellt.

      Nach jeder Änderung lösche ich den ProdCache um die Confi zu laden


      Schreibweise (Nach der Vorgaben der Contao Doku)
      The system settings slowly but surely leave the backend. Basic system settings influence Contao as an application and therefore there is a chance that a wrong setting will render the system non-functional. If this happens, you will not be able to undo the settings and restore the system because you will not be able to log in anymore. For this reason, most settings are configured outside of Contao via the config.yaml, or can be configured via the Contao Manager in the future.


      HTML-Code:
      contao: 
      	sanitizer:	
      	  allowed_url_protocols: geo
      in der Yaml führt zu Fehlern


      Nach Bsp: https://nrw.systems/knowledge-base/d...-erlauben.html
      HTML-Code:
      contao:
          sanitizer:
              allowed_url_protocols:
                  - geo
      klappt auch nicht


      HTML-Code:
      contao.sanitizer.allowed_url_protocols:  geo
      klappt auch nicht.

      Comment


        #4
        Zitat von Thomas Hinze Beitrag anzeigen
        Schreibweise (Nach der Vorgaben der Contao Doku)
        The system settings slowly but surely leave the backend. Basic system settings influence Contao as an application and therefore there is a chance that a wrong setting will render the system non-functional. If this happens, you will not be able to undo the settings and restore the system because you will not be able to log in anymore. For this reason, most settings are configured outside of Contao via the config.yaml, or can be configured via the Contao Manager in the future.


        HTML-Code:
        contao: 
        	sanitizer:	
        	  allowed_url_protocols: geo
        in der Yaml führt zu Fehlern
        Das hast du dir falsch aus der Dokumentation kopiert. Erstens hast du da falsche Einrückungen, Zweitens nicht die richtige Syntax für die Auflistung der Protokolle und Drittens fehlen dir nun alle anderen Protokolle.
        » sponsor me via GitHub or Revolut

        Comment


          #5
          Ok, klappt. Leerzeichen fehlte


          Nach Bsp: https://nrw.systems/knowledge-base/d...-erlauben.html
          HTML-Code:
          contao:
              sanitizer:
                  allowed_url_protocols:
                      - geo

          Comment


            #6
            Da fehlen dir aber wie gesagt nun alle anderen Protokolle.
            » sponsor me via GitHub or Revolut

            Comment


              #7
              Zitat von Spooky Beitrag anzeigen
              Das hast du dir falsch aus der Dokumentation kopiert. Erstens hast du da falsche Einrückungen, Zweitens nicht die richtige Syntax für die Auflistung der Protokolle und Drittens fehlen dir nun alle anderen Protokolle.
              Wie, alle anderen weg?
              Hilft mir nicht so richtig, wenn ich immer nur gesagt bekomme, das was fehlt oder falsch ist ohne Hinweis wo ich es nachlesen kann was erwartet wird.
              Steht leider nirgends, das meine Ergänzung dazu führt, dass die Basics alles weg sind.
              Ich weiß nicht mal, was dadurch jetzt weg ist.

              mailto evtl. - was noch?

              Comment


                #8
                Zitat von Thomas Hinze Beitrag anzeigen
                Wie, alle anderen weg?
                Du hast jetzt nur mehr "geo" drin stehen. Die anderen Werte (siehe Doku bzw. siehe die Doku für das Konsolenkommando um dir die zur Verfügung stehenden Konfigurationen und deren Defaults anzeigen zu lassen) sind nun entfernt, das heißt du kannst jetzt bspw. nicht mehr "tel:" oder "mailto:" URLs einfügen.
                » sponsor me via GitHub or Revolut

                Comment

                Working...
                X