You are here:   Support > User Forum
Register   |  Login

Invenmanager User Forum

Minimize
File - Custom Property
Last Post 05 Feb 2010 02:57 AM by Inven Manager. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Andrew Cree
New Member
New Member
Posts:3

--
03 Feb 2010 08:23 AM  
Please help! We are using DNN 5.2.1. Advanced Articles 4.2.9 and Custom Properties 1.1.3

I have add a File Custom Property called "FileTest". It's Token Name is CUSTOMFILETEST. I have modified the template to display a link using: <a href="[CUSTOMFILETEST]">[CUSTOMFILETEST]</a>

When I view the page the link is getting written as a local file system path on the server, like: C:\DotNetNuke\Portals\0\custom\488\test.txt

Can you tell me where or what I have done wrong?
Inven Manager
Senior Member
Senior Member
Posts:6761
Avatar

--
03 Feb 2010 12:56 PM  
Andrew,

The token will render a relative path to the file such as this:
/portals/0/custom/465/7_17_1_logo.gif

You try to just put [CUSTOMFILETEST] in your list view, and see what you get?
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Andrew Cree
New Member
New Member
Posts:3

--
03 Feb 2010 11:26 PM  
Thank you for your response. A relative path is what I expected, but not what I get.

My Custom Property has the following attributes:
Category: 1
Property Name: FileTest
Token Name: [CUSTOMFILETEST]
Display Name: FileTest
Data Type: File
Length: 0
Required: True
View Order: 0

My Item Template has the following:
<TR>
<TD>
<div>[EDIT]<b>[TITLE]</b></div>
<a href="[CUSTOMFILETEST]">[CUSTOMFILETEST]</a>
</TD>
</TR>

When I add an "Article" this is what I get as source code on the page:
<tr>
<td>
<div><a href="http://webmaster/purchasing/Home/Bids/tabid/115/ctl/Edit/mid/488/itemid/1/Default.aspx"><img src="http://www.invenmanager.com/Purchasing/images/edit.gif" border="0"></a><b>Test 1</b></div>
<a href="c:%5Cdotnet%5Cdnn%5Cportals%5Cpurchasing%5Ccustom%5C488%5C1_1_1_readme%20first.txt">c:\dotnet\dnn\portals\purchasing\custom\488\1_1_1_readme first.txt</a>
</td>
</tr>

Please help! I am very pleased with Advanced Articles and have used it for many different types of content with different display options but getting the File Custom Property is mission critical to a very time sensitive project.
Inven Manager
Senior Member
Senior Member
Posts:6761
Avatar

--
04 Feb 2010 03:21 AM  
Andrew,

when we tested on many occasions it always return the relative path. Can you provide host account to your website to support @ invenmanager.com?
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Andrew Cree
New Member
New Member
Posts:3

--
05 Feb 2010 12:21 AM  
Thank you so much for your quick response and excellent customer service!!! Your fix has kept my project ahead of schedule and my client is very happy!!!
Inven Manager
Senior Member
Senior Member
Posts:6761
Avatar

--
05 Feb 2010 02:57 AM  
Great! Thank you.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
You are not authorized to post a reply.

Active Forums 4.1