Results 1 to 6 of 6

Thread: [solved] Newsletter date format and webversion link,

  1. #1
    User
    Join Date
    03-06-10.
    Posts
    54

    Default [solved] Newsletter date format and webversion link,

    Hello contao community,

    i have a question thats related to the newsletter module thats in contao,

    i want to chance my date format from : 2011-03-31 to --> Thursday 31 March 2011
    I'm using this insert tag for my date format : {{date}}

    And when i'm sending a newsletter i want to have a link to the web version,
    can i do that with a insert tag or something? or is there a easier way?

    Much Thanks

    Tieme

    ( i found another little problem. thats this insert tag ##email## this wont work for me. i only use subscribe for newsletter and no user accounts.)

  2. #2
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Newsletter date format and webversion link,

    http://www.contao.org/insert-tags.html
    {{date::*}}
    If you click the little helpwizard triangle in Settings above Date Format, you'll see some formats you can use.
    In your case though it doesn't seem to be listed there, but they're the same as the php Date() formats

    http://php.net/manual/en/function.date.php

    It says...
    Contao supports all date and time formats that can be parsed with the PHP date() function. However, to ensure that any input can be transformed into a UNIX timestamp, you can only use numeric date and time formats (j, d, m, n, y, Y, g, G, h, H, i, s) in the back end.
    but I'm not sure if this applies to inserttags.

    Try {{date::l jS \of F Y}} or {{date::"l jS \of F Y"}} to see

    Re the other two questions- dunno (I'm not a newsletter user sorry)

  3. #3
    User
    Join Date
    03-06-10.
    Posts
    54

    Default Re: Newsletter date format and webversion link,

    Quote Originally Posted by ramjet
    http://www.contao.org/insert-tags.html
    {{date::*}}
    If you click the little helpwizard triangle in Settings above Date Format, you'll see some formats you can use.
    In your case though it doesn't se....................
    Thanks Ramjet,

    that did the trick for the date.

    now i hope some one else can help me with the other 2 questions,
    because i don't know how that works..

    Much Thanks

    Tieme

  4. #4
    User
    Join Date
    03-06-10.
    Posts
    54

    Default Re: Newsletter date format and webversion link,

    the e-mail problem i haved fixed also,

    i had ##e-mail## and not ##email## so that was my problem with that.

    i only need a link to the webversion i dont know how do i do that anyone?

    mucht thanks

  5. #5
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Newsletter date format and webversion link,

    Permalinks ¶
    Each newsletter has a unique URL (permalink) that can be used to reference it:

    http://www.domain.com/newsletters/items ... ns.htmlThe above URL requests the newsletter james-wilson-returns via the page newsletters. Remember that Contao is a page-based CMS, so if the page newsletters did not exist or if it did not include the newsletter reader module, the newsletter would not be displayed.
    i think you'll need to add it manually as a link to the newsletter

  6. #6
    User
    Join Date
    03-06-10.
    Posts
    54

    Default Re: Newsletter date format and webversion link,

    i found this articel i think that is going to do the trick.
    http://www.contao-community.org/view...php?f=4&t=2013

    but it is anly doing the trick if i solve this problem
    http://www.contao-community.org/view...php?f=7&t=2972

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •