permalink use record 'num' field

6 posts by 2 authors in: Forums > CMS Builder
Last Post: June 26, 2018   (RSS)

By zaba - June 22, 2018

I have a problem, I need to use the record Number 'num' field in the permalink, but it will not allow me to do this.

$GLOBALS['PERMALINKS']['autopopulate_fromFields'] = array('num', 'name', 'title'); // the first field in this list with content will be used to create the permalinks. To use multiple fields separate them with spaces

This is a problem for me as using this field to denote the invoice number, and generating a permalink, this will ensure that the invoice numbers will remain intact and as direct links on the system. I can not use another field as they would not auto-increment, and I do not want them to be manually entered.

I can't find a solution to this.

any suggestions greatly recieved.

By leo - June 22, 2018


I have tested the permalinks plugin locally and it works with num field being used to created permalinks. Could you provide more details about what you want to achieve so we can identify what your issue is?


Leo - PHP Programmer (in training)

By zaba - June 25, 2018

Basically just need the number field to be used as the permalink so that an invoice  uses the number as the permalink which is generated on saving the record, using prefix op- to denote online purchase.

so the link would be

op- is the default on the permalink field.

when I go to save it says 'you must enter a value for permalink!

By zaba - June 26, 2018

Logged in as admin, permalinks field set to everyone and not required.

still not working

By leo - June 26, 2018


You can send your cms builder and ftp access information to, and we can take a look at the issue. Also please attach the exact link to the record that has this issue.


Leo - PHP Programmer (in training)