eZ Community » Forums » Suggestions » ObjectStates and override conditions
expandshrink

ObjectStates and override conditions

ObjectStates and override conditions

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 1:52:15 pm

But you can write your "own rewrite rules" in your own template blunk.gif Emoticon

Monday 05 March 2012 2:07:15 pm

Quote from David Hohl :

But you can write your "own rewrite rules" in your own template blunk.gif Emoticon

Thank you David 

I imagined it happy.gif Emoticon

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 

Monday 05 March 2012 2:31:55 pm

Hey Andre

Oh nice! Well the "state" should work with node/view/* ?

@Massimiliano
What is by you the 5, the value or the stategroup?  

Modified on Monday 05 March 2012 2:42:05 pm by David Hohl

Monday 05 March 2012 2:53:52 pm

Hi André,

You're right! the example works, there was a my mistake.

Thanks to all

ciao

Modified on Monday 05 March 2012 2:54:18 pm by Massimiliano Collavo

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from