We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

URI Segment Reference Not Working After Safecracker Insert

Development and Programming

PixelJunction's avatar
PixelJunction
16 posts
13 years ago
PixelJunction's avatar PixelJunction

Good Afternoon,

I currently have a website that I’m leveraging the segment URIs to tie submissions entries to another channel.

Entrance to the page is pretty cut and dry:

/registration/create_registration/6939

I’m leveraging {segment_3} to pull identify the race being tied to. I’m then using the entries loop passing in {segment_3} as the id:

{exp:channel:entries channel="race" entry_id="{segment_3}" }

This works fine on initial load of the page. I have a Safecracker form that submits to itself (numerous sign ups can be linked with this).

{exp:safecracker channel="registration" return="registration/create_registration/{segment_3}/ENTRY_ID"}

When the page returns, I can see that {segment_3} is understood as it can be assigned to a PHP variable. But the initial channel entries call is now not working and the page displays as blank once it gets to that point.

I’d assumed that {segment_3} could always be accessed by this, is there something I’m missing?

Thanks, Matt

       
Bhashkar Yadav's avatar
Bhashkar Yadav
727 posts
13 years ago
Bhashkar Yadav's avatar Bhashkar Yadav

Hi Matt,

I think, there shouldn’t be any issue with the segments so you need to check the channel tags properly. Could you try by using dynamic=”no” and entry_id=”{segment_3}” parameters within channel entry tag.

I hope, it would help you.

Best Regards,

       
justinbellaa03's avatar
justinbellaa03
1 posts
13 years ago
justinbellaa03's avatar justinbellaa03

Hello, I have visited this Development and Programming forum.it is very beneficial for me and it gives me lots of information that will be very useful to me in the future.I have read this question but i am note able to give your answer right now,sorry for that.So i am giving you this expert link for your queries.

thanks.

ATI RADEON HD 5670 – SERIES GRAPHICS CARDS FROM AMD

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.