Contacts display

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
joom31
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 27, 2015 11:14 am

Contacts display

Post by joom31 » Thu Aug 27, 2015 11:39 am

Hy!! Where can I edit contacts display (component Contacts), when clicking on menu Contacts. I also want to show webpage, not only name, surname, phone, mobile phone and email, but not in the way, that I click on certain contact, but already on the higer level... Thanks for any suggestions, regards

User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 19203
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

Re: Contacts display

Post by ranwilli » Thu Aug 27, 2015 2:35 pm

Are you really using Joomla 1.5? if not, ask the moderators to move this thread to the proper category.
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com

joom31
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 27, 2015 11:14 am

Re: Contacts display

Post by joom31 » Fri Aug 28, 2015 12:16 pm

Yes, 1.5.22. I'm not talking about contact form, but about presentation of contacts (also by category)...

joom31
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 27, 2015 11:14 am

Re: Contacts display

Post by joom31 » Wed Sep 02, 2015 7:17 am

I found files (1. default.php, 2. default_items.php), where I can edit table for contacts:
...\components\com_contact\views\category\tmpl

But when I add lines for webpage, nothing happens:
1.
<?php if ( $this->params->get( 'show_webpage' ) ) : ?>
<td height="20" class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo JText::_( 'Webpage' ); ?>
</td>
<?php endif; ?>

2.
<?php if ( $this->params->get( 'show_webpage' ) ) : ?>
<td width="15%">
<?php echo $this->escape($item->webpage); ?>
</td>
<?php endif; ?>

I've also added lines in both, 1. default.php, 2. default_items.php, in:
...\templates\beez\html\com_contact\category

1.
<?php if ( $this->params->get('show_webpage')) : ?>
<th id="Webpage" class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo JText::_('Webpage'); ?>
</th>
<?php endif; ?>

2.
<?php if ($this->params->get('show_webpage')) : ?>
<td headers="Webpage" class="sectiontableentry">
<?php echo $this->escape($item->webpage); ?>
</td>
<?php endif; ?>

Still nothing...

joom31
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 27, 2015 11:14 am

Re: Contacts display

Post by joom31 » Wed Sep 02, 2015 9:15 am

OK, one solution is also, that I switch position with webpage, because position is shown properly. But I need help with showing position/webpage as hyperlink (href). For example: position/webpage is now just text 'test:345', but I need it to be hyperlink... This is almost OK:
<?php echo '<a href="'.$this->escape($item->con_position).'">Webpage</a>';?>

I just need Webpage to be of a value of variable con_position... And here it is:
<a href="<?php echo $this->escape($item->con_position) ?>"><?php echo $item->con_position; ?></a>


Locked

Return to “General Questions/New to Joomla! 1.5”