Logged Out
Create an Account
Login:
Password:

Forgot your password?
New Layout File Command

New Layout File Command
[Back to Index]
Thread Tags
Primary: [Tickets]
Secondary: None

New Layout File Command
Go To This Ticket's Page
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
Sure, I can add a command of that sort:

<!--System:StaticName-->


--
It's all in the reflexes.
Have you gotten around to adding this yet? I've been trying it every once and a while and it still isn't working.
Thanks for the reminder. It's done.


--
It's all in the reflexes.


[Back to Index]