The tracker issue (and the Google Groups Doc linked from it) mention a separate download for at least the EXSLT extensions — has this surfaced anywhere?
Is there a page we can direct people to, for info about how you'd go about adding the necessaries to get "that old code that used XYZ" working again?
What if we had a user-defined xslt extension like <ext assembly="Aqua-Project" type="Aqua_Project.ProductList" alias="Aqua-ProdList" /> How and where would we include it in our freshly updated umbraco 7 project?
I think that this helpful information should be included in Upgrading to version 7 document next to information about removing xsltExtensions.config file.
So XSLT extensions from the xsltExtensions.config don't work anymore at all? I tried to add the file again, but that didn't seem to help. Do I really need to rewrite my code to use the attributes instead of the config file? Running 7.1.3 now.
I've added the XsltExtension attribute and now my extensions are working again :). Upgraded all the way from 4.0.3 with legacy XSLT, but it's all working in v7 now :).
no more xsltExtensions.config in Umb 7?
Hi,
Is it not possible to use xsltExtensions in Umbraco 7, if you maybe have some old code you wanna use again instaed of rewriting everything?
I cant find the xsltExtensions.config file in the config folder.
Hi Peter, you're correct it has been removed from Umbraco 7. See this ticket on the issue tracker
I guess the way to use old code is to write a wrapper class? (I know, I hear the frustration too!)
Cheers, Lee.
Hi Lee,
The tracker issue (and the Google Groups Doc linked from it) mention a separate download for at least the EXSLT extensions — has this surfaced anywhere?
Is there a page we can direct people to, for info about how you'd go about adding the necessaries to get "that old code that used XYZ" working again?
/Chriztian
For reference, the old EXSLT extensions are available as a standalone package:
http://our.umbraco.org//projects/website-utilities/exslt-redux
What if we had a user-defined xslt extension like
<ext assembly="Aqua-Project" type="Aqua_Project.ProductList" alias="Aqua-ProdList" />
How and where would we include it in our freshly updated umbraco 7 project?
Hi Rene,
You will need to add the
[XsltExtension("Aqua-ProdList")]
attribute to yourAqua_Project.ProductList
class.e.g. An example of how I did it on the EXSLT project: https://github.com/leekelleher/umbraco-7-exslt-redux/blob/master/src/umbraco.presentation.xslt.Exslt/ExsltStrings.cs#L13
Cheers,
- Lee
I think that this helpful information should be included in Upgrading to version 7 document next to information about removing xsltExtensions.config file.
Thanks Lee, that solved it! I have to review some of my calls to umbraco libraries now, but it looks like I can include the extention.
Hello,
So XSLT extensions from the xsltExtensions.config don't work anymore at all? I tried to add the file again, but that didn't seem to help. Do I really need to rewrite my code to use the attributes instead of the config file? Running 7.1.3 now.
Jeroen
Hi Jeroen, yup the
xsltExtensions.config
is no longer used in Umbraco 7+. TheXsltExtension
needs to be added to the class.I've added the XsltExtension attribute and now my extensions are working again :). Upgraded all the way from 4.0.3 with legacy XSLT, but it's all working in v7 now :).
Jeroen
Mine was working in 7.0.3 but upgrading to 7.1.4 getting this error:
The extension is in App_code
is working on a reply...