Is use a configuration section to store all my common settings.
I think you can make one easy with Thunder... Or this...
Configuration section is exactly where this should be set, it's the common backend place where all modules store their data... you would store the PageId in it...
Example: /Sitefinity/Administration/Settings/Advanced/Project (Click DefaultSite)
So this is where you can tell the login widgets where the frontend page is (url or ID) if the user needs to be authenticated...
Can you elaborate a bit on what you're doing though? Custom Module as in custom coded, or Module Builder, etc etc?
To be honest I'don't entirely follow what you are trying to achieve. With that said, what if you created a custom module and used that to store the settings. You could then update the settings in the custom module when a page is created.
Or you could manually create a table in the Sitefinity database for storing the settings. You would than write your own code for querying and updating the settings.
Actually there is no reason the same approach could not be applied to Steve's suggestion of creating a custom configuration. I'm pretty sure that the custom configuration can be saved to using the API. So you could update the custom configration after a page has been saved.
Hello, I finally could do the thing that i want, but now i had a problem, can anyone tell me how i can do a label for put in the main section of the module and also and multiline input for comments? Using a sintax as the below sintax, to this multiline and label appear when the custom module is installed
var titleField = new TextFieldDefinitionElement(mainSection.Fields)
ID = "titleFieldControl",
DataFieldName = displayMode == FieldDisplayMode.Write ? "Title.PersistedValue" : "Title",
DisplayMode = displayMode,
Title = "Page Name",
CssClass = "sfTitleField",
WrapperTag = HtmlTextWriterTag.Li,
I don't want use the Description property to put "IsRequired", I want put "IsRequired" down the select page field