Ventrian Product Forums

We've moved our Product Forums!
To better assist our customers, we've moved to an integrated knowledge base and ticketing system. You can access the new forums at http://support.ventrian.com.
Subject: Image and Links
Prev Next
You are not authorized to post a reply.

Author Messages
ParisUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:27

7/21/2011 5:55 AM  

Dear all,

I am a newbie with the PA module and I am trying to create an Employee listing i.e. the listing will be like this http://www.bluebellsolutions.com/kyrlaw_employees_list.jpg and when you click on the View profile link it should display this http://www.bluebellsolutions.com/kyrlaw_employees_list.jpg

I manage to set up the template and functionality as I need but I have the following issues that I need to resolve:

1. I have created the Employee Image field which I call from the layout as [CUSTOM:Employee Image]. But on the front end, instead of displaying the image, it displayes the name of the image as a link and if you click it takes you to the page displaying the image

2. I have the field called EMAIL where I inputted the email address of each employee. I want here instead of displaying the email address to display the default text "Email this person" which links to the email address i.e. when a user clicks on it to open up his email client with the email address.

3. This is the same as no. 2 above but relates to the vCard field I created (which is a file upload format). In the details page, I want to display the default text "Download vCard" which should link to the vCard which I have uploaded.

Thanks

Paris

Super User AccountUser is Offline
Ventrian Wiz
Ventrian Wiz
Posts:131

7/21/2011 5:58 AM  

For item 2 and 3, you can form your own tag by using an anchor tag {a href="[CUSTOM:Email]"}email this person{/a}

(replace {} with angle brackets)

ParisUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:27

7/21/2011 6:58 AM  
Thanks for the help. Issue fixed. Anyone knows about issue point 1??
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21233


7/21/2011 7:10 AM  
Try a similar step to 2 and 3, but change the call to the custom field to be [CUSTOM:Employee ImageLink]

Let me know if that doesn't work

Scott McCulloch
Site Administrator
LoukasUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:228

7/21/2011 3:04 PM  
1) if you want the URL of a field then you add "link" at the end. As Scott said [CUSTOM:Employee Imagelink] so then you can reference it like:

{img src="[CUSTOM:Employee Imagelink]" width="XXpx" alt="[CUSTOM:Employee Name], [CUSTOM:Employee Surnname" /}

2) almost same technique

{a href="mailto:[CUSTOM:email]"}email this employee{/a}

Visit our website to see what can we do for you!
ParisUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:27

7/22/2011 12:01 AM  
Guys, thanks. The code {img src="[CUSTOM:Employee Imagelink]" width="XXpx" alt="[CUSTOM:Employee Name], [CUSTOM:Employee Surnname" /} worked fine!!

The only task pending, which I have not figured it out yet, is how do I place the captions on the listing - see http://www.bluebellsolutions.com/kyrlaw_employees_list.jpg - I want to display the name of the columns on top i.e. "NAME", "DEPARTMENT", "PROFILE" etc

I placed the CAPTION in the header of the Listing Layout and the captions were not displayed. I then placed the Captions in the Item of the Listing layout and the captions are displayed for every record I add, so there is duplication of the captions.

Any ideas?

Thanks
Paris
ParisUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:27

7/22/2011 12:35 AM  
Also, where do I go to change the format of the font for the breadcrumbs? Is this done via the module or via the DNN's skin CSS files?

Thanks
LoukasUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:228

7/22/2011 2:40 AM  
The [CAPTION:xxx] token is not available for the header item.

In order for you to have the captions displayed as titles you must insert that token into the view template. Use [ISFIRST] TABLE HEADER HTML GOES HERE ALONG WITH FIRST RECORD [/ISFIRST] to avoid duplication.

With regards to the breadcrumb styling, you should check what class is used and then change it from your skin file. To check the class the easiest way is using firebug for mozilla FF or chrome.

Hope it helps,

/Loukas

Visit our website to see what can we do for you!
ParisUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:27

7/23/2011 12:10 AM  
Hi Loukas,

