Pages: [1] |
|
|
Author |
Topic: <?php include $menu ?> tag replaced with the actual menu html (Read 643 times) |
Frank62
Posts: 19
|
Hi,
I was going to use Snippetmaster (SM) some two years ago, but a big other project kept my from making websites again. Yet, that other project is about three quarters underway, so I might be getting some time again.
I installed, with the help of Henri, SM on one of my servers at that time, and I tested it. Basically, it worked fine. But I found that it replaced the <?php include $menu ?> tag with the actual menu html, when saving an edited page. That is not what I want, because that takes away the *big* advantage of having to change only one file if the menu needs an update.
Did I do something wrong, or is this an inevitable thing?
|
|
|
|
admin
Forum Administrator

Posts: 3169
SnippetMaster Author
|
I'm not sure I understand. Are you using Snippetmaster to edit PHP code or HTML code?
The current version of the editor (v2.2.3.3)does not preserve PHP code.
|
|
|
|
Frank62
Posts: 19
|
I meant $menu in a figurative way. The normal page set-up is something like this:
<!doctype html>
<html>
<head>
....blabla....
</head>
<body>
<?php include 'menu_file.php' ?>
<h1>Header</h1>
...rest of the content...
</body>
</html>
But I understand from your answer that the php tag is indeed not preserved, that I didn't make a mistake?
|
|
|
|
admin
Forum Administrator

Posts: 3169
SnippetMaster Author
|
Yes, this is correct. The PHP tag will be removed (or badly edited) since the current HTML editor in Snippetmaster (version 2.2.2.3) does not work with PHP.
I'm going to replace the editor soon, so that should fix this issue. (And will also allow basic PHP editing...)
|
|
|
|
|
Pages: [1]
|
|
|
|