RedirecttoBodyCopy functions is always acalled in asset

I extended an assest from standardpage asset. The file edit_fns had function called redirecttobodycopy.i tried echoing my stuff there and it worked. but if chnage the function name to anything lese and chnage the edit_details_screen.xml file with same function then nothing appears. It says no style attached. why redirect function is automatically called

[quote]
but if chnage the function name to anything lese and chnage the edit_details_screen.xml file with same function then nothing appears. It says no style attached. why redirect function is automatically called

[/quote]



Did you make sure to run step_03.php and compile_locals.php after changing your xml? Did you also make sure to change your lang xml files as well to match?

yes i have done that but still redirect function is called

[quote]
yes i have done that but still redirect function is called

[/quote]

The calls to redirectToBodycopy() should be in the associated XML. This is to load the contents when viewing and processing the page, and expected behaviour for Standard Page.



Depending on what you are trying to achieve, you may want to inherit just from Page itself. Many examples inheriting from Page are available under packages/cms.