Arman
Arman

Reputation: 846

OrchardCMS Custom Forms and lookup fields

I can create custom form with Orchard Custom forms Module based on a Content Type. Also i can add Enumerable field to the Content Type to show as combo box in created custom form. But i can set list items of the enumerable field statically only. How can i set this items based on result of a projection query or fill the combo box by any content items of a special content type dynamically?

Upvotes: 1

Views: 487

Answers (1)

Richard Garside
Richard Garside

Reputation: 89140

You can't out of the box.

You could write your own module that provided a query driven combo field, but if you've not written a module before then you might want to start with writing a more simple field module first.

You might find the following useful:

I'd also look at the Orchard Source code for the projection module to see how they use queries.

Upvotes: 1

Related Questions