Logged Out
Create an Account
Login:
Password:

Forgot your password?
New Layout File Command


Back to the Tickets List

New Layout File Command
Creator Krellin
Public or Private Public
Private tickets are only accessible to you and to DKPSystem.com staff
Public Tickets are visible to everyone)
Status Open
Type Suggestion
Section of the Site Advanced Layout Options and CSS
Urgency (1 votes)
Rating (1 votes)
Description:
I was hoping you might consider adding another layout file command that contains only the document's name, minus the extension.

An example:
news.php -> news

This would be useful for adding customized header images to every page like I am doing on my site. Currently, I have to resort to using javascript to accomplish this. System:Title won't work because it isn't static for every page (forums come to mind).
var url = document.URL;
var DocName =(url.substring(url.lastIndexOf("\/")+1,url.lastIndexOf("\.")))
document.write('<img src=\"/settings/never/files/')
document.write(DocName)
document.write('.gif" alt=\"\">')
Official DKPSystem.com Comments
No official comments yet

User-Submitted Comments
These posts are also available on the forum with more features. This page is intentional simplified

View this info on the forum
[You must be logged in to post comments]
5929 days ago
Chops Said:
Sure, I can add a command of that sort:

<!--System:StaticName-->
[You must be logged in to reply]
5902 days ago
Krellin Said:
Have you gotten around to adding this yet? I've been trying it every once and a while and it still isn't working.
[You must be logged in to reply]
5902 days ago
Chops Said:
Thanks for the reminder. It's done.
[You must be logged in to reply]