Forum Discussion

Inactive User's avatar
Inactive User
4 years ago

Upgrading to Forums 5, now the reply subjects aren't showing

We use a custom article layout. In Forums 4.xx and below,  <@component id="message-view.widget.subject" disableSubjectLink="true"/> Worked fine to show the Re: subject line However, in Forums 5 th...
  • Inactive User's avatar
    Inactive User
    4 years ago

    I wound up just making a LiQL call for the subject and echoed it. 

     

    <#assign apiVersion = "2.0"/>
    <#assign featuresQuery = "SELECT subject FROM messages WHERE id='${env.context.message.uniqueId}'"/>
    <#assign subjects = rest(apiVersion, "/search?q=" + featuresQuery?url + "&restapi.response_style=view").data.items![] /> 

     

    <#list subjects as subject>
    <div class="lia-message-subject lia-component-message-view-widget-subject">
    <div class="MessageSubject">
    <h2 class="message-subject">
    <div class="lia-message-subject">
    ${subject.subject}
    </div>
    </h2>
    </div>
    </div>
    </#list>