21286 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 492 Views |
-
How does the publishingMechanism work ?

14 October 2009 at 2:54am
Hi there,
I want to call a function before publishing content...
Could anyone explain me how exactly the publishing mechanism in SS works ?
Thaks a lot
Best regards
Neobe -
Re: How does the publishingMechanism work ?

14 October 2009 at 3:54am
Hi,
Have a look at http://api.silverstripe.com/cms/SiteTree.html#onBeforeWrite, you can call that in your Page class.
-
Re: How does the publishingMechanism work ?

14 October 2009 at 4:08am
Hi dio5,
thanks a lot for your quick response, I´ll try that.
But could you also explain me how exactly the publishing mechanism works in SS ?
Best regards
Neobe -
Re: How does the publishingMechanism work ?

14 October 2009 at 4:17am
Hmm, I think you better take a look at the code for that in SiteTree.php etc...
| 492 Views | ||
|
Page:
1
|
Go to Top |


