Each standard Drupal entity, such as node, user, taxonomy term, etc - have url token group that contains many tokens, based on entity url information.

For example node have those url alias tokens:

[node:url]
[node:url:unaliased]
[node:url:unaliased:absolute]
[node:url:unaliased:args]
[node:url:unaliased:brief]
[node:url:unaliased:relative]
[node:url:unaliased:path]
[node:url:absolute]
[node:url:args]
[node:url:args:value:?]
[node:url:args:keys]
[node:url:args:reversed]
[node:url:args:join-path]
[node:url:args:first]
[node:url:args:last]
[node:url:args:join:?]
[node:url:args:count]
[node:url:brief]
[node:url:relative]
[node:url:path]

But custom entities, created by Entity Construction Kit (ECK), provide no tokens, based on entity url alias, so ECK entities cannot be used as path part of Pathauto module.

How can I add url alias entities to custom ECK entities? Maybe this possible via some hack or external module?

Comments

Murz created an issue. See original summary.

johnny_aroza’s picture

Category: Bug report » Support request

Hi @Murz this can be achieved,

Go to URL config(/admin/config/search/path) and select entities (/admin/config/search/path/entities) you can find your eck entity under AVAILABLE ENTITY TYPES ,

select your eck and then save config

now your eck will be listed in patterns(/admin/config/search/path/patterns) and can do the necessary changes.

Murz’s picture

The issue is about missing url tokens in ECK entities. I already do that you describe and have eck in list of patterns. But all eck items miss tokens like eck:url:path, so I can't get eck url for reuse it in another entity pattern.

akalata’s picture

Category: Support request » Feature request

@Murz are you using 7.x-3.x and not 7.x-2.x? I'm cleaning up the queue in hopes of getting a 2.x release out, 3.x-specific issues may end up being ignored.

Murz’s picture

I use 7.x-2.x, but ready upgrade to 7.x-3.x if it have the url feature.

akalata’s picture

Version: 7.x-3.x-dev » 7.x-2.x-dev

Setting issue to 2.x then; there may not be a 3.x release (in order to put time towards the D8 version).