Override insert method
Hi,
When a blog post is being created how is the insert method overridden before committing to database using the API and a custom class, an example would be useful.
Regards,
Neil
Hi Neil,
We use Web service to save the item and commit the transaction. Options
1. Create a custom service and replace the default one in Administration >> Settings >> Blogs >> Controls >> Post Backend >> Views
2. Use the delegates App.Executing and App.Executed
protected
void
Application_Start(
object
sender, EventArgs e)
SystemManager.ApplicationStart +=
new
EventHandler<EventArgs>(SystemManager_ApplicationStart);
void
SystemManager_ApplicationStart(
object
sender, EventArgs e)
App.Executing = Executing;
App.Executed = Executed;
void
Executing(
object
sender, ExecutingEventArgs args)
void
Executed(
object
sender, ExecutedEventArgs args)
Hi Ivan,
Hi Neil,
The option is are
1. Custom web service
2. Using the delegates
3. Using the API to get the latest item where you should have some custom service that monitors for changes - title , publication_date.
We have implemented similar functionality in Sitefinity 4.0 - PublishingManager which will give you an option to publish the item automatically on some social networks like twitter and facebook.
Thanks Ivan,
Hello Neil,
What I can tell you is that we will have these pipes.
Greetings,
Ivan Dimitrov
the Telerik team
Thanks Ivan,
Hi Neil,
The PublishingManager has not been documented yet and we have not worked on a samples for it.
All the best,
Ivan Dimitrov
the Telerik team