E
E
Eugene M2022-03-30 15:35:29
MODX
Eugene M, 2022-03-30 15:35:29

How to find the right piece of code in ModX 2.7.1-pl?

I need to find this piece of code in particular frameborder="0" to remove this property:

<iframe 
width="400" 
height="250" 
src="https://www.youtube.com/embed/Yg"
title="YouTube video player"
frameborder="0" 
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>

I don’t understand how to find it, through php myadmin does not look for it. Not in templates.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Tarasov, 2022-03-30
@an-tar

How to search in PMA, the correct search format? as an option, download the ladies and go through a simple text search.
Another option is to load something from a file, which is simply not in the database.

D
Danny Arty, 2022-03-30
@DanArst

Why use PMA?
Find the page in the resource tree by name, see what template it has. In the template, find the place where the block with this code should be displayed and then edit either the template or the chunk.
If you want directly through PMA, then try this query for two different tables (modx_site_content and modx_site_htmlsnippets). You may have a different table prefix, the default is modx_

SELECT * FROM `modx_site_content` WHERE `content` LIKE '%frameborder="0"%'

and
SELECT * FROM `modx_site_htmlsnippets` WHERE `snippet` LIKE '%frameborder="0"%'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question