R
R
Roman2015-02-06 13:22:17
MODX
Roman, 2015-02-06 13:22:17

Output MODx tags to frontend - without converting them?

Good day!
Faced the following problem, how to display MODx tags in frontend so that they are not translated?
For example:
2 - id страницы
The site displays as:
24 - id страницы
Well, etc., placeholders, chunks, etc..?
Tried to wrap in:
<code >, <pre>
Everything is even! Everything is converted to the frontend! Used by MODx Revo + CKEditor. How can I resolve the issue of who faced. Google is silent

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Azim Kurt, 2015-02-06
@Symphony

&#091;&#091;*id&#093;&#093;
upd:
For automation, you can write some plugin , which will convert brackets into code via str_replace

R
Roman, 2015-02-06
@RGBPlus

I thought about it, but it's not convenient to say the least. Are there any other options?
an , 13:40
If they are issued in
then this option doesn't work, it also outputs [[
Any other options?
To be more clear:
How to display the MODx code on the site itself, which would it not be processed as code?
For example:

[[!Wayfinder? 
&startId=`0` 
&sortBy=`menuindex` 
&outerTpl=`topmenuOuter` 
&rowTpl=`topmenuRow` 
&innerTpl=`topmenuInner` 
&innerRowTpl=`topInnerRow` 
&selfClass=`current`]]

Then a menu will appear on the site itself, and I need to show the call code itself!

Z
zooks, 2015-02-06
@zooks

Create a modx-tag snippet

<?php
return '[['.$input.']]';

Call:
[[modx-tag? &input=`*id`]]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question