1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

As Designed xen:likes does not accept xen:link in the url parameter

Discussion in 'Resolved Bug Reports' started by rellect, Jan 2, 2015.

  1. rellect

    rellect Well-Known Member

    This is probably not a real bug, and very trivial thing anyway, but thought to mention it.
    <xen:likes /> does not accept {xen:link} in the url parameter. {xen:link} should generate an expected value for the url parameter.

    The workaround I'm using currently is saving the value of the {xen:link} in a new var.
    HTML:
    <xen:set var="$likesUrl">{xen:link posts/likes, $someVar}</xen:set>
    <xen:likes number="$someVar.likes" users="$someVar.likeUsers" url="$likesUrl" liked="$someVar.like_date" />
    Could be much cleaner to use {xen:link} in the parameter.
     
    Last edited: Jan 2, 2015
  2. Chris D

    Chris D XenForo Developer Staff Member

    I don't think we'd be making any changes here at this point, as it's mostly expected that the attribute values here would be variables and this is not exclusive to likes, either, IIRC.

    What is probably even more ideal is to just pass the variable to the template from your PHP code.
     

Share This Page