We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7914
    • 137 Posts
    I would like to use MODx to create landing pages for a newsletter I am building. The work-flow from a users point of view would be:
    newsletter->landing page->another landing page->another landing page (and so on)

    I have built something similar by hand but wanted to take some of the workload off by leveraging MODx.

    I saw there is a plugin for a newsletter, but I’m not sure it’s what I need.

    In essence, I would like to create a container and fill it with pages. Then create another container and fill it with pages. (Using container documents as pseudo issues to my newsletter)

    Has anyone tried anything like this?

    Thank you for your time.
      • 4971
      • 964 Posts
      I have not done something like this but I have thought about it
      as I am going to implement it in the future.

      I use Pommo as my email manager so I will send the newsletter from
      there and "point" to landing pages in the links...

      I would set a "Landing Pages" container and then inside it place
      a container for each campaign. The campaigns can be an email campaign,
      a PPC campaign, a blog link and a link from Facebook or Twitter (or other
      social media outlets).

      Inside the properly identified campaign container I would place the
      main landing page (as a container) and in that tree all the appropriate
      ones, like the secondary and/or terciary landing pages up to the thank you one
      which will move the visitor to the appropriate conversion path.

        Website: www.mercologia.com
        MODX Revo Tutorials:  www.modxperience.com

        MODX Professional Partner
        • 7914
        • 137 Posts
        Charliez,
        Thank you for your reply. It sounds like you are going to do exactly what I am going to (try) to do. I am using Campaign Monitor for my email manager. So, just like your scenario, once a user clicks off of the email to a landing page, they (the user) will just stay on the "hosted" version of my newsletter -- which is maintained by MODx.

        I will read your post a few more times to get it through my head. I think my biggest hurdle to cross is how to make sure all of my "Newsletter A" documents stay with newsletter A, and when I create "Newsletter B" all of those documents stay together.

        Thank you again for your time.
          • 4971
          • 964 Posts
          Well, maybe something like this...

          Home
          |_ About us
          |_ Products
          |_ Services
          |_ ...
          |_ Contacts
          |_ Landing Pages
          |_ Campaign_001
          |_ Newsletter_A
          |_ Segmenting Landing Page - Link 1
          |_ Basic Landing Page
          |_ Secondary Landing Page
          |_ Thank you Landing Page
          |_ Segmenting Landing Page - Link 2
          |_ Basic Landing Page
          |_ Secondary Landing Page
          |_ Thank you Landing Page
          |_ Segmenting Landing Page - Link x
          |_ Basic Landing Page
          |_ Secondary Landing Page
          |_ Thank you Landing Page
          |_ Campaign_002
          |_ Newletter_B
          |_ ...
          |_ Campaign_003
          |_ Copy of PPC Ad
          |_ ...
          |_ Campaign_004
          |_ Copy of blog article
          |_ ...


          You get the point... I would use this cascading arrangement or
          just place everything directly under the Campaign_xxx container.

          Do not understand why you say "they (the user) will just stay on the "hosted"
          version of my newletter"... I think they will jump to the appropriate landing
          page depending on which link they clicked. After that is just post-click
          management of the user. You can set your analytics software to follow each
          campaign as a funnel to "see" how far your visitor goes and also send other
          emails depending on their actions.

          Hope this helps... your comments and questions are valuable as I am also thinking
          about this kind of stuff...
            Website: www.mercologia.com
            MODX Revo Tutorials:  www.modxperience.com

            MODX Professional Partner
            • 7914
            • 137 Posts
            The door is swinging both ways as I greatly appreciate your feedback as well.
            What you have said about post-click is dead-on. I just didn’t explain myself very well.

            Once the user clicks off of the email, they will go to the "real" newsletter (or the MODx newsletter) and then from there on, it’s up to them where they go. You are 100% correct.

            I plan to start on this fairly soon, so I will keep posting here with what I run into, maybe I can help avoid some pitfalls on your end.

            Thank you again for your time.
              • 7914
              • 137 Posts
              Just thought I’d update this post in case anyone else was thinking of doing the same. Also, if there are some pitfalls that are obvious please let me know - again for my and everyone eases benefit.

              I ended up using a similar site structure as charliez.

              Home
              |- Issue 01
              |- Article 01
              |- Article 02
              |- Article 03

              |- Issue 02
              |- Article 01
              |- Article 02
              |- Article 03

              To create my "landing page" or "Issue 01" template I used Ditto to capture any/all articles that belonged to any given issue. Doing some research, I knew I wanted to automate this template as much as possible - given that I may not want to use the Summary input within the manager to provide teaser text on my landing page.

              The phx will look at each article for any given issue, and grab the first paragraph and use it as a teaser. I also added a "Read More" link to the bottom of each teaser with a link to the actual article.

              To provide "Next, Previous, Home" links at the bottom of each article, I found a snippet called PrevJumpNext

              Hope this helps (anyone) out if they are interested in doing the same.
                • 15152
                • 360 Posts
                I’ve done this under two circumstances. One client wanted to measure how much traffic they could send to the pages through various advertising. The other did not want potential clients to see anything but the landing page and an About page. Both were done in MODx easily. Just plan it out, which it looks like you are.
                  There are no boring projects. Only boring executions. ~ Etzkorn
                  www.impress-design.com
                  • 7914
                  • 137 Posts
                  Just wanted to update this thread in the off chance anyone else was looking for this type of functionality.

                  Using the above logic for document hierarchy...

                  In my particular instance, the client wanted the ability to go from the last to the first article - a loop. So, I updated the
                  PrevJumpNext snippet to accommodate. I’m sure there is a more robust/efficient way to accomplish this but I thought I’d share with the community. (Gotta start somewhere I suppose.)

                  I created a var "loopDocs" of type boolean
                   * - loopDocs : Boolean : Last document displays next menu item that links to the first document (default 0)
                  


                  Checked if it was getting set (false by default)
                  if( !isset($loopDocs) )
                  {
                  	$loopDocs = 0;
                  }
                  


                  Finally, I set up my function
                  // Looping
                  if ($loopDocs)
                  {
                  	// check if we are at the start or end of documents
                  	if ($current == ($limit - 1) )
                  	{
                  		$PJN_prevPlaceHolder = "<a href='/[~".$my_array[$prev]['id']."~]' class='previous'>".$prevSymbol.$prevText."</a>".$separator."<a href='/[~".$my_array[1]['id']."~]' class='next'>".$nextSymbol.$nextText."</a>";
                  	}
                  	
                  	if ($current == 1)
                  	{
                  		$PJN_nextPlaceHolder = "<a href='/[~".$my_array[$limit - 1]['id']."~]' class='previous'>".$prevSymbol.$prevText."</a>".$separator."<a href='/[~".$my_array[$next]['id']."~]' class='next'>".$nextText.$nextSymbol."</a>";
                  	}
                  }
                  


                  I placed my functions right above the "Last item" function:
                  // Last item
                  $PJN_lastPlaceHolder = "<a href='/[~".$my_array[$limit-1]['id']."~]' class='last'>".$lastText.$lastSymbol."</a>";
                  


                  I call it like this within my template:
                  [[PrevJumpNext? sortBy=`menuindex` &sortHow=`ASC` &separator=` ` &displayTitle=`0` &displayTotal=`0` &displayIndex=`0` &nextText=`Next Article` &prevText=`Previous Article` &loopDocs=`1`]]
                  


                  Now, when I am at the last article of my newsletter, instead of only the back button, I have both back and forward - and I can go from the last to the first document. (Or first to the last)