Content Selection Framework - How do I make the content selection framework aware of a property that has been added

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > February 2004 > How do I make the content selection framework aware of a property that has been added





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do I make the content selection framework aware of a property that has been added
jb_in_marietta@yahoo.com

2004-02-07, 9:38 am

I am using Commerce Server 2002.
I have added a boolean property called "SubscribesToHSI" to the
Targeting Context profile. I have created a targeting
expression referencing this property, and I am using this expression
in an ad campaign.

Let's say that my application has ascertained that the value of
"SubscribesToHSI" is True. How do I make the
"Commerce.ContentSelector" object
aware of this value before I invoke its GetContent method?

Can someone please give me an actual code sample in classic ASP
(VBScript) demonstrating how to do this.
I have been through the newsgroups with a fine tooth comb, and I have
yet to find a concrete example.

Thanks in advance!

--Jonathan


Following is an example of the code I am using to retrieve the
content:

public function CoreGetAdContent()
Dim CSO, Ads

'Create a ContentSelector object.
Set CSO = Server.CreateObject("Commerce.ContentSelector")

CSO.NumRequested = 1
CSO.PageGroup = "Browse"

'---------------------------------------------------------------------
' PRESUMABLY I WILL BE SETTING A PROPERTY OF THE CSO OBJECT AT
THIS
' POINT TO INDICATE THAT "SubscribesToHSI" = True.
' UNFORTUNATELY, I HAVE BEEN UNABLE TO FIND AN EXAMPLE OF HOW
' TO DO THIS
'---------------------------------------------------------------------


'Use the GetContent method to get some content. Use the dictionary
'previously created in the Global.asa file and referenced through
the
'Application collection.

Set Ads = CSO.GetContent(Application("CSFAdsContext"))

'Ads is a SimpleList containing the selected content.
'Write the content to the page, if any.

Set CoreGetAdContent = Ads
end function
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com