eZ Community » Learn » eZ Publish » Creating a simple custom workflow event

Creating a simple custom workflow event

Thursday 09 December 2010 5:01:18 pm

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Step 5 - Develop a workflow event: content class attribute

For our workflow event to work, we need to add a new content class attribute to content classes we want to add the Twitter Status Update feature.

In Setup > Classes > Content , edit the content class “Blog post” and add a new “Text line” attribute.

Fig. 8 shows you the value of each fields. The most important ones are the “Identifier” and “Max string length”.

The “Identifier” is used by the event PHP file to extract the message, and “Max string length” is restricting the message length as it will be appended with the TinyURL and Twitter only allows 140 characters.

Adding the Twitter status attribute - eZ Publish

 

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)

Proudly Developed with from