London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

PageReference and custom PageProvider

Vote:
 

EPiServer CMS 5 R2 SP2

I thought it would be possible to save a pagereference to a custom pageprovider-page. I have a PropertyPageReference property and point out a custom pageprovider-page but I get a SQL exception. In the edit-gui it is ok, pagereference: "1111__XXXX", but when I save it throws an exception: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_tblWorkProperty_tblPage". The conflict occurred in database "dbName", table "dbo.tblPage", column 'pkID'.

The pagereference is saved as an int in the database, so I cant se that the "RemoteSite" part of the pagereference is saved. So it tries to save my reference as "1111" and that page-id do not exist, except in my pageprovider.

Have I missed something? Should it be possible to use PropertyPageReference to set a link to a custom pageprovider-page?

/Hans

#30807
Jun 23, 2009 8:24
Vote:
 

It is not possible in R2, we are adding this support in the next major release.

 

#30810
Jun 23, 2009 9:47
Vote:
 

Thanks Per

/Hans

#30824
Jun 23, 2009 12:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.