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.

{exp:comment:notification_links} not displaying anything

April 24, 2014 8:45pm

Subscribe [2]
  • #1 / Apr 24, 2014 8:45pm

    arvinsim

    23 posts

    I copied the example in the documentation to display

    {exp:comment:notification_links}
        {if subscribed}
                <h5><a href="http://{unsubscribe_link}">Unsubscribe to comment notification for this entry.</a></h5>
    <p>    {if:else}<br />
                </p><h5><a href="http://{subscribe_link}">Subscribe to comment notification for this entry.</a></h5>
    <p>    {/if}<br />
    {/exp:comment:notification_links}

    However, nothing is outputted.

    Is this supposed to be inside a {exp:comment:entries} or {exp:channel:entries} tag?

  • #2 / Apr 28, 2014 2:44am

    Riverboy

    2993 posts

    Hi,
    Made a test. I got it working In a comment-page (single entry page) inside of channel:entries tag.

  • #3 / Apr 28, 2014 8:33pm

    arvinsim

    23 posts

    I cut down my code to the bare minimum and created a template just for it for testing.

    I still don’t see the links. For reference, here is the code with the “channel” and “url_title” params changed for anonymity purposes

    {exp:channel:entries
     channel="foo"
     dynamic="no"
     status="open"
     url_title="bar-qux"
    }
     Comment Links
     {exp:comment:notification_links}
       {if subscribed}
         <h5><a href="http://{unsubscribe_link}">Unsubscribe to comment notification for this entry.</a></h5>
    <p>   {if:else}<br />
        </p><h5><a href="http://{subscribe_link}">Subscribe to comment notification for this entry.</a></h5>
    <p>   {/if}<br />
     {/exp:comment:notification_links}<br />
    {/exp:channel:entries}

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

ExpressionEngine News!

#eecms, #events, #releases