List of ${key}s

View: New views
2 Messages — Rating Filter:   Alert me  

List of ${key}s

by jiveforums-ecm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is a there a place or a way  to find all the ${key}s one can use in template (.ftl) ?

TIA

Edited by: karukera on 1 nov. 2009 06:51
--
Posted by "karukera" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2974#8736>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: List of ${key}s

by jiveforums-ecm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can find it in the code, in class AbstractWebContext :

    protected void initializeBindings(Map<String, Object> bindings) {
        Resource obj = getTargetObject();
        bindings.put("Context", this);
        bindings.put("Module", module);
        bindings.put("Engine", engine);
        bindings.put("basePath", getBasePath());
        bindings.put("skinPath", getSkinPathPrefix());
        bindings.put("Root", getRoot());
        if (obj != null) {
            bindings.put("This", obj);
            DocumentModel doc = obj.getAdapter(DocumentModel.class);
            if (doc != null) {
                bindings.put("Document", doc);
            }
            Resource adapter = getTargetAdapter();
            if (adapter != null) {
                bindings.put("Adapter", adapter);
            }
        }
        if (!isRepositoryDisabled) {
            try {
                bindings.put("Session", getCoreSession());
            } catch (Exception e) {
                throw WebException.wrap("Failed to get a core session", e);
            }
        }
    }
--
Posted by "arussel" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2974#8745>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm