Keyword

Export K2 content links

  • Sebron Snyder
  • Sebron Snyder's Avatar Topic Author
  • Offline
  • Junior Member
More
2 months 1 day ago #169088 by Sebron Snyder
Sebron Snyder created the topic: Export K2 content links
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.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 months 1 day ago #169089 by Fotis
Fotis replied the 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);
}


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white