Thanks for the response. I tried this but the Captions are repeated with every record. I have included this code in the Listing Layout as follows:

What am I doing wrong?


[ISFIRST]





[/ISFIRST]












[CAPTION:Name] [CAPTION:Position] [CAPTION:Department] [CAPTION:Email] [CAPTION:Profile]
[CUSTOM:NAME] [CUSTOM:POSITION] [CUSTOM:DEPARTMENT] Contact this person [CUSTOM:PROFILE]


ParisUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:27

7/23/2011 12:17 AM  
Oops sorry about that. Here is the code

{table}
{tr class="Normal"}[ISFIRST]
{td class="Titles" height="50">[CAPTION:Name]{/td}
{td class="Titles"}[CAPTION:Position]{/td}
{td class="Titles"}[CAPTION:Department]{/td}
{td class="Titles"}[CAPTION:Email]{/td}
{td class="Titles"}[CAPTION:Profile]{/td}
[/ISFIRST]{/tr}

{tr class="Normal"
{td class="Name" width="175" height="50"}[CUSTOM:NAME]{/td}
{td width="175"}[CUSTOM:POSITION]{/td}
{td width="175" }[CUSTOM:DEPARTMENT]{/td}
{td width="175"}{a href="mailto:[CUSTOM:Email]"}Contact this person{/a}{/td}
{td width="70"}{a href="[LINK]"}[CUSTOM:PROFILE]{/a}{/td}
{/tr}


LoukasUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:228

7/24/2011 2:29 PM  
Basically, except a closing bracket I see nothing wrong with your code although your first record will not be shown nad maybe that presents your issue. Can you try this:


{table}
[ISFIRST]
{tr class="Normal"}
{td class="Titles" height="50">[CAPTION:Name]{/td}
{td class="Titles"}[CAPTION:Position]{/td}
{td class="Titles"}[CAPTION:Department]{/td}
{td class="Titles"}[CAPTION:Email]{/td}
{td class="Titles"}[CAPTION:Profile]{/td}
{/tr}
{tr class="Normal"}
{td class="Name" width="175" height="50"}[CUSTOM:NAME]{/td}
{td width="175"}[CUSTOM:POSITION]{/td}
{td width="175" }[CUSTOM:DEPARTMENT]{/td}
{td width="175"}{a href="mailto:[CUSTOM:Email]"}Contact this person{/a}{/td}
{td width="70"}{a href="[LINK]"}[CUSTOM:PROFILE]{/a}{/td}
{/tr}
[/ISFIRST]
{/tr}
{tr class="Normal"}
{td class="Name" width="175" height="50"}[CUSTOM:NAME]{/td}
{td width="175"}[CUSTOM:POSITION]{/td}
{td width="175" }[CUSTOM:DEPARTMENT]{/td}
{td width="175"}{a href="mailto:[CUSTOM:Email]"}Contact this person{/a}{/td}
{td width="70"}{a href="[LINK]"}[CUSTOM:PROFILE]{/a}{/td}
{/tr}

Sorry about the late response, I was away for two days.

Visit our website to see what can we do for you!
ParisUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:27

7/25/2011 5:03 AM  
Hi Loukas,

Thanks for the response. I placed your code but the headers keep repeating. This time every 2 records i.e. I have the header on top, then 2 records, then the header row again and the same 2 records appear again which is strange.

Any ideas?

Paris

LoukasUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:228

7/25/2011 5:37 AM  
hmmm... can you provide me the DNN and PA version so I could check it out on my free time?


/thanks

Visit our website to see what can we do for you!
ParisUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:27

7/29/2011 2:17 AM  
ITs ok Loukas, I managed to sort the issue out. I simply placed the titles in the header and that did the trick

Thank you for all the support. Mostly appreciated.

Paris
You are not authorized to post a reply.
Forums > Modules > Property Agent > Image and Links



ActiveForums 3.7
We've moved our Product Forums!
To better assist our customers, we've moved to an integrated knowledge base and ticketing system. You can access the new forums at http://support.ventrian.com.