I have been using SSI for my nav menus. In working with this I discovered that Adobe seem to have dropped direct support of SSI. In dealing with this I seemed to have killed my Nav Menu. It no longer compresses when I am not highlighting i. I am 90% certain this is a CSS issue. When I open the extension. on the data I include. I get a compressed functional menu page. When I to incliude it I just get the raw but functional code. (see http://www.kasdivi.com). The extension output includes the link toe the CSS file. The instructions here say NOT to put that in the file to be included. I have added a link to the CSS file else where on the page. OK to make this stranger. I have never put pages on a .shtm page only used .html and php and its worked, I created a .shtm version of my index page and nothing off menu bar shows.... I am sure I messed something simple up...but
I can no longer Get Adaptive Menu Magic to work with DW 2021 and SSI
(8 posts) (2 voices)-
Posted 3 months ago
-
The AMM scripts and CSS files are not being loaded. The link your page has for the AMM CSS file is this:
https://www.kasdivi.com/p7amm/p7AMM-01.css
and of course it is not there.
There is also not link for the AMM scripts file, so functionality will not be there.
If you have the menu inside a SSI then it's best to have a look at the actual SSI page. Can you provide a direct link to that please?
Posted 3 months ago -
Thanks it was a path and l;injk issue. working to resolve now. thanks
Posted 3 months ago -
OK I was wrong. just making it worse and worse. Here is the path too the the html menu.
https://www.kasdivi.com/Includes/Navigate2.htmlPosted 3 months ago -
The p7amm folder is inside of your /Includes folder, so the path needs to point to that folder location.
In your Navigate2.html page:
-Switch to Code View
-Look for these two lines ( 2 and 3)
<link href="p7amm/p7AMM-01.css" rel="stylesheet" media="all">
<script type="text/javascript" src="p7amm/p7AMMscripts.js"></script>-Change the path in each so that it starts with: /Includes/
they should now looks like this:
<link href=" /Includes/p7amm/p7AMM-01.css" rel="stylesheet" media="all">
<script type="text/javascript" src=" /Includes/p7amm/p7AMMscripts.js"></script>-These are now site root relative links so that they will work from any location in your site.
The menu should now be operating as expected.
Posted 3 months ago -
I actually had copied the p7Amm folder. path was sort of wrong. I changed paths to match correct location and the Manu files are fine now
http://www.kasdivi.com/Includes/Navigate.php
http://www.kasdivi.com/Includes/Navigate.htmlThe issue I now have is apparently due SSI coding.
My php files generallhy work fine
ie https://www.kasdivi.com/pages/Bonaire/2023/Underwater/January/LangePart3/LangesPart3.php
My html differs from page to page
Good
https://www.kasdivi.com
https://www.kasdivi.com/pages/Index/index2020.htmlNot so good
https://www.kasdivi.com/pages/Index/index2022.htmlhas to be paths
Posted 3 months ago -
The paths in your ssi are still incorrect. While they may be correct for the one page, as soon as the include is used for a page in a different folder the path to the AMM styles and script files is incorrect.
You MUST use site-root relative paths in your include page... otherwise it will always cause problems.
I see you have changed the paths to this:
<link href="../css/p7amm/p7AMM-01.css" rel="stylesheet" media="all">
<script type="text/javascript" src=" ../css/p7amm/p7AMMscripts.js"></script>This is not a site root relative link.
Change it to this in your include file:
<link href="/pages/css/p7amm/p7AMM-01.css" rel="stylesheet" media="all">
<script type="text/javascript" src="/pages/css/p7amm/p7AMMscripts.js"></script>Notice that the path begins with a / which means the site root folder, and then is followed by the full path from the root to the p7amm folder.
Posted 3 months ago -
Thanks for the education on paths... I will probably remember it for a day or two.. I don't code enough
Thate helped. plus I guess I had forgotten that to use an SSI. I Had to chmod +x. the fileThanks. all so far appears to be good
Posted 3 months ago
Reply
You must log in to post.