content management system - Orchard CMS Widget Creation -


my goal create series of widgets orchard can re-use on following projects.

with in mind i'm able create widgets particular theme utilising migrations.cs file have found in orchard docs:

http://docs.orchardproject.net/documentation/widgets

stating: "a widget composed of 2 or more files placed in /packages/[mypackage]/widgets directory of application." suit me better in theory each widget have it's own folder, manifest txt , self contained it's own resources.

my question is: link out of date , therefore incorrect? , if not add 'packages' folder (i've tried adding various places inc 'src' folder) can't work. creating widget way possible?

thanks in advance

i have been working orchard since version 1.4 , haven't faced type of code crate widget.i think article out of date check link instead create widget.

in short sentence widget contenttype has part called widgetpart , has stereotype of widget.the migration widget :

 contentdefinitionmanager.altertypedefinition("foowidget", cfg => cfg                 .withpart("widgetpart")                 .withpart("commonpart")                 .withsetting("stereotype", "widget")); 

hope useful.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -