Hi!
I’ve switched on the "friendly alias path" option and I’m trying to get retrieve contents of some document by its alias (I use getDocumentObject function). But this function contains following code -
$sql= "SELECT sc.*
FROM $tblsc sc
LEFT JOIN $tbldg dg ON dg.document = sc.id
WHERE sc." . $method . " = '" . $identifier . "'
AND ($access) LIMIT 1;";
and it cannot find complex aliases like ’one/two/three.html’ by scanning modx_site_content.alias field...
I thought that ModX must have parser for such aliases to convert it to ids.
What you can advice to me?
PS I’m using ModX 0.9.6.1b.