Function names

Sep 15, 2016 at 12:16 AM
I regret how i named some of my functions and how i organized them. For the most part they are all being used by a number of users so changing them now would break their sites. Is there an easy way or another way going forward where I can use aliases to these functions so should i want to change the name or their location it won't break existing sites?
Sep 15, 2016 at 8:22 AM
You can let the old function take the same parameters and simply execute the new, passing all parameters. Ala

@Html.C1().Function(... new function name ..., ... all parameters ...)
Sep 16, 2016 at 12:18 AM
Sorry i should have been more specific. The name changes need to be consumer facing. So if they used to use "FunctionFoo" they would now see "FunctionBar".

Right now i'm thinking via permissions i would hide the legacy ones and create new ones and the legacy ones would use your suggestion.

It would be great if the function itself could define it's own name like how there is a FunctionDescription. Even better would be if i could specify how it's shown to the user..something like Attribute Routing (http://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2) so I could specify the directory structure and naming.
Sep 19, 2016 at 5:11 PM
@TheRocket786, @burningice
Show your interest here https://github.com/Orckestra/C1-CMS/issues/229