Removing # field from Contacts Component

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
gwurst
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Feb 15, 2008 2:08 pm

Removing # field from Contacts Component

Post by gwurst » Fri Feb 15, 2008 2:20 pm

I have 1.5 stable installed with the JA_Purity template. I'm not sure if this is cause by Joomla or the template, but when I add a Contacts >> Category page in the menu it shows a number before the people's names and positions. If you turn on the field names the field name is '#'. There is no setting in the preferences to remove this field. What do I need to do to keep this field from displaying?

Thanks,

Greg

User avatar
radiant_tech
Joomla! Guru
Joomla! Guru
Posts: 531
Joined: Sat Dec 15, 2007 3:02 pm
Location: Washington DC Metro

Re: Removing # field from Contacts Component

Post by radiant_tech » Sat Feb 16, 2008 3:02 pm

That column is part of the core layout. You can create a template override to remove the column as follows:

Within the directory for the template you are using there is a subdirectory named html.
Create a subdirectory within this named com_contact, and another within com_contact named category, so you will have:
templates/yourtemplate/html/com_contact/category/

Go to components/com_contact/views/category/tmpl and copy the files default.php and default_items.php to the subdirectory that you just created. Default.php is the overall page layout and includes the table heading. Default_items.php fills the table with the list of contacts.

Edit these files to remove the table cell that holds the id. Remember to reduce the colspan to 5 in thead and tfoot.

gwurst
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Feb 15, 2008 2:08 pm

Re: Removing # field from Contacts Component

Post by gwurst » Wed Feb 20, 2008 4:23 pm

Excellent! That was exactly what I needed. Not only that, I now know how to override default parameters without modifying the core structure (I'd have probably found it eventually, but this saved me a bunch of time looking).

Thanks for your help,

Greg

MrTeroo
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed Aug 16, 2006 6:52 am

Re: Removing # field from Contacts Component

Post by MrTeroo » Mon Apr 21, 2008 9:03 am

Big help to me too!

Many thanks

Mr T

jvalal
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 193
Joined: Mon Nov 21, 2005 12:08 am

Re: Removing # field from Contacts Component

Post by jvalal » Fri Jun 20, 2008 5:08 am

I have something similar as all I want to do is change the text on my contacts page, below, to read something different than "Contact details for this website" where would I do that?

http://rainiervistabgc.org/contact.html

Dibblier
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Jul 13, 2008 11:04 pm

Re: Removing # field from Contacts Component

Post by Dibblier » Sun Jul 13, 2008 11:07 pm

Go to Components -> Contact -> Categories click on your category, scroll down and change the description-

jvalal
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 193
Joined: Mon Nov 21, 2005 12:08 am

Re: Removing # field from Contacts Component

Post by jvalal » Mon Jul 14, 2008 1:04 am

thanks

dk-kronborg
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Aug 01, 2008 6:16 pm

Re: Removing # field from Contacts Component

Post by dk-kronborg » Fri Aug 01, 2008 6:24 pm

Thanks for the tip

Is there a way to control the number of contacts being shown on 1 page.

I have a list of 23 contacts and insted of having 2 pages with 20 & 3 contacts i will have them all in 1 page.

Regards
Henrik

northside_umc
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Fri Jan 16, 2009 9:24 pm

Re: Removing # field from Contacts Component

Post by northside_umc » Thu Feb 26, 2009 3:54 pm

i'm having the same issue. i want to remove those numbers. i'm using the JS_Jamba template, and there is no "html" subdirectory within the "templates" directory. should i just create the html directory and follow the rest of the steps from there?

thanks,
daniel

DRM4GOD
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Sat Jul 04, 2009 1:12 am

Re: Removing # field from Contacts Component

Post by DRM4GOD » Mon Nov 30, 2009 8:10 am

This was the easiest way for me to do this using the standard Joomla template:
1. Go to the template directory
2. Edit the HTML/com_contact/category/default_items.php file (back up this file first)
3. Near the top of the file, there is this line of code:

Code: Select all

<?php echo $item->count +1; ?>
4. Remove this line and save, refresh page, numbers should disappear.

trgraglia
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Sat Jan 27, 2007 8:13 am
Contact:

Re: Removing # field from Contacts Component

Post by trgraglia » Thu Dec 17, 2009 4:20 am

Also, dont forget to place the blank html files in the folders you create.

index.html

with guts like:

<html><body bgcolor="#FFFFFF"></body></html>

delazon
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Mar 19, 2010 11:37 am

Re: Removing # field from Contacts Component

Post by delazon » Fri Mar 19, 2010 11:39 am

radiant_tech wrote:That column is part of the core layout. You can create a template override to remove the column as follows:

Within the directory for the template you are using there is a subdirectory named html.
Create a subdirectory within this named com_contact, and another within com_contact named category, so you will have:
templates/yourtemplate/html/com_contact/category/

Go to components/com_contact/views/category/tmpl and copy the files default.php and default_items.php to the subdirectory that you just created. Default.php is the overall page layout and includes the table heading. Default_items.php fills the table with the list of contacts.

Edit these files to remove the table cell that holds the id. Remember to reduce the colspan to 5 in thead and tfoot.
I cant find the right line to delete in the files you discribe. I have located the right files and created the directory and all, but i cant find the right code to delete. I hope it´s not to late to get help about this.

Thanx!

strydem
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Oct 28, 2010 7:49 pm

Re: Removing # field from Contacts Component

Post by strydem » Thu Oct 28, 2010 7:53 pm

Hello,

How can i remove the whole list, so that whenever some acces my contact page, it goes straight to the main info, and not display any of my contacts in a list.

User avatar
simplyg123
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Tue Dec 23, 2008 7:35 pm
Location: Naples Florida
Contact:

Re: Removing # field from Contacts Component

Post by simplyg123 » Fri Feb 04, 2011 2:35 am

strydem wrote:Hello,

How can i remove the whole list, so that whenever some acces my contact page, it goes straight to the main info, and not display any of my contacts in a list.
You need to change the menu item to Standard Category Layout instead of Contact Category Layout
Affordable Graphic Design - http://www.skilledgraphics.com

Jim007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sat Oct 18, 2008 7:22 pm

Re: Removing # field from Contacts Component

Post by Jim007 » Sun Feb 06, 2011 4:04 pm

Thank you for the information, it worked very well

I removed this and it seemed to do it well


<?php echo JText::_('Num'); ?>

TheReal7
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Apr 30, 2011 5:58 pm

Re: Removing # field from Contacts Component

Post by TheReal7 » Sat Apr 30, 2011 6:03 pm

I tried to edit the php files but I have no clue what I am doing. I am not a coder.

What I want to do is remove everything from the contact page but the fill in fields and I also want to center everything on the page.

What I want removed is:
Name
Position

Contact
Address:
Street
Suburb
State
Zip Code
Country

Telephone: Telephone
Fax: Fax

Information: Miscellanous info




Any advice how to remove all this? Keep in mind, I am not a coder and looking at the php files gives me a head ache HAHAH

thanks.

ackerthehacker
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jun 01, 2011 5:47 am

Re: Removing # field from Contacts Component

Post by ackerthehacker » Wed Jun 01, 2011 5:50 am

How do you remove the # for Joomla 1.6 .. it looks different from what I can see.


Locked

Return to “Extensions for Joomla! 1.5”