Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Link on position in Trombinoscope Contacts

More
1 year 6 months ago #5754 by rbuelund
Is it possible to link the position field instead of the name field on a card? And can the position field also be placed aboce the name field on the card ?

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #5755 by syw
Yes, you could. But to do that, you will need to create a template override.
The position can be found in $item->con_position.
You would have to make a slight change in the extension's default.php override, just before Helper::renderName.
If you are not familiar with php, you can contact me at [email protected] and I can help you with that.

Olivier.

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #5756 by rbuelund
Replied by rbuelund on topic Link on position in Trombinoscope Contacts
Which tmpl folder are we talking about here ?

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #5757 by rbuelund
Replied by rbuelund on topic Link on position in Trombinoscope Contacts
Ah got it the thrombinoscope folder. BUT, how do I get the link to the datail page of the contact ?

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago - 1 year 6 months ago #5758 by syw
You just need to look at the link used for the name and use that link for the position instead.
In the override, the link created according to the settings from the extension is called
$link

So you could add something like:
<?php if ($link) : ?>
<a href="<?php echo $link; ?>"><?php echo $item->con_position; ?></a>
<?php endif; ?>

Olivier.
Last edit: 1 year 6 months ago by syw.

Please Log in or Create an account to join the conversation.