Rank: Member
Joined: 1/8/2007(UTC) Posts: 79
|
I've been trying to create a custom policy, in this case it's the Guarantee Policy. By checking other default policies i've thought than if i'd just change the default policy name (for example: Termsandconditions) every time it appears in the page, that would be enough to call the Guarantee text from the Content > Policies from the BVAdmin.
But that returns me this error:
[color=#ffffcc>
[tr ][td ][/tr][tr ]<TD><CODE> [color=red>Line][/color]Line 23: For Each block As Content.PolicyBlock In policy.Blocks </PRE>[/code][/td][/tr]</TABLE></FONT>
Any idea of how can I solve this problemm? or how can I declare ir in the Core? or anything at all?
Thanks everybody.
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
You'll need to use the actual ID number of your policy instead of "webappsettings.GuaranteePolicy" The "WebAppSettings.xxxxxPolicy" is a shortcut we included so we didn't have to type our the GUID value for the builtin policies. In your case it's a new policy so there is know web app setting for it. You could also call the policy by name instead of bvin: Code: Dim policy as Content.Policy = Content.Policy.FindByName("Guarantee")
|
|
|
|
Rank: Member
Joined: 1/8/2007(UTC) Posts: 79
|
THANKS THANKS THANK
AND
T H A N K S ! ! !
|
|
|
|
Rank: Member
Joined: 1/8/2007(UTC) Posts: 79
|
'FindByName' is not a member of 'BVSoftware.Bvc5.Core.Content.Policy'
:sad:
Last one (I promise its de last one): How I get the policy id?
Anyway: THANKS!
|
|
|
|
Rank: Member
Joined: 1/8/2007(UTC) Posts: 79
|
I've solved it. I just needed to sleep a little and I understood that I should check out the database.
Thanks again. :smilewinkgrin:
p.s: Now I will post another question, so don't be so happy
|
|
|
|
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.