Download & Extend

URL argument placeholder token

Project:Custom breadcrumbs
Version:6.x-2.x-dev
Component:custom_breadcrumbs_paths
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

for my site i've got a URL formed like this:

/node/97/?nid=12
node 97 is a webform and nid 12 is the refering page. I needed that value in my webform, since the form needs to 'know' what the refering node was. I use the webform so that registered users can apply for job openings on the site, and in this case node 12 is a job opening. A user can click on "apply now!" and he'll get redirected to the webform, and because of the url variable, the webform knows to what job opening the user is applying

But now I want to create a custom breadcrumb like this:

Home > Your Career > Job Openings > The refering node (12) > Apply (links to 97)

Is there any way to get the '12' out of the URL, and into my breadcrumbs? Hope all is clear.

Comments

#1

Status:active» closed (won't fix)

Not through any token that I am aware of, but it would not be hard to develop a token to do this. And then once developed, that token could be used in custom breadcrumbs.

Have you tried searching the token issue queue for similar feature requests?

I think this is really a feature request for token, not custom breadcrumbs. Custom breadcrumbs uses tokens created by other modules, but doesn't define any. I am marking this as "won't fix" because I don't think this custom breadcrumbs is the right place to do this.

#2

I just submitted a patch that would implement this in the tokenSTARTER module. If you use the patch in #550164: Query string tokens and #273893: Argument tokens using arg() I think you'll be able to get the breadcrumb you are looking for.