|
Home > Archive > Commerce Server General > March 2004 > Images and MSIB CMS Placeholders for CS2002
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 |
Images and MSIB CMS Placeholders for CS2002
|
|
| Tony Jones 2004-03-11, 10:40 pm |
| Has anyone found out a way to take the SRC attribute from a
SingleImagePlaceholder in a CMS/MSIB rich product template and apply it to a
product property (to be saved back to CS2002 catalog)? The MSIB sample
doesn't have an image control sample that is associated with a rich product.
The problem is that the ProductPropertyPlaceholder does not support images.
It is easy to get the product posting and get the image value in a commerce
property and then apply it to an image placeholder or image object - what I
want to do is have a SingleImagePlaceholder that the business user can
modify, and then on saving the product the image property is updated with
whatever value now in the image placeholder.
Any insight would be helpful!
Thanks.
TJ
| |
| Rob Munro 2004-03-18, 1:55 pm |
| Not quite a siiliar problem, but we wished to store an some content from
html placeholder fields with a product using MSIB. We accomplished this by
adding functionality in the CMS_PostingApproved code in the global.asax.cs
file.
In this function, you will have access to both the product being updated and
the posting that is associated, so you could take the image placeholder
properties and at this point store them in CS as whichever property you
would like.
We chose the Approved handler, but you could perform this at any step in the
process.
RM
"Tony Jones" <tonyjo_ms.takeout@hotmail.com> wrote in message
news:eQWe561BEHA.3472@TK2MSFTNGP09.phx.gbl...
> Has anyone found out a way to take the SRC attribute from a
> SingleImagePlaceholder in a CMS/MSIB rich product template and apply it to
a
> product property (to be saved back to CS2002 catalog)? The MSIB sample
> doesn't have an image control sample that is associated with a rich
product.
>
> The problem is that the ProductPropertyPlaceholder does not support
images.
> It is easy to get the product posting and get the image value in a
commerce
> property and then apply it to an image placeholder or image object - what
I
> want to do is have a SingleImagePlaceholder that the business user can
> modify, and then on saving the product the image property is updated with
> whatever value now in the image placeholder.
>
> Any insight would be helpful!
>
> Thanks.
>
> TJ
>
>
| |
| Tony Jones 2004-03-18, 4:37 pm |
| Good insight. What I ended up doing was using simple image placeholders in
the RichProductTemplate and retrieving these placeholders in other areas of
the site.
We added two image placeholders to the rich template (one represented a
thumbnail and was hidden until edit) and allowed resources (local/cms) to
represent the images respectively. If we needed the image data (basket
details, search listings, catalog listings), I wrote a user control that
displayed the CMS stored images given only the product id, catalog, category
and the placeholder the images were bound to in the rich template. The code
in the control would just get a Product Posting (by productid, catalog,
etc.) and look for the image placeholders in the Placeholders collection of
the posting. You have to dig through the posting placeholders collection
to see what value needs to be pulled, but use the debugger to help you look
into the collection(s).
If anyone wants to see it, let me know.
Thanks.
TJ
"Rob Munro" <rob.munro@nospamplease.t4g.com> wrote in message
news:uHmfr$6CEHA.3748@TK2MSFTNGP11.phx.gbl...
> Not quite a siiliar problem, but we wished to store an some content from
> html placeholder fields with a product using MSIB. We accomplished this
by
> adding functionality in the CMS_PostingApproved code in the global.asax.cs
> file.
>
> In this function, you will have access to both the product being updated
and
> the posting that is associated, so you could take the image placeholder
> properties and at this point store them in CS as whichever property you
> would like.
>
> We chose the Approved handler, but you could perform this at any step in
the
> process.
>
> RM
>
> "Tony Jones" <tonyjo_ms.takeout@hotmail.com> wrote in message
> news:eQWe561BEHA.3472@TK2MSFTNGP09.phx.gbl...
to[color=darkred]
> a
> product.
> images.
> commerce
what[color=darkred]
> I
with[color=darkred]
>
>
|
|
|
|
|