Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Cort Larsen 421 posts 1038 karma points
    Nov 22, 2012 @ 20:41
    Peter Cort Larsen
    0

    Using UmbracoMembers filter on property

    Hi,

     

    When using UmbracoMembers to store subscribers, i would like to know if i can filter on an member property (Language) besides the membergroup when sending mails from newsletter studio.

     

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Nov 23, 2012 @ 06:04
    Markus Johansson
    0

    Hi!

    The standard subscription provider for umbraco members doesen't support filtering on properties but its very easy to implement your own provider that has different lists depending on language. Look for the part about Subscription Providers in the documentation and have a look at the contrib-project where there's some examples: https://github.com/enkelmedia/NewsletterStudioContrib

  • Peter Cort Larsen 421 posts 1038 karma points
    Nov 23, 2012 @ 09:33
    Peter Cort Larsen
    0

    Hi, Thanks

    Yes, its seems easy to roll your provider.

    But how do i get my mailing list to appear inside the newsletter studio node 'Mailing Lists'?

    I tried using the ucomerce provider example.

    Added the table to hold subscribers, copied dll, set web.config

    In the example I see the method 'GetListItems', but nothing shows up in newsletter studio.

  • Peter Cort Larsen 421 posts 1038 karma points
    Nov 23, 2012 @ 09:39
    Peter Cort Larsen
    0

    Oh and i have newsletter stuido 1.2

    How to i best upgrade it, if thats needed?

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Nov 23, 2012 @ 10:03
    Markus Johansson
    0

    Hi!

    Upgrading from 1.2 to 1.3 will need to change stuff in the db (not handled by the installer). I would install the package in a nother instance and then replicate the table schema OR delete old information and save whats needed somewhere outside the db.

    The provider can't be used for mailing lists in the tree, they will show only when you click to send the newsletter and choose mailing list.

  • Peter Cort Larsen 421 posts 1038 karma points
    Nov 23, 2012 @ 10:16
    Peter Cort Larsen
    0

    Hi,

     

    I dont have any subscribers yet. So i could just uninstall vers. 1.2 and install 1.3, right?

     

    "The provider can't be used for mailing lists in the tree, they will show only when you click to send the newsletter and choose mailing list." So i have to create my own control to handle the subscribers  and categories from Umb, right?

     

     

  • Peter Cort Larsen 421 posts 1038 karma points
    Nov 23, 2012 @ 10:43
    Peter Cort Larsen
    0

    Hi,

     

    I uninstalled 1.2 and installed 1.3. Neede some tweaks in tinyMceConfig.config to remove multiple settings.

    I then updated newsletter studio web.config with the new provider, but i dont see the catagory add in 'GetListItems()' .

    publicoverrideIEnumerable<ListItem> GetListItems()

    {

     

     

    returnnewList<ListItem> { newListItem() { Text = "Customers", Value = "0" } };

    }

     

    Here is the web.cofig

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <configSections>
            <section name="newsletterStudio" type="NewsletterStudio.Bll.Configuration.NewsletterStudioConfig"/>
        </configSections>
        <newsletterStudio unsubscribeConfirmUrl="" tinyMCEDataTypeId="3079"
            sendFailuresBeforeUnsubscribingSubscriber="4" settingsOnlyForAdmins="false"
            forceUnsubscribeFooter="true" enableGoogleAnalyticsTracking="false"
            googleAnalyticsMedium="" allowedTemplatesForRenderUrl="" googleAnalyticsSource=""
            googleAnalyticsName="" googleAnalyticsContent="">
            <outgoingEmail throttlingEnabled="false" throttlingMessagesPerBatch="25"
                throttlingSecondsBetweenBatches="5" messagesBeforeJumpingToNextServer="50">
                <smtpServers>
                    <add name="Local" host="localhost" port="25" username="" password=""
                        enableSsl="false" />
                </smtpServers>
            </outgoingEmail>
            <bounceManagement enabled="false" email="" host="" port="0" username=""
                password="" />
            <emailRenderingTasks>
                <task name="AddTrackingPixelRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddTrackingPixelRenderTask, NewsletterStudio" />
                <task name="FitIntoTemplateRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.FitIntoTemplateRenderTask, NewsletterStudio" />
                <task name="ReplaceUnsubscribeRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceUnsubscribeRenderTask, NewsletterStudio" />
                <task name="ReadOnlineRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReadOnlineRenderTask, NewsletterStudio" />
                <task name="ReplaceLocalLinksRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceLocalLinksRenderTask, NewsletterStudio" />
                <task name="AddFullDomainToRelativeSrcsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddFullDomainToRelativeSrcsRenderTask, NewsletterStudio" />
                <task name="RenderUrlRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.RenderUrlRenderTask, NewsletterStudio" />
                <task name="ReplaceRelativeLinksRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceRelativeLinksRenderTask, NewsletterStudio" />
                <task name="GoogleAnalyticsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.GoogleAnalyticsRenderTask, NewsletterStudio" />
                <task name="AddClickTagsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddClickTagsRenderTask, NewsletterStudio" />
                <task name="ReplaceUniqMergeFieldsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceUniqMergeFieldsRenderTask, NewsletterStudio" />
            </emailRenderingTasks>
            <subscriptionProviders>
                <!--provider name="NewsletterStudioSubscriptionProvider" type="NewsletterStudio.Bll.Providers.NewsletterStudioSubscriptionProvider, NewsletterStudio" /-->
                <!--provider name="UmbracoSubscriptionProvider" type="NewsletterStudio.Bll.Providers.UmbracoSubscriptionProvider, NewsletterStudio" /-->
      <provider name="uCommerceSubscriptionProvider" type="NewsletterStudioContrib.SubscriptionProviders, NewsletterStudioContrib" />
            </subscriptionProviders>
        </newsletterStudio>
     
    </configuration>

    namespace

     

     

    NewletterStudioContrib.SubscriptionProviders {

    publicclassuCommerceSubscriptionProvider : SubscriptionProviderBase

    {

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Nov 23, 2012 @ 11:58
    Markus Johansson
    0

    Hi!

    Where are you looking? The mailing list will not show as a node in the treeview, it will appear as a option when you are performing the send out. So try to make a draft email and click "Send" then look in the drop down list for choosing a mailing list.

    // markus

  • Peter Cort Larsen 421 posts 1038 karma points
    Nov 23, 2012 @ 12:04
    Peter Cort Larsen
    0

    I am looking her:

     

     

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Nov 23, 2012 @ 15:52
    Markus Johansson
    0

    Are you using the exact solution from the NewsletterStudioContrib-github? If not, are you sure that you are using the right assembly name in the config-file? Right click the solution and look in the properties. No errors in log files or so?

    // M

Please Sign in or register to post replies

Write your reply to:

Draft