Removing # field from Contacts Component
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.
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.
-
- Joomla! Apprentice
- Posts: 14
- Joined: Fri Feb 15, 2008 2:08 pm
Removing # field from Contacts Component
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
Thanks,
Greg
- radiant_tech
- Joomla! Guru
- Posts: 531
- Joined: Sat Dec 15, 2007 3:02 pm
- Location: Washington DC Metro
Re: Removing # field from Contacts Component
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.
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.
Catch up with me on Google+: https://plus.google.com/106742096640193690159
-
- Joomla! Apprentice
- Posts: 14
- Joined: Fri Feb 15, 2008 2:08 pm
Re: Removing # field from Contacts Component
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
Thanks for your help,
Greg
-
- Joomla! Apprentice
- Posts: 28
- Joined: Wed Aug 16, 2006 6:52 am
Re: Removing # field from Contacts Component
Big help to me too!
Many thanks
Mr T
Many thanks
Mr T
-
- Joomla! Enthusiast
- Posts: 193
- Joined: Mon Nov 21, 2005 12:08 am
Re: Removing # field from Contacts Component
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
http://rainiervistabgc.org/contact.html
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Jul 13, 2008 11:04 pm
Re: Removing # field from Contacts Component
Go to Components -> Contact -> Categories click on your category, scroll down and change the description-
-
- Joomla! Enthusiast
- Posts: 193
- Joined: Mon Nov 21, 2005 12:08 am
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Aug 01, 2008 6:16 pm
Re: Removing # field from Contacts Component
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
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
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Jan 16, 2009 9:24 pm
Re: Removing # field from Contacts Component
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
thanks,
daniel
-
- Joomla! Apprentice
- Posts: 30
- Joined: Sat Jul 04, 2009 1:12 am
Re: Removing # field from Contacts Component
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:
4. Remove this line and save, refresh page, numbers should disappear.
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; ?>
-
- Joomla! Apprentice
- Posts: 47
- Joined: Sat Jan 27, 2007 8:13 am
- Contact:
Re: Removing # field from Contacts Component
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>
index.html
with guts like:
<html><body bgcolor="#FFFFFF"></body></html>
-
- Joomla! Apprentice
- Posts: 5
- Joined: Fri Mar 19, 2010 11:37 am
Re: Removing # field from Contacts Component
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.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.
Thanx!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Oct 28, 2010 7:49 pm
Re: Removing # field from Contacts Component
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.
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.
- simplyg123
- Joomla! Apprentice
- Posts: 36
- Joined: Tue Dec 23, 2008 7:35 pm
- Location: Naples Florida
- Contact:
Re: Removing # field from Contacts Component
You need to change the menu item to Standard Category Layout instead of Contact Category Layoutstrydem 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.
Affordable Graphic Design - http://www.skilledgraphics.com
-
- Joomla! Enthusiast
- Posts: 136
- Joined: Sat Oct 18, 2008 7:22 pm
Re: Removing # field from Contacts Component
Thank you for the information, it worked very well
I removed this and it seemed to do it well
<?php echo JText::_('Num'); ?>
I removed this and it seemed to do it well
<?php echo JText::_('Num'); ?>
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Apr 30, 2011 5:58 pm
Re: Removing # field from Contacts Component
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.
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.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed Jun 01, 2011 5:47 am
Re: Removing # field from Contacts Component
How do you remove the # for Joomla 1.6 .. it looks different from what I can see.