Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typhoon] HTML is not working on Typhoon only on Quark theme #443

Open
NenadDragic opened this issue Jun 4, 2024 · 5 comments
Open

[typhoon] HTML is not working on Typhoon only on Quark theme #443

NenadDragic opened this issue Jun 4, 2024 · 5 comments
Assignees
Labels
typhoon Typhoon theme

Comments

@NenadDragic
Copy link

I have installed the newest version of GRAV on two domains ver 1.7 46.
On the one I have Typhoon 2.4.6 on the other one I have Quark 2.0.4.

On Quark theme this code works fine:
Kort:<iframe src=“https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2226.5459691059714!2d12.445649299999998!3d56.07846869999999!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x46523b0d91247747%3A0x412586c2cc6e0a94!2sHornebyvej%2083%2C%203100%20Hornbæk%2C%20Denmark!5e0!3m2!1sen!2srs!4v1708701989369!5m2!1sen!2srs” width=“400” height=“300” style=“border:0;” allowfullscreen=“” loading=“lazy” referrerpolicy=“no-referrer-when-downgrade”></iframe>

Typhoon:
Screenshot from 2024-06-04 23-16-08

Quark:
Screenshot from 2024-06-04 23-17-34

What to do to make iframe and work on Typhoon theme?
I can read that it is just to type the html and it works, but not on Typhoon theme.

Thanks,
Nenad

@NenadDragic NenadDragic added the typhoon Typhoon theme label Jun 4, 2024
@rhukster
Copy link
Member

rhukster commented Jun 4, 2024

What page template are you using (.html.twig)? What does the actual page content (.md)?

@NenadDragic
Copy link
Author

My .md downloaded:
default.md

I hope this are the info that you ask for:
Screenshot from 2024-06-06 13-17-30
Screenshot from 2024-06-06 13-20-03
Screenshot from 2024-06-06 13-23-08
Screenshot from 2024-06-06 13-24-28

@rhukster
Copy link
Member

Does your templates/default.html.twig look like this:

{% extends 'partials/base.html.twig' %}

{% block content %}
  {{ page.content|raw }}
{% endblock %}

The |raw filter should be rendering your HTML.

@NenadDragic
Copy link
Author

NenadDragic commented Jun 24, 2024

It looks like yours:
`{% extends 'partials/base.html.twig' %}

{% block content %}
{{ page.content|raw }}
{% endblock %}`

I have tryed to look into all setting, but no luck to make the change to make it work.

@rhukster
Copy link
Member

rhukster commented Jul 1, 2024

Can you please locate the actual .md file on your filesystem and attach it to this issue? I'm thinking maybe it's escaped in the content.. iframe is not typically allowed to be saved by non-administrators as it can lead to dangerous XSS attacks. I'm wondering if a non-admin saved it and it got esacped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typhoon Typhoon theme
Projects
None yet
Development

No branches or pull requests

2 participants