Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

How to write a WordPress plugin to include default text inside every new blog post? -


i writing wordpress plugin include default text (i.e. text template) every new blog post user creates.

is there action need call in order this? can't see relevant 1 here http://codex.wordpress.org/plugin_api/action_reference

what have create new function along new filter each post submitted run through new function, include , append template text, processed new filter,

ie:

function my_templte_post($data) {   $data = array(      'post_content' => 'this template text.'   );   return $data; } add_filter( 'wp_insert_post_data' , 'my_templte_post' , '99' ); 

this untested, basicly thats along lines want.. think!


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -