Orchard Hungary is an archive

This site is now an archive. We'll keep it so the content is accessible, but we won't update it anymore. However, we frequently publish Orchard-related news on our other site Orchard Dojo, so be sure to check that out instead. And if you're interested in news about our Orchard development company, Lombiq, check out our website.

Orchard Brotips: politely ask Orchard to submit it for you

Tags: Orchard, Orchard brotips, forms, submit

This one you will like. Let's take a look at src\Orchard.Web\Core\Contents\Views\Admin\List.cshtml where you can see these lines:

<button type="submit" name="submit.BulkEdit" value="yes">@T("Apply")</button>
<button type="submit" name="submit.Filter" value="yes please">@T("Apply")</button>

"Yes" and "yes please"? Lolwut?

These buttons are used to submit the bulk editor and filter of the admin content list. Now you could think that those funny values are just jokes. They aren't, remove them and they won't work. Why? I have no idea, haven't investigated; but this is a small detail worth knowing when you develop a similar content listing logic, possibly taking code from the Core.

Happy submitting :-).

No Comments