I was wondering if it's possible to use the invoice numbers in the url path (with pathauto)?

If you navigate to Site Building > URL Aliases > Automated Alias Settings > Pattern for all invoice paths

Now I have invoice/[title-raw] but i'd like to have invoice/[invoice-number] or something like that. Is that possible?

Comments

juliangb’s picture

Status: Active » Fixed

These are tokens - I have just committed a few bits of token support to the 2.x branch but it is not comprehensive yet.

I suggest that you follow up at #332555: Token support- proof of concept listing the token you want ([invoice-number].

Wolfke2800’s picture

Thanks for the feedback =)

bigjim’s picture

Status: Fixed » Needs review
StatusFileSize
new3.53 KB

Since I was in the neighborhood, here's a patch to add token support for Storm Invoice also.

Wolfke2800 the token you want form this patch is [storminvoice-number]

Status: Needs review » Needs work

The last submitted patch, storm--1018304-3.patch, failed testing.

bigjim’s picture

Version: 6.x-1.35 » 6.x-2.x-dev
Status: Needs work » Needs review
StatusFileSize
new3.56 KB

Made a syntax error, new patch attached

bigjim’s picture

StatusFileSize
new3.56 KB

found aother little bug

juliangb’s picture

Title: Storm invoice number » Token support for Storm Invoice module
Category: support » feature
Status: Needs review » Reviewed & tested by the community

No problems from me.

@Wolfke2800, would you be able to test?

Wolfke2800’s picture

Works like a charm, thanks! :-)

juliangb’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 2.x

Feature so will not be backported to 1.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.