forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject [views] Dir specific view
Date Tue, 05 Jul 2005 00:45:54 GMT
Hello devs,

I added the dir specific view matcher to the location map. Will try to
merge tomorrow the view specific stuff back to trunk. 

    will return which view is responsible for the requested path.
    If no view (choice|fallback) could be found the template will return the viewFallback

    (plugin specific default.fv).
    1.request: index 
    First choice: index.fv
    First/last fallback: default.fv
    2.request: sample/index 
    First choice: sample/index.fv
    First fallback: sample/default.fv
    Last fallback: default.fv
    3.request: sample/subdir/index 
    First choice: sample/subdir/index.fv
    First fallback: sample/subdir/default.fv
    Second fallback: sample/default.fv
    Last fallback: default.fv
    The parent view (root-view) inherits to its children until 
    a child is overriding this view. This override can be used for 
    directories (default.fv) and/or files (*.fv).
    That means that the root view is the default view as long no other
    view can be found in the requested child.


"Together we stand, divided we fall!" 
Hey you (Pink Floyd)

View raw message