Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

× Contact Enhanced is a contact component manager created to replace Joomla! core contacts component and add lots of advantages and new features (see Features ) and it offers many plugins and modules for several different purposes,
Product page | Documentation Page

Removing image and name links in 'List First Level Categories'

5 years 2 months ago #24812 by tapiochre
I have attempted to create an override for the emove the links for contact images and their names when using a menu defined for List First Level Categories but have failed.

By editing the $item->link to be
$item->link ="#"

I can stop the links from opening the contact form but its not ideal.

I think I need to work on this entire block of code but I don;t know how.
<?php
$item->link = Route::_(ContactenchancedHelperRoute::getContactRoute($item->slug, $item->catid)); 					
if($this->params->get( 'show_contact_image' ) == '1' AND $item->image ){ $image = HTMLHelper::_('image', Uri::base(). $item->image, Text::sprintf('COM_CONTACTENHANCED_CONTACT_IMAGE_ALT',$item->name ), array('align' => 'middle', 'class'=> 'ce-contact-img-cat')); echo HTMLHelper::_('link',$item->link,$image, array('class'=>'category'.$this->params->get( 'pageclass_sfx' )) ); echo HTMLHelper::_('link',$item->link,$item->name, array('class'=>'category'.$this->params->get( 'pageclass_sfx' )) ); }elseif($this->params->get( 'show_contact_image','tooltip' ) == 'tooltip' AND $item->image){ $image = HTMLHelper::_('image', Uri::base(). $item->image, Text::sprintf('COM_CONTACTENHANCED_CONTACT_IMAGE_ALT',$item->name ), array('align' => 'middle', 'class'=> 'ce-contact-img-tooltip')); HTMLHelper::_('bootstrap.tooltip'); echo HTMLHelper::_('link',$item->link,$image, array('class'=>'hasTooltip category'.$this->params->get( 'pageclass_sfx' )) ); }else{ echo HTMLHelper::_('link',$item->link,$item->name, array('class'=>'category'.$this->params->get( 'pageclass_sfx' )) ); } ?>

Would you be able to quiclky advise what this needs to be to remove the links please?

Hope its not a killer!

Chris

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

5 years 2 months ago #24813 by support
Dear Chris,

We've never had this request. If you don't want to show the Contact Form, you can disable the contact form only, so it will still display the link to the contact page, but without the contact form.

Customizations are out of the scope of our support, however I'll create a template html override for contacts_items.php so you can upload to
/template/YOUR_TEMPLATE/html/com_contactenhanced/categories/contacts_items.php

Best regards,

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

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback