1

I want to show the tags, that are assigned to a K2 item, in an RSS feed.

I have added:

$feedItem->tags = $tag;

to /components/com_k2/views/itemlist/viewfeed.php

and then added:

$feed .= "          <tags>" . htmlspecialchars($data->items[$i]->tags, ENT_COMPAT, 'UTF-8') . "</tags>\n";

to /libraries/joomla/document/feed/renderer/rss.php

I get the placeholder in the RSS feed view of but the tags aren't being show.

Any ideas where I'm going wrong?

1 Answer 1

1

Having now spoken with the K2 developers, it appears that this cannot be done using RSS. It can however be done using JSON. To do it edit this file:

components/com_k2/views/itemlist/view.json.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.