Question for permalinks (prefix)

By daniel - January 21, 2020

Hi Jesus,

It looks like between that old post and now the variable name has changed from $requiredPrefix to $permalinkPrefix, so to make it match you'd need to change your code to this:

// is autopopulate needed?
$permalinkText   = @$_REQUEST['permalink'];
$permalinkPrefix = $GLOBALS['schema']['permalink']['defaultValue'];
if ($tableName == "viajes"){
  $permalinkPrefix .= htmlspecialchars(@$_REQUEST['destino']);
}

Let me know if that does the trick, or if you have any other issues!

Thanks,

Daniel
Technical Lead
interactivetools.com