Monday 05 March 2012 1:07:46 pm - 6 replies
In the Template override conditions,
Is it possible match a object for state id?
[folder_view_full]
Source=node/view/full.tpl
MatchFile=node/view/full.tpl
Subdir=templates
Match[class_identifier]=folder
Match[state]=5
This example does not work.
Thanks
Monday 05 March 2012 1:50:40 pm
Hey,
Great idea, but I am sorry - no.
Have a look on http://doc.ez.no/eZ-Publish/Techn...ference/Template-override-conditions
| Condition | Description |
|---|---|
| object | Matches the ID number of the object. |
| node | Matches the ID number of the node. |
| parent_node | Matches the ID number of the parent node. |
| class | Matches the ID number of the class which the object is an instance of. |
| class_identifier | Matches the identifier of the class which the object is an instance of. |
| depth | Matches the depth of the node. The depth of a top level node is 1. |
| url_alias | Matches the virtual URL of the node. |
| class_group | Matches the ID number of the group that the class which the object is an instance of belongs to. |
Monday 05 March 2012 2:07:15 pm
Quote from David Hohl :But you can write your "own rewrite rules" in your own template
Thank you David
I imagined it ![]()
Monday 05 March 2012 2:19:11 pm
Doc is unfortunately lagging a bit behind here on things implemented before we switched to Kanban, available override keys can be seen here:
https://github.com/ezsystems/ezpu.../classes/eznodeviewfunctions.php#L92
You must be logged in to post messages in this topic!