Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > GetDocumentUrl goes to empty page View modes: 
User avatar
Member
Member
dinethnipuna-gmail - 2/10/2014 6:10:11 PM
   
GetDocumentUrl goes to empty page
Hi All,
I have a transformation on a repeater as follows.
<table style="border:1px solid black;">
<tr>
<td><h3><a class="header bold" style="color: Black "><%# Eval("Title", true) %></a></h3>
</td>
</tr>
<tr>
<td width="1500"> <%# Eval("Title") %> xxxxxxxxxxxxxxxxxxx
</td>
</tr>
<tr>
<td width="1500">Description: <%# Eval("DocDescription") %></td>
</tr>
<tr>
<!--<td>Link to PDF: <a href="<%# GetFileUrl("PDF") %>">Download PDF</a></td> -->
<td width="1500">
<a href="<%# Eval("PDF")%>">PDF</a>
</td>
</tr>
<tr>
<td><h3><a class="header bold" style="color: #58ACFA" href="<%# GetDocumentUrl() %>"> click here to add comments</a></h3>
</td>
</tr>
</table>
<br/><br/>

Once the user clicks on the "click here to add comments" (GetDocumentUrl()), it goes to empty page till I change the Document type properties ->Template->"Do not inherit any content ". But the issue is when I set this I can not see the Masterpage themes (header, navigation bar , colors, etc).
Can someone please help me to resolve this, this is bit urgent .

User avatar
Member
Member
kentico_davidb2 - 2/11/2014 5:46:45 AM
   
RE:GetDocumentUrl goes to empty page
How does your content tree look like?
What document type are you referring to?
If you hover over the generated link/view source, what link does it display?
What is the link of the repeated document?
What is the link of the document which has this repeater placed on it?

When mentioning the "Do not inherit any content", where are you changing it? For the document with the repeater or for any of the repeated documents?

User avatar
Member
Member
dinethnipuna-gmail - 2/11/2014 5:38:13 PM
   
RE:GetDocumentUrl goes to empty page
1. My tree looks like this
Main page
custom page type- this got repeater and a message board under ZoneA. Repeater transformation got above mention code for selection item transformation and transformations. Document type referencing to my custom document type bellow. Path is ./%
custom document type - this got all the filed I have mentioned on my code above and default transformation got above code.

2.custom document type mentioned above.
3.its references to my document.aspx.
4.It s linked to the Document type I have created as I mentioned in my first point.

5.It s linked to the Document type I have created as I mentioned in my first point.

6.I have attached a screen shot show where I have done the "Do not inherit any content.

7on my document->under properties->Template then Inherit content area.

User avatar
Member
Member
dinethnipuna-gmail - 2/11/2014 8:57:53 PM
   
RE:GetDocumentUrl goes to empty page
Thanks all. I have resolved the issue.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/12/2014 6:17:46 AM
   
RE:GetDocumentUrl goes to empty page
Please share as it could help others.