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

XF 1.4 Feeder - additional elements

Discussion in 'XenForo Questions and Support' started by Dakis, Aug 16, 2015.

Tags:
  1. Dakis

    Dakis Well-Known Member

    When I'm trying to feed an rss to the xf feeder, I notice only specific elements can be displayed.

    For example, I have a feed that includes:

    <title>
    <description>
    <link>
    <image>

    The first two elements are text, and the other two are urls. I can display the first three but the fourth one simply does not return the url value when I click Preview Feed Entry, it simply shows {image}. The only difference between <link> and <image> is that the Image one has an https url instead of an http.

    Any idea what I can do?
     
  2. Mike

    Mike XenForo Developer Staff Member

    I don't believe an <image> tag is actually exposed on a per entry basis; I'm not sure it's actually a valid part of a feed. (Normally this is done through enclosures, which we do expose.)

    {image} won't work though as we don't provide a replacement for it.
     
  3. Dakis

    Dakis Well-Known Member

    Thanks for the response Mike - I believe an RSS feed can contain anything in terms of tags etc, the <image> tag is there simply because I put it. I can name it any other way, but essentially all I need is to be able to get a url from one tag and use it in my posts.

    Is there any other {element} name I can use to parse that url ?
     
  4. Mike

    Mike XenForo Developer Staff Member

    RSS has a specification, so not all tags are allowed unless you potentially put them in extension namespaces, but getting access to that would require custom development.
     
  5. Dakis

    Dakis Well-Known Member

    I see - so the end result is I cannot do it.

    Thanks for your replies Mike. I guess I'll have to do without the images.
     

Share This Page