How to shorten {{announcement_url}} for emails?


Home Forums Front End PM PRO How to shorten {{announcement_url}} for emails?

This topic is: Resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #32247
    Uğur Terzi
    Participant

    Hello,

    are there any hook or snippet to shorten or rewrite the {{announcement_url}} for announcements?
    The default one looks ../?fepaction=view_announcement&fep_id=XXX
    What I expected: ../?myaction=view_myannouncement&my_id=XXX
    or
    What I expected: ../myannouncement/XXX
    Thank you

    #32266
    Shamim Hasan
    Keymaster

    Sorry, currently there is no hook for this.

    #32269
    Uğur Terzi
    Participant

    Ok, thank you,
    what about wrapping the link? is there any possible way?
    something like that maybe?? {{announcement_url}}Text{{/announcement_url}}

    Thank you

    #32272
    Shamim Hasan
    Keymaster

    You can add like <a href="{{announcement_url}}">YOUR TEXT HERE</a>.
    Change YOUR TEXT HERE to whatever you like.

    #32274
    Uğur Terzi
    Participant

    Perfect, that’s a quite solution. Thanks, Shamim.

    #32389
    Uğur Terzi
    Participant

    By the way it seems we created a email tempalte with wrapping {FEP-EMAIL-CONTENT}
    How can we extract the {{announcement_url}} or message url conditions and replace with similar <a href="{{announcement_url}}">YOUR TEXT HERE</a>?

    Thanks

    #32392
    Uğur Terzi
    Participant

    I guess we need to re-build the inline contect with https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/email-template-tag/ right?

    #32395
    Uğur Terzi
    Participant

    I found the solution, sorry 🙂

    *{FEP-EMAIL-CONTENT} is replaced by the content entered in Front End PM PRO > Settings > Emails
    * Template tags can be used both in that content and/or directly to this template

Viewing 8 posts - 1 through 8 (of 8 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.