Design help needed

Topics: Customizing Orchard, Writing modules
Jul 17, 2013 at 2:15 AM
Edited Jul 17, 2013 at 2:24 AM
hello everyone,
I want to build button part. This part should be able to be put in any page.
Probably i should build a widget for it. right?
But I also need it to be able to be grouped into buttons for UI considerations.
so it means I should also build a content type.

for example I would have :
  • button add => content item
  • button print => content item
  • a group of buttons : add and print. => content item
then, my widget should be able to contain content item [any of those three]
and i should be able to extend the button(s) content item , for example : adding user access to it.

I need your opinion on this design.
is this the right way to do in orchard? or probably it has simpler way to do it?

thx
juna
Developer
Jul 20, 2013 at 2:56 PM
Yes, if you build your custom part, it can be attached to any content type you want, including your own widget which in turn can be placed anywhere you want.