Rank: Member
Joined: 4/20/2009(UTC) Posts: 39
|
Hi
I've created a new policy page called 'Delivery'. I've then created a Delivery.aspx and a Delivery.aspx.vb - basically duplicated the Terms pages and changed the relevant hooks.
All good so far but am the following error.......
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'Delivery' is not a member of 'BVSoftware.Bvc5.Core.WebAppSettings'.
Source Error:
Line 19: Me.TitleLabel.Text = Content.SiteTerms.GetTerm("Delivery") Line 20: Line 21: Dim policy As Content.Policy = Content.Policy.FindByBvin(WebAppSettings.Delivery) Line 22: For Each block As Content.PolicyBlock In policy.Blocks Line 23: deliveryInfo.InnerHtml += block.Description
How do I get 'Delivery' to become a member of 'BVSoftware.Bvc5.Core.WebAppSettings' ????
Thought it would have been easier for customer to add new policy pages.
Any help appreciated
Rich |
Professional Website Design, Development and Promotion. |
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
WebAppSettings.Delivery should be replaced by the actual ID number of your policy. When you click "Edit" on the policy in the admin you'll see ?id=<long id here> in the address bar of the web browser. Use that long ID instead of WebAppSettings.Delivery.
|
|
|
|
Rank: Member
Joined: 4/20/2009(UTC) Posts: 39
|
Thanks Marcus, just tried that and getting the following:
Compiler Error Message: BC30827: 'D' can no longer be used to indicate an exponent, use 'E' instead.
Source Error:
Line 19: Me.TitleLabel.Text = Content.SiteTerms.GetTerm("Delivery") Line 20: Line 21: Dim policy As Content.Policy = Content.Policy.FindByBvin(9390e9d2-a808-4349-b63c-210561fb9b9c) Line 22: For Each block As Content.PolicyBlock In policy.Blocks Line 23: deliveryInfo.InnerHtml += block.Description |
Professional Website Design, Development and Promotion. |
|
|
|
Rank: Member
Joined: 4/20/2009(UTC) Posts: 39
|
Sorted Marcus thanks, used ("9390e9d2-a808-4349-b63c-210561fb9b9c") and all good
Cheers
Rich |
Professional Website Design, Development and Promotion. |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.