Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How to make a PrintLink for text-pages View modes: 
User avatar
Member
Member
Alex - 2/2/2010 5:10:41 AM
   
How to make a PrintLink for text-pages
Hello!

Is it possible to make PrinLink on text-pages?
In your samples I can find only for news, articles and products but I need to do it for text-pages too

I choose CMS.Menuitem as a document.type
And in ContentRepeater choose same CMS.Menuitem
But Print page only show me logo without text
What I`am doing wrong?

Also I want to send-to-frend mail with pagetext and have same problem
Could you advise how to resolve my problems with standart cases without custom programming?

User avatar
Member
Member
kentico_pavelk - 2/2/2010 7:51:42 AM
   
RE:How to make a PrintLink for text-pages
Hello,

It seems that you use incorrect transformation. Could you please see following link to our Developer's guide where you can find description how to write transformations.
http://devnet.kentico.com/docs/devguide/index.html?writing_transformations.htm


Best regards,
Pavel Knotek

User avatar
Member
Member
Alex - 2/2/2010 8:11:34 AM
   
RE:How to make a PrintLink for text-pages
I know how to write transformations.
But I couldn`t find variables for page content

Example for News
<div class="newsItemDetail">
<h1><%# Eval("NewsTitle") %></h1>
<div class="NewsSummary">
<%# IfEmpty(Eval("NewsTeaser"), "", GetImage("NewsTeaser")) %>
<div class="NewsContent">
<div class="Date"><%# GetDateTime("NewsReleaseDate", "d") %></div>
<%# Eval("NewsSummary") %>
</div>
<div class="Clearer"> </div>
</div>
<div class="NewsBody">
<%# Eval("NewsText") %>
</div>
</div>


But if I choose webpart "editable text" on page, how can I see it on print page?
Could you write sample transformation for it?

User avatar
Member
Member
kentico_pavelk - 2/10/2010 8:57:37 AM
   
RE:How to make a PrintLink for text-pages
Hello,

Please try this transformation function:
<%# EditableItems["mainText"] %>


This function will display content of the Editable region called mainText.


Best regards,
Pavel Knotek