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

Hi,

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?

Thanks,

Leo - PHP Programmer (in training)
interactivetools.com

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 http://address.com/op-123/

op- is the default on the permalink field.

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

By leo - June 25, 2018

Hi, 

Is the permalink field set to be required or are you logged in as a non-admin user? When I test it with the admin account (And permalink not being admin only) and not required permalink field it works.

Leo - PHP Programmer (in training)
interactivetools.com

By leo - June 26, 2018

Hi,

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

Thanks,

Leo - PHP Programmer (in training)
interactivetools.com