permalinks. auto generate from 2 fields

By Dave - December 22, 2017

Hi Zaba, 

Hmm, it doesn't do that by default.  But it does support multiple fields like this :

$GLOBALS['PERMALINKS']['autopopulate_fromFields'] = array('client project'); 

So you could try editing the _permalink_generate_getInputText() function in permalinks.php: 

And replace ' ' with '/' in these two lines: 

    $inputText .= $recordOrRequest[$field] . ' '; // trailing space in case more fields are added
  }
  break;
}
$inputText = rtrim($inputText, ' '); // remove trailing spaces

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com