简体   繁体   English

如何在Umbraco中构建自定义组件?

[英]How to build custom components in Umbraco?

Is it possible to build custom components in Umbraco as you would in standard asp.net? 是否可以像在标准的asp.net中一样在Umbraco中构建自定义组件? I would like to for example make a image upploader. 我想做一个图像upploader。 I know how to do that in standard asp.net. 我知道如何在标准的asp.net中做到这一点。 I'm concerned how not to break the CMS and extend it with my custom functionality. 我担心如何不破坏CMS并使用我的自定义功能扩展它。

welcome to the Umbraco CMS. 欢迎来到Umbraco CMS。 I would recommend posting your questions on http://our.umbraco.org instead of on Stack Overflow as there are way more people who know the answer hanging out there than there are on Stack Overflow. 我建议你在http://our.umbraco.org而不是Stack Overflow上发布你的问题,因为有更多人知道答案,而不是Stack Overflow。

To answer your question, if you can build a Web User Control, then you've built a macro for Umbraco! 要回答您的问题,如果您可以构建Web用户控件,那么您已经为Umbraco构建了一个宏! So yes, extensibility is simple. 所以是的,可扩展性很简单。 All you need to do know if to either put your user control on a master page (also known as Template in Umbraco, but it's a normal Webforms master page) and it will be picked up. 所有你需要知道的是,要么将用户控件放在母版页(在Umbraco中也称为模板,但它是一个普通的Webforms母版页),它将被拾取。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM