ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

User Messages URL

January 27, 2012 6:42pm

Subscribe [2]
  • #1 / Jan 27, 2012 6:42pm

    Matt Ellis

    51 posts

    Hello,

    How can I modify the URL where user message appear?

    For example if a user unsuccessfully tries to register at example.com/members/register the user message appears at example.com (eg: “The form you submitted contained the following errors”)

    I’m building a multilingual site and my language switch is domain suffix (using Freebie example.com/en/) and I would like to have the user messages appear at example.com/en/

    Users would be registering at example.com/en/members/register

    Thanks!

    EEv2.3.1 - Build: date 20111017

  • #2 / Jan 28, 2012 11:22am

    Brian Litzinger

    705 posts

    Custom System Messages can do this in a couple of ways, first is the Ajax submit option, which doesn’t require a page reload at all. The second I’ve only done when using Structure, not the normal template_group/template_name pattern. Create a page in Structure such as /members/register, and whatever template you use for that page, also assign that template as the success AND error template in the custom actions in CSM. In the template just use a conditional such as:

    {if csm:error}
        show error text
    {if:else}
        put register form here
    {/if}

    This basically keeps the use on that template during the whole registration process, and at the same URI.

    Yes this is my add-on, so sorry for the promotion 😊

    http://boldminded.com/add-ons/csm

  • #3 / Jan 29, 2012 9:13am

    Sean C. Smith

    3818 posts

    Matthew,

    That is not available out of the box with ExpressionEngine and I would suggestion searching Devot://ee for an addon or choosing litzingers add-on.

    Does this help?

    Sean

  • #4 / Jan 30, 2012 9:43am

    Matt Ellis

    51 posts

    Hi litzinger,

    Yes, I think this will work - self promotion is a good thing!

    I have a question regarding this method (retaining the {freebie_1} segment) which I will raise on the CSM Devotee support forum.

    Thanks!

  • #5 / Feb 02, 2012 8:26pm

    Sean C. Smith

    3818 posts

    Matthew,

    Glad that this will work for you. I’m going to close out this thread, but feel free to post again when you have more questions.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases