Results 1 to 2 of 2

Thread: Get the subject name of a newsletter field into an article

  1. #1
    New user
    Join Date
    08-22-17.
    Posts
    15

    Default Get the subject name of a newsletter field into an article

    I am working with contao newsletter. Is there a way to get the subject field value of newsletter into an article which is text content element.
    Suppose my newsletter subject field name is "XXXXX". And I want to get this name into my article which is text content element. Is there any way?

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Untested:

    Use this insert tag (id must be the ID of the newsletter):
    {{file::nlSubject.html5?id=42}}

    templates/nlSubject.html5
    PHP Code:
    <?= \NewsletterModel::findByPk(\Input::get('id'))->subject?>
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

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
  •