Contact page display - avoid link to another page (EN/FR) Topic is solved

Moderators: Aidan38, sarki

Forum rules
Règles du forum
Locked
Caro1717
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Sep 14, 2020 2:21 pm

Contact page display - avoid link to another page (EN/FR)

Post by Caro1717 » Mon Sep 14, 2020 2:45 pm

Hello,

Sorry if the question seems simple! I need to display 2 contacts on the contact page and I'm at my best with the Menu item type "List Contacts in a Category", but with this option the contacts are display with links, you can click and a new page with infos appear. I would like to avoid that and simple display the contacts without link to a new page. How can I do that?
I looked on the contact components, on the global configuration... Can't find it!

Thank you!

Hello, désolé si ma question a l'air simple. J'aimerais afficher 2 contacts dans la page contact. J'ai réussi jusqu'ici à afficher 2 contacts avec le Menu item type "List Contacts in a Category", mais chaque contact (affiché sous forme de lien) donne accès à une nouvelle page (inutile pour moi). J'aimerais juste affiche 2 contacts, sans liens, sans page secondaire. Comment faire?

Merci ! 8)
Caroline.
Capture d’écran 2020-09-14 à 16.41.06.png
You do not have the required permissions to view the files attached to this post.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Contact page display - avoid link to another page (EN/FR)

Post by infograf768 » Mon Sep 14, 2020 4:45 pm

Si vous désirez toujours afficher des contacts via List contact in a category de cette façon, il vous suffit de créer un override.
Copier le fichier
/components/com_contact/views/category/tmpl/default_items.php
et placez la copie dans votre template dans nomdutemplate/html/com_contact/category/


Changer dans le fichier vers la ligne 78, le code

Code: Select all

<div class="list-title span<?php echo $contactWidth; ?> col-md-<?php echo $contactWidth; ?>">
<a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>">
<?php echo $item->name; ?>
</a>
en

Code: Select all

<div class="list-title span<?php echo $contactWidth; ?> col-md-<?php echo $contactWidth; ?>">
<?php echo $item->name; ?>
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Caro1717
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Sep 14, 2020 2:21 pm

Re: Contact page display - avoid link to another page (EN/FR)

Post by Caro1717 » Wed Sep 16, 2020 4:12 pm

M E R C I 1000x !!
Ca marche tip top!


Locked

Return to “French Forum”