Keyword

Export K2 content links

  • Sebron Snyder
  • Sebron Snyder's Avatar Topic Author
  • Offline
  • Junior Member
More
5 years 7 months ago #169088 by Sebron Snyder
Export K2 content links was created by Sebron Snyder
I am on a 301 redirect task and need to somehow export all joomla K2 links to a spreadsheet. I do not need the content or any other information just the urls associated with the K2 articles on the joomla site. Does anyone know how this can be done?

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #169089 by JoomlaWorks
Replied by JoomlaWorks on topic Export K2 content links
You would need to create a plugin or module to query the DB for all published K2 items with guest/public-view rights. Once you get all the K2 item IDs, you could loop through the results like this:
// Assuming $results is the DB query results
foreach ($results as $id) {
    echo JRoute::_('index.php?option=com_k2&view=item&id=' . $id);
}

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum