I create snippet, wich return document's ID.
$output = 'http://www.udec.com.ua/ru/index.php?id=' . $etomite->documentIdentifier . ''; return $output;
Now I need snippet, which return document's alias. How make it?
Thanks in advance.
Posted 30 August 2007 - 11:09 AM
$output = 'http://www.udec.com.ua/ru/index.php?id=' . $etomite->documentIdentifier . ''; return $output;
Posted 30 August 2007 - 12:30 PM
Quote
Posted 30 August 2007 - 12:32 PM
Posted 30 August 2007 - 12:54 PM
$id=1;//doc to get alias from $docAlias=$etomite->getPageInfo($id, $active=1, $fields='alias'); return $docAlias['alias'];
Posted 30 August 2007 - 01:03 PM
Posted 30 August 2007 - 01:17 PM
charly, on Aug 30 2007, 11:03 PM, said:
Quote
$output = 'http://www.udec.com.ua/ru/index.php?id=' . $etomite->documentIdentifier . ''; return $output;
Posted 30 August 2007 - 01:21 PM
Posted 19 September 2007 - 09:54 AM
Ralph, on Aug 30 2007, 03:21 PM, said:
Posted 19 September 2007 - 10:42 AM
Posted 19 September 2007 - 10:55 AM
$output = '[~' . $etomite->documentIdentifier . '~]'; return $output;
Posted 19 September 2007 - 01:09 PM
Dean, on Sep 19 2007, 06:55 AM, said:
$output = '[~' . $etomite->documentIdentifier . '~]'; return $output;It would return ether the id number of the page, the id number of the page + the extension, or the alias (+ext), depending on the etomite configuration.
Posted 19 September 2007 - 01:14 PM
0 members, 1 guests, 0 anonymous users