|
Home > Archive > Content Selection Framework > February 2005 > how to assign a page group to each category page
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 to assign a page group to each category page
|
|
| pinayako 2005-01-25, 8:47 pm |
| We would like to have a different banner for each category. Ie. banner for
cellphones, banner for laptops etc. Currently, we have one page group, the
"home", which points to the main page. What we want to do is add a campain
and assign in to a page group which points to just one category. ie.
cellbanner is assigned to page group "cellphones". so when the user is in the
cellphone category page, he will see not just the subcategories but also the
cellbanner. And there is also a laptop banner assigned to page group
"laptops". so when the user goes to the laptop category page, he will see the
laptop banner.
the category page is displayed through category.asp.
| |
| David Messner [MSFT] 2005-01-26, 5:54 pm |
| That's certainly possible, just set the PageGroup property on the
ContentSelectorObject to the name of the category. This should just work.
Let me know if I'm missing something in your question...
regards
-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2005 Microsoft Corporation. All rights
reserved.
--------------------
Thread-Topic: how to assign a page group to each category page
thread-index: AcUDT+19zU1oD1gBROKP+02Wkw0tlQ==
X-WBNR-Posting-Host: 63.194.23.215
From: "=?Utf-8?B?cGluYXlha28=?=" <pinayako@discussions.microsoft.com>
Subject: how to assign a page group to each category page
Date: Tue, 25 Jan 2005 18:37:07 -0800
Lines: 11
Message-ID: <39646368-08AA-429A-95F5-3F6C640236CF@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.campaigns_csf
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.commerceserver.campaigns_csf:3023
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
We would like to have a different banner for each category. Ie. banner for
cellphones, banner for laptops etc. Currently, we have one page group, the
"home", which points to the main page. What we want to do is add a campain
and assign in to a page group which points to just one category. ie.
cellbanner is assigned to page group "cellphones". so when the user is in
the
cellphone category page, he will see not just the subcategories but also
the
cellbanner. And there is also a laptop banner assigned to page group
"laptops". so when the user goes to the laptop category page, he will see
the
laptop banner.
the category page is displayed through category.asp.
| |
| pinayako 2005-02-02, 5:49 pm |
| thanks david!
i did what you said but its not going through. in our live site it goes
directly to the page saying "we apologize for the inconvenience. page cant be
displayed ....)
maybe i did not understand you right. heres what i did.
i modified the category.asp and insterted the line <# INCLUDE FILE=
banner.inc -->
after doing so, when i load the page, it will show our banner that was set
to "all page groups" as a target group. Now what i want to do next is just
display the campaign/banner which belongs to "CELLPHONE" page group. so what
i did is i added the line " ocso.PageGroup="CELLPHONE" before the getcontent
in banner.inc.
after doing so, the page cant be displayed was shown.
*i have the cellphone page group created in business desk.
"David Messner [MSFT]" wrote:
> That's certainly possible, just set the PageGroup property on the
> ContentSelectorObject to the name of the category. This should just work.
>
> Let me know if I'm missing something in your question...
>
> regards
> -djm
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2005 Microsoft Corporation. All rights
> reserved.
>
> --------------------
> Thread-Topic: how to assign a page group to each category page
> thread-index: AcUDT+19zU1oD1gBROKP+02Wkw0tlQ==
> X-WBNR-Posting-Host: 63.194.23.215
> From: "=?Utf-8?B?cGluYXlha28=?=" <pinayako@discussions.microsoft.com>
> Subject: how to assign a page group to each category page
> Date: Tue, 25 Jan 2005 18:37:07 -0800
> Lines: 11
> Message-ID: <39646368-08AA-429A-95F5-3F6C640236CF@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl
> microsoft.public.commerceserver.campaigns_csf:3023
> X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
>
> We would like to have a different banner for each category. Ie. banner for
> cellphones, banner for laptops etc. Currently, we have one page group, the
> "home", which points to the main page. What we want to do is add a campain
> and assign in to a page group which points to just one category. ie.
> cellbanner is assigned to page group "cellphones". so when the user is in
> the
> cellphone category page, he will see not just the subcategories but also
> the
> cellbanner. And there is also a laptop banner assigned to page group
> "laptops". so when the user goes to the laptop category page, he will see
> the
> laptop banner.
>
> the category page is displayed through category.asp
| |
| David Messner [MSFT] 2005-02-03, 8:47 pm |
| To diagnose the error you need to put the site into debug mode. Do that by
modifying the global.asa file and change PRODUCTION to DEVELOPMENT.
Then you will see the actual error.
-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2005 Microsoft Corporation. All rights
reserved.
--------------------
Thread-Topic: how to assign a page group to each category page
thread-index: AcUJdF0J/H0DJ/7mQcC+CC705ofmTQ==
X-WBNR-Posting-Host: 63.194.23.215
From: "=?Utf-8?B?cGluYXlha28=?=" <pinayako@discussions.microsoft.com>
References: <39646368-08AA-429A-95F5-3F6C640236CF@microsoft.com>
<AiRII18AFHA.2660@cpmsftngxa10.phx.gbl>
Subject: RE: how to assign a page group to each category page
Date: Wed, 2 Feb 2005 14:13:03 -0800
Lines: 75
Message-ID: <A7883052-1597-4C3A-8182-C22BE78D30C9@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.campaigns_csf
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.commerceserver.campaigns_csf:3052
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
thanks david!
i did what you said but its not going through. in our live site it goes
directly to the page saying "we apologize for the inconvenience. page cant
be
displayed ....)
maybe i did not understand you right. heres what i did.
i modified the category.asp and insterted the line <# INCLUDE FILE=
banner.inc -->
after doing so, when i load the page, it will show our banner that was set
to "all page groups" as a target group. Now what i want to do next is just
display the campaign/banner which belongs to "CELLPHONE" page group. so
what
i did is i added the line " ocso.PageGroup="CELLPHONE" before the
getcontent
in banner.inc.
after doing so, the page cant be displayed was shown.
*i have the cellphone page group created in business desk.
"David Messner [MSFT]" wrote:
> That's certainly possible, just set the PageGroup property on the
> ContentSelectorObject to the name of the category. This should just work.
>
> Let me know if I'm missing something in your question...
>
> regards
> -djm
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2005 Microsoft Corporation. All
rights
> reserved.
>
> --------------------
> Thread-Topic: how to assign a page group to each category page
> thread-index: AcUDT+19zU1oD1gBROKP+02Wkw0tlQ==
> X-WBNR-Posting-Host: 63.194.23.215
> From: "=?Utf-8?B?cGluYXlha28=?=" <pinayako@discussions.microsoft.com>
> Subject: how to assign a page group to each category page
> Date: Tue, 25 Jan 2005 18:37:07 -0800
> Lines: 11
> Message-ID: <39646368-08AA-429A-95F5-3F6C640236CF@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl
> microsoft.public.commerceserver.campaigns_csf:3023
> X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
>
> We would like to have a different banner for each category. Ie. banner
for
> cellphones, banner for laptops etc. Currently, we have one page group,
the
> "home", which points to the main page. What we want to do is add a
campain
> and assign in to a page group which points to just one category. ie.
> cellbanner is assigned to page group "cellphones". so when the user is in
> the
> cellphone category page, he will see not just the subcategories but also
> the
> cellbanner. And there is also a laptop banner assigned to page group
> "laptops". so when the user goes to the laptop category page, he will see
> the
> laptop banner.
>
> the category page is displayed through category.asp
| |
| pinayako 2005-02-04, 2:47 am |
| Sorry for the hassle but im really kindda stock here. Below is the error:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'PageGroupId'
/Shop/template/bannerrc.inc, line 35
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Page:
GET /Shop/Category.asp
Below are the codes in Bannerrc.inc
Dim oCSO, Ads, Ad, oUserProfile
If IsEntityInSet(sThisPage, MSCSPageSets.AdvertisementPageSet) Then
Set oCSO = Server.CreateObject("Commerce.ContentSelector")
'oCSO.Size = "Banner"
oCSO.Border = 1
oCSO.TargetFrame = "_top"
oCSO.NumRequested = 1
Set oUserProfile = GetCurrentUserProfile()
If Not oUserProfile Is Nothing Then
Set oCSO.UserProfile = oUserProfile
End If
set oCSO.PageGroupId= "HOME"
Set Ads = oCSO.GetContent( Application("CSFAdvertisingContext") )
For Each Ad In Ads
Response.Write(Ad)
Next
End If
(temporarily, i entered "HOME", we have this page group in our business
desk. but later on i would liketo set oCSO.PageGroupId=category_name. what
would be the right syntax so as not to get the error in the abovementioned
and at the same time get the pagegroup=category_name.)
thank you so much.
"David Messner [MSFT]" wrote:
[vbcol=seagreen]
> To diagnose the error you need to put the site into debug mode. Do that by
> modifying the global.asa file and change PRODUCTION to DEVELOPMENT.
>
> Then you will see the actual error.
>
> -djm
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2005 Microsoft Corporation. All rights
> reserved.
>
> --------------------
> Thread-Topic: how to assign a page group to each category page
> thread-index: AcUJdF0J/H0DJ/7mQcC+CC705ofmTQ==
> X-WBNR-Posting-Host: 63.194.23.215
> From: "=?Utf-8?B?cGluYXlha28=?=" <pinayako@discussions.microsoft.com>
> References: <39646368-08AA-429A-95F5-3F6C640236CF@microsoft.com>
> <AiRII18AFHA.2660@cpmsftngxa10.phx.gbl>
> Subject: RE: how to assign a page group to each category page
> Date: Wed, 2 Feb 2005 14:13:03 -0800
> Lines: 75
> Message-ID: <A7883052-1597-4C3A-8182-C22BE78D30C9@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 8bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl
> microsoft.public.commerceserver.campaigns_csf:3052
> X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
>
> thanks david!
> i did what you said but its not going through. in our live site it goes
> directly to the page saying "we apologize for the inconvenience. page cant
> be
> displayed ....)
>
> maybe i did not understand you right. heres what i did.
>
> i modified the category.asp and insterted the line <# INCLUDE FILE=
> banner.inc -->
>
> after doing so, when i load the page, it will show our banner that was set
> to "all page groups" as a target group. Now what i want to do next is just
> display the campaign/banner which belongs to "CELLPHONE" page group. so
> what
> i did is i added the line " ocso.PageGroup="CELLPHONE" before the
> getcontent
> in banner.inc.
>
> after doing so, the page cant be displayed was shown.
>
> *i have the cellphone page group created in business desk.
>
>
>
> "David Messner [MSFT]" wrote:
>
> rights.
> rights
> for
> the
> campain
| |
| David Messner [MSFT] 2005-02-07, 8:46 pm |
| If you plan to continue to use the banner.inc include file as you are here,
my suggestion would be to define a variable to contain the page group
value. Do this on each page that includes the banner.inc file and set the
variable before you do the include.
One problem you have is this line:
set oCSO.PageGroupId= "HOME"
It should be:
oCSO.PageGroup= "HOME"
Do not use the 'set' keyword in VBScript unless you are setting a variable
to an object reference, and you got the property name wrong.
cheers
-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2005 Microsoft Corporation. All rights
reserved.
--------------------
Thread-Topic: how to assign a page group to each category page
thread-index: AcUKkVjQqitWiSC8RLCubnttl3/d2A==
X-WBNR-Posting-Host: 69.229.0.55
From: "=?Utf-8?B?cGluYXlha28=?=" <pinayako@discussions.microsoft.com>
References: <39646368-08AA-429A-95F5-3F6C640236CF@microsoft.com>
<AiRII18AFHA.2660@cpmsftngxa10.phx.gbl>
<A7883052-1597-4C3A-8182-C22BE78D30C9@microsoft.com>
<dlhZv6lCFHA.644@cpmsftngxa10.phx.gbl>
Subject: RE: how to assign a page group to each category page
Date: Fri, 4 Feb 2005 00:13:02 -0800
Lines: 168
Message-ID: <8D1F9CC6-7E9E-4881-8EA0-271D65222C6B@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.campaigns_csf
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA
03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.commerceserver.campaigns_csf:3059
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
Sorry for the hassle but im really kindda stock here. Below is the error:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'PageGroupId'
/Shop/template/bannerrc.inc, line 35
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Page:
GET /Shop/Category.asp
Below are the codes in Bannerrc.inc
Dim oCSO, Ads, Ad, oUserProfile
If IsEntityInSet(sThisPage, MSCSPageSets.AdvertisementPageSet) Then
Set oCSO = Server.CreateObject("Commerce.ContentSelector")
'oCSO.Size = "Banner"
oCSO.Border = 1
oCSO.TargetFrame = "_top"
oCSO.NumRequested = 1
Set oUserProfile = GetCurrentUserProfile()
If Not oUserProfile Is Nothing Then
Set oCSO.UserProfile = oUserProfile
End If
set oCSO.PageGroupId= "HOME"
Set Ads = oCSO.GetContent( Application("CSFAdvertisingContext") )
For Each Ad In Ads
Response.Write(Ad)
Next
End If
(temporarily, i entered "HOME", we have this page group in our business
desk. but later on i would liketo set oCSO.PageGroupId=category_name. what
would be the right syntax so as not to get the error in the abovementioned
and at the same time get the pagegroup=category_name.)
thank you so much.
"David Messner [MSFT]" wrote:
> To diagnose the error you need to put the site into debug mode. Do that
by
> modifying the global.asa file and change PRODUCTION to DEVELOPMENT.
>
> Then you will see the actual error.
>
> -djm
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2005 Microsoft Corporation. All
rights
> reserved.
>
> --------------------
> Thread-Topic: how to assign a page group to each category page
> thread-index: AcUJdF0J/H0DJ/7mQcC+CC705ofmTQ==
> X-WBNR-Posting-Host: 63.194.23.215
> From: "=?Utf-8?B?cGluYXlha28=?=" <pinayako@discussions.microsoft.com>
> References: <39646368-08AA-429A-95F5-3F6C640236CF@microsoft.com>
> <AiRII18AFHA.2660@cpmsftngxa10.phx.gbl>
> Subject: RE: how to assign a page group to each category page
> Date: Wed, 2 Feb 2005 14:13:03 -0800
> Lines: 75
> Message-ID: <A7883052-1597-4C3A-8182-C22BE78D30C9@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 8bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl
> microsoft.public.commerceserver.campaigns_csf:3052
> X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
>
> thanks david!
> i did what you said but its not going through. in our live site it goes
> directly to the page saying "we apologize for the inconvenience. page
cant
> be
> displayed ....)
>
> maybe i did not understand you right. heres what i did.
>
> i modified the category.asp and insterted the line <# INCLUDE FILE=
> banner.inc -->
>
> after doing so, when i load the page, it will show our banner that was
set
> to "all page groups" as a target group. Now what i want to do next is
just[vbcol=seagreen]
> display the campaign/banner which belongs to "CELLPHONE" page group. so
> what
> i did is i added the line " ocso.PageGroup="CELLPHONE" before the
> getcontent
> in banner.inc.
>
> after doing so, the page cant be displayed was shown.
>
> *i have the cellphone page group created in business desk.
>
>
>
> "David Messner [MSFT]" wrote:
>
work.[vbcol=seagreen]
> rights.
> rights
> for
> the
> campain
in[vbcol=seagreen]
also[vbcol=seagreen]
see[vbcol=seagreen]
|
|
|
|
|