@c-st:Yes, it's better to write in english, and not to use a translator.
My native language is Spanish, so my english it's not good, but I understand it well...
About this,
you can log "the attempt", but not the requested file name.
Follow this steps and check you log:- Press F6 (this will open your template editor).
- Search for the following text, and add the line marked in red:
(the text in green is not necessary to add, since it's just a test)
[not found]
<h1>{.!Not found.}</h1>
<a href="/">{.!go to root.}</a>
{.add to log|Error 404 Requested file not found.}
<br /><button onclick="alert(document.location.pathname.match(/([^/]*?)?$/)[1])">The missing file is...</button>
- Finally, request a nonexistent file, and check your logs.
That's all I know, since my macro knowledge is limited. Using JavaScript is possible to get the nonexistent requested file name, but I can't find a way to log that.
@Mars: I have a question: Is it possible to combine JavaScript in a Macro, so we can log the nonexistent requested file name in the logs? I've read that using JavaScript is possible to extract the file name, check
here,
here,
here,
here,
here and
here.
I've tried this...
{.add to log|Error 404 Requested file not found: {:document.location.pathname.match(/([^/]*?)?$/)[1]:}.}
...but it doesn't work.
Well, that's all.
Cheers,
Leo.-