4 users online. Create an account or sign in to join them.Users
Suggestion: URL context for JavaScript/DOM
A for , submitted by nickdunn on 08 January 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#205: Suggestion: URL context for JavaScript/DOM
I think this is a good idea. Maybe this could be implemented in connection with the addition of Rowan’s last missing plugins (Symphony 2.1?!).
As this is a feature request, it will not be considered for 2.0.x.
Out of scope for 2.0.x. Closing this issue.
This issue is closed.
Sometimes when writing extensions on Entry new/edit pages you need to decipher what section you are looking at, what the “mode” is (edit, new) and what the entry ID is.
For example in Custom Admin I build a URL object. This is very specific to the
/publish/pages, but could be made more generic:http://github.com/nickdunn/custom_admin/blob/master/assets/custom.js#L11
It would be great if the Symphony JS object returned something similar — a
URLorContextobject, for example.