I am trying to use rules to build a "Add another Node" workflow after the content being updated or created. But this token [node:content-type] does not take the alias of the node type if the URL alias having the separator short dash "-". For example, I have a content type "Book Page", The "Add another node" link will go with node/add/Book Page instead of node/add/book-page.
Am I doing something wrong or it is a bug?
My token version is:7.x-1.0-beta7, and rules version: 7.x-2.0, pathauto: 7.x-1.0, with Drupal 7.8
Any help/advices would be greatly appreciated!
Comments
Comment #1
dave reidRules doesn't really have anything to do with Pathauto and the token is working as expected because the token value of [node:content-type] in this case is actually 'Book Page'. Transferring to the Rules issue queue.
Comment #2
ouyang1512 commentedThanks for transferring this issue to the right place!
Comment #3
ouyang1512 commentedAnybody can replicate this or just my issue?
Comment #4
tr commentedMarked #2199577: [node:content-type] no longer internal value as a duplicate.
Comment #5
tr commented*Some* of the available tokens are listed in "Replacement patterns". But when you expand the "Replacement patterns" container, you see the following message:
Also note that while core Drupal provides tokens, many others are provided by the optional Token module if you have it installed, or by other contributed modules like Entity tokens.
So a core token for the machine name of the type would be [node:type], while the contributed Token module also gives you [node:content-type:machine-name].
There should be a better way to browse the available tokens, but that's outside the scope of this issue.