Vmod - Method: All - Turns breadcumbs to "Dashboard > Edit vMod"

Designer
Tól től Romania
Tagság jún. 2024 óta

If I make a vMod in Admin for example:

  • Operation #1
  • Method: All
  • Match Type Multiline

.. and give a complete new code for the whole page that is added in the 'File Pattern' at the 'File To Modify' section

in the FRONT, on the website the breadcumbs turns into "Dashboard > Edit vMod"

is this a bug or am I missing something?

see attached images

LiteCart Fan
Tól től Netherlands
Tagság dec. 2022 óta

can you show the whole code you insert?

Designer
Tól től Romania
Tagság jún. 2024 óta

ok I digged and what Ive found

Iff I add these codes to the INSERT textarea:
{snippet:breadcrumbs}
{snippet:notices}

...after I save the Vmod in admin it automatically turns the above lines into this:

            <ul class="breadcrumb">

<li><a href="/admin/">Dashboard</a></li><li>Edit vMod</li></ul>

Designer
Tól től Romania
Tagság jún. 2024 óta

the only solution I found is this and it seems it works:

<?php
$snippet_notices = base64_decode('e3NuaXBwZXQ6bm90aWNlc30=');
$snippet_breadcrumbs = base64_decode('e3NuaXBwZXQ6YnJlYWRjcnVtYnN9');
?>

<?php echo $snippet_breadcrumbs; ?>
<?php echo $snippet_notices; ?>

tim
Founder
Tól től Sweden
Tagság máj. 2013 óta
tim

There is a problem using the backend editor to tamper with snippet placeholders as they are being resolved. I'm thinking if something like <?php echo implode('', ['{', 'snippet:breadcrumbs', '}']); ?> or <?php echo '{'.'snippet:breadcrumbs'.'}'; ?> would work too?

Designer
Tól től Romania
Tagság jún. 2024 óta

Yes, just tested it and I can confirm

<?php echo implode('', ['{', 'snippet:breadcrumbs', '}']); ?> 

also works. Thank you

Te
Ez a weboldal nem használ cookie-kat és nem használ harmadik féltől származó nyomkövetési technológiát. Úgy gondoljuk, hogy jobban tudjuk csinálni, mint mások, és tényleg gondolunk az Ön magánéletére.