Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
I have a problem , i did it on D6 but here with D7 I cant
I have the last release of token & custom breadcrumbs , and cant realize nodereference token in custom breadcrumbs config page
maybe anybody can help me :)
Comments
Comment #1
jcarlson34 CreditAttribution: jcarlson34 commentedUpdate: this is wrong.
I think you are seeing something similar to the issue I just posted. Check out: #1021716: Placeholder Tokens IssueThe jist: the placeholder tokens seem to be drupal 6 tokens, not drupal 7 tokens. If you are using those, it may not be working. Try finding your breadcrumb token for the nodereference using another module that lists drupal 7 tokens (like auto nodetitles).Let me know if that helps.Comment #2
AbdullahR CreditAttribution: AbdullahR commentedNo luck , installed the module but there is no new token for nodereference :(
Comment #3
jcarlson34 CreditAttribution: jcarlson34 commentedShoot my bad. You currently have to patch your Token module with #691078: Field tokens to see field tokens in Drupal 7. Add that patch and you should see the nodereference.
Comment #4
jcarlson34 CreditAttribution: jcarlson34 commentedOh and after you apply the patch, make sure to clear your site's cache. That way you'll be able to view the new token fields.
Comment #5
jcarlson34 CreditAttribution: jcarlson34 commentedJust updating this again. I was wrong about posting #1. The tokens do appear correctly in custom breadmarks.
AbdullahR, once you patch tokens with #691078: Field tokens, you should see the fields appear in the placeholder section of custom breadmarks under the "Node" section.
Sorry for any confusion this may have caused.
Comment #6
parraccourci CreditAttribution: parraccourci commentedFields do indeed appear after applying this patch but not the node-reference ones!
Comment #7
jcarlson34 CreditAttribution: jcarlson34 commentedAh that's too bad node references aren't in there yet. According to #66 of #691078: Field tokens, only text and term reference fields are currently available but references will eventually be supported when the patch is done.
I hope that that patch gets fixed soon. I need it for some things too.
Since it turns out this is a token issue rather than a custom breadcrumbs issue, I am going to close this thread as fixed.
Comment #8
AbdullahR CreditAttribution: AbdullahR commentedthanks for your support all ;)
Comment #9
jcarlson34 CreditAttribution: jcarlson34 commentedWell it wasn't the best support that's for sure. First I sent ya down the wrong path and then, second, node references weren't even available yet. :(
Guess we got it eventually but I'll try to be better next time. Thanks for being a good sport and best of luck with your projects!
Comment #11
Ludo.RDo the node reference tokens still not work?
I'd like to use the node reference's title and path.
Is there a token available for path? I just see one token.
E.g. : [node:original:field_category]
Thank you!
Comment #12
Ludo.ROh, I just found out this one : [node:field_product_category].
It gives me the title of the node.
But how to get the URL to this node, or at least the node id?
Comment #13
wnstck CreditAttribution: wnstck commentedInstall the Entity API module along with Entity Tokens (comes with Entity). This will allow you to deep-dive into the node reference tokens and access properties such as URL and NID.
Comment #14
lamp5Closing this because is outdated. Only 7.2 branch and greater are supported.