Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By destifano on
hi
i start to use pathauto, for a type content i want to set the alias like exemple/1, exemple/2, exemple/3 ..... and i dont know how to do it
Comments
You can follow these Steps:
You can follow these Steps:
thanks
thanks
but it will not be in order, for exemple if i have 3 contenet type exemple, exemple1, exemple2...
alias will be like exemple/1, exemple2/2, exemple3/3....
i want any content type to have numbers in order
Sounds like you want to use a
Sounds like you want to use a Serial Field in the content type.
from the description it's
from the description it's really what i need.. but i don't know how to use it.
i creat a field in my type.
my content type's name is "exemple". and my field's name is "field_code"
in "Pattern for all exemple paths" i put :
[{field_code}-id]
or
[field_code-id]
but when i want to save the path it give me this message :
The Pattern for all exemple paths cannot contain fewer than one token.
Unable to understand what "field_code" is doing
As I understood your problem you required auto incremented field in your content type and as nevets suggested you, this module will work for you.
Even unable to understand what following line mean and what "field_code" field exactly does.
First you tell us about this field what it store and how you want to use this field in Path Pattern.
My suggestion for you to go with Serial Field module and create field of Serial type in your content type. And use this field in Path pattern that will make same result as you required.
If It doesn't fulfil your requirement then please explain your problem in detail.
Pushpinder Rana #pushpinderdrupal
Acquia Certified Drupal Expert