Class "immnmncurrent" for current menu button is not exported (website + disk)
Author: Markus O.
Visited 1068,
Followers 1,
Shared 0
The css class "imMnMnCurrent" for the current menu button is not exported to the website and also not to disk. Therefore the menu button of the current page cannot be highlighted.
But it works in the PREVIEW window, where "imMnMnCurrent" is present.
I think this is an error in the Export procedure. --- X5 Evo 2021.1.3 ---
Regards. Markus
Posted on the
Hello. Hold down the Ctrl key and without releasing this key press the preview button. Then close the preview window, delete all site files from the hosting, upload the entire site to the hosting, clear your browser cache, if you have a cache on your hosting, clear it, and check the result.
Author
I did all exactly as you described, but it does not help. But the problem has nothing to do with the cache.
The problem is that the EXPORT procedure of "X5 Evo 2021.1.3" does not output the CSS class "imMnMnCurrent" for the menu element of the currently displayed webpage.
By the way, it works correctly in the PREVIEW window of X5, so I found the error after all !
Please see the following Inspector-screenshots (Firefox):
The first (1) as created by X5, the class "imMnMnCurrent" is missing, no menu button highlighting.
The second (2) with the class "imMnMnCurrent" which I have inserted manually in the Inspector. Now the highlighting (light blue background) of the menu button of the current page is shown correctly.
(1) highlighting of current menu selection missing, because "imMnMnCurrent" is missing
(2) manually added "imMnMnCurrent", highlighting of current menu selection is correct
Hello. I sent a notification about your question to the company employees, expect an answer from them here in the comments.
"By the way, it works correctly in the PREVIEW window of X5, so I found the error after all !" - try uploading your site to hosting using FileZilla or something similar.
Hello Markus
In most cases, the highlight of the menu doesn't work if the URL to your website inserted in Step 5 is incorrect
Can you show me the URL you inserted and let me know the actual URL of your website?
Verify this and keep me posted here
Thank you
Stefano
Author
I did what you suggested:
I opened the X5 PREVIEW window, then copied the whole website present in the folder "Project\Preview" temporarily to my server, but the class "imMnMnCurrent" is not present, therefore highlighting does not work (Inspector of Firefox):
Of course the class "imMnMnCurrent" is also not present in the file "index.html" in the folder "Project\Preview".
.
But now it is strange:
If I open "localhost:8080" (the active X5 preview window) at the same time also in Firefox, then the class "imMnMnCurrent" is present and the highlighting works:
.
Should'nt the folder "Project/Preview" contain the same as shown at "localhost:8080" if X5 Preview is open?
Otherwise, for manual uploading, where are the corresponding files of the website shown under "localhost:8080" if the X5 Preview windows is open?
(Please be aware that the original site at "https://www.infonautics.ch" is still produced with "X5 EVO 13", I am still in the process of changing from version 13 to 2021).
Author
Hello Stefano
My answer above for Aleksej just crossed with your question. I will align the URL and check if it works then.
Author
Hello Stefano
That's it! If the URL in Step 5 is consistent with the final URL of the online website, then it works.
But that also has as a consequence, that everything connected to the class "imMnMnCurrent" will not work if running the website offline from a local folder by just opening the HTML file (without a server), right ?
Hello Markus
Without a server, probably not. With any local webserver such as xampp though, it will work fine
I hope I was helpful
Stefano