Commerce Server General - Creating a Printer Friendly version of an MSIB rich product page

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > May 2004 > Creating a Printer Friendly version of an MSIB rich product 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 Creating a Printer Friendly version of an MSIB rich product page
Matthew

2004-05-20, 5:42 pm

Has anyone been able to create a printer friendly version of an MSIB
rich product page?

I've been attempting to create a printer friendly page by following an
example found at Luke Nyswonger's site at
http://blogs.msdn.com/luke/articles/94644.aspx

The code makes sense and pulls RawContent out of the posting
(placeHolder.Datasource.RawContent.ToString) for the two straight CMS
placeholder definitions I am using (SingleImagePlaceholders).
However, I am unable to access the ContentConnector's ebizcontent
ProductPropertyPlaceHolderControl using this technique.

Has anyone been able to pull info from an ebizcontent placeholder or
create a printer friendly rich product page some other way for an MSIB
site?

Thanks!
Tommy O

2004-05-20, 5:42 pm

One general technique not specific to MSIB or CMS I've found useful is to
have the templates control how to display a printer-friendly version of the
pages.

On the template, I just add a link to the same page with a querystring
parameter for example ?print=true.
Then, in the html code of the template, I just "hide" areas I don't want to
display on the printer friendly version (navigation, certain placeholders
etc) like this:

<% if(Request.QueryString["print"] != true) { %>
content to display only on regular page version
<% } %>

Or:

<% if(Request.QueryString["print"] == true) { %>
content to display only on printerfriendly page version
<% } %>

Tommy

"Matthew" <clemmonsm@yahoo.com> wrote in message
news:a0cb7688.0405200709.7ffd352e@posting.google.com...
> Has anyone been able to create a printer friendly version of an MSIB
> rich product page?
>
> I've been attempting to create a printer friendly page by following an
> example found at Luke Nyswonger's site at
> http://blogs.msdn.com/luke/articles/94644.aspx
>
> The code makes sense and pulls RawContent out of the posting
> (placeHolder.Datasource.RawContent.ToString) for the two straight CMS
> placeholder definitions I am using (SingleImagePlaceholders).
> However, I am unable to access the ContentConnector's ebizcontent
> ProductPropertyPlaceHolderControl using this technique.
>
> Has anyone been able to pull info from an ebizcontent placeholder or
> create a printer friendly rich product page some other way for an MSIB
> site?
>
> Thanks!



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com