|
Home > Archive > Content Selection Framework > June 2006 > campaign Ads
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]
|
|
| jalsuni 2006-06-01, 7:14 pm |
| Hi! I'm working Commerce server 2007 RC for advertisements.
I created ads with images & Top Vignette for display Type, but When I tried
to display on Web pages then all ads images got an blue border outside images.
So when I debug my code, I found out ads returing from CS07 cache got
border=1 inside string collection.
Is this a bug?
Is there any way I can get rid of this image border?
Thanks in advance,
| |
| David Lott [MSFT] 2006-06-02, 1:19 am |
| Hi Jalsuni,
Most display templates have a display property named Border that has a
default property of 1.
Changing this value to 0 should make your borders go away. Unfortunately
this value is not exposed in the Marketing Manager UI, but there are APIs
to access it. Create a MarketingContext (mc) and use
mc.DisplayTemplates.GetDisplayTemplate() to get the display template (dt)
you want to modify. Iterate through dt.Properties until you find the one
named Border, then change it's DefaulValue to 0. Save the DisplayTemplate
to persist your changes to the database. Finally refresh the site caches
and you should be set.
In the future, please post RC questions in the beta newsgroups on the
connect site. They are monitored more closely.
Thanks,
David Lott
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: =?Utf-8?B?amFsc3VuaQ==?= <jalsuni@discussions.microsoft.com>
Subject: campaign Ads
Date: Thu, 1 Jun 2006 14:12:01 -0700
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Hi! I'm working Commerce server 2007 RC for advertisements.
I created ads with images & Top Vignette for display Type, but When I tried
to display on Web pages then all ads images got an blue border outside
images.
So when I debug my code, I found out ads returing from CS07 cache got
border=1 inside string collection.
Is this a bug?
Is there any way I can get rid of this image border?
Thanks in advance,
|
|
|
|
|