Recipe - set some core settings

Topics: Administration
Jan 25, 2013 at 12:42 PM
Edited Jan 25, 2013 at 12:42 PM

Hello,

in my new Recipe I need to turn on some settins, ie: RegistrationSettingsPartRecord.UsersCanRegister.

How can I do it?


Thank you.

Jan 25, 2013 at 12:46 PM

Here's an example: 

<?xml version="1.0"?>
<Orchard>
    <Recipe>
        <Name>Your Recipe Name</Name>
        <Description>Your recipe description</Description>
        <Author>Your Name</Author>
        <WebSite>http://your-site.com</WebSite>
        <Tags></Tags>
        <Version>0.1</Version>
    </Recipe>
    <Settings>
        <RegistrationSettingsPart UsersCanRegister="true" UsersMustValidateEmail="false" UsersAreModerated="false" NotifyModeration="false" EnableLostPassword="true" />
    </Settings>
</Orchard>

Jan 25, 2013 at 1:05 PM

Perfect! Thank you.

Jan 28, 2013 at 6:28 AM

Is it possible to use user input as a value?

Lets say I would like to use SiteName privided by User during the setup for setting the "RegistrationSettingsPart.ValidateEmailRegisteredWebsite".

Coordinator
Jan 31, 2013 at 7:43 AM
No. You would have to modify the setup module for that.