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

jaffaralia’s picture

You can follow these Steps:

  1. Go to this url: admin/config/search/path/patterns
  2. Default path pattern: exemple/[node:nid]
  3. Click Save configuration
destifano’s picture

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

nevets’s picture

Sounds like you want to use a Serial Field in the content type.

destifano’s picture

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.

er.pushpinderrana’s picture

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.

Sounds like you want to use a Serial Field in the content type.

Even unable to understand what following line mean and what "field_code" field exactly does.

my content type's name is "exemple". and my field's name is "field_code"

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