Jump to content

Get record database link

Featured Replies

Posted

In 3.4.7 I was able to use this function to get a database record URL. 

$this->registry->ccsFunctions->returnDatabaseUrl(**Database ID**, 0, **Record ID**)

Is there anything like this in the new version? It definitely made my life easy with this.

If database id is 1 and record id is 2:

$url = \IPS\cms\Records1::load( 2 )->url();
  • Author

Thanks! Much appreciated

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.