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

Designer
Depuis Romania
Membre depuis juin 2024

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
Depuis Netherlands
Membre depuis déc. 2022

can you show the whole code you insert?

Designer
Depuis Romania
Membre depuis juin 2024

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
Depuis Romania
Membre depuis juin 2024

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
Depuis Sweden
Membre depuis mai 2013
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
Depuis Romania
Membre depuis juin 2024

Yes, just tested it and I can confirm

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

also works. Thank you

Vous
Ce site n'utilise aucun cookie ni aucune technologie de suivi tierce. Nous pensons pouvoir faire mieux que les autres et nous nous soucions vraiment de votre vie privée.