Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 10:11 am (All times are UTC )

 


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.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
Posted: Tue Sep 23, 2008 9:47 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 28, 2007 9:37 pm
Posts: 21
I'm not using it at all, instead I'm using a copy of the Newsflash module to show a selection of articles on the home (front) page. Unfortunately, the Front Page Manager insist on putting the text "There are no items to display" on my front page. I want to get rid of that.

I thought I could edit my index.php to take out the code that loads the Front Page component, but I'm no coder and just screwed it up.

Any ideas? The site is http://tectrucks.officewebsiteonline.com/index.php. Thanks.

_________________
Dave in PDX


Top
  E-mail  
 
Posted: Mon Sep 29, 2008 8:23 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 28, 2007 9:37 pm
Posts: 21
Nobody?

_________________
Dave in PDX


Top
  E-mail  
 
Posted: Thu Oct 02, 2008 1:33 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Oct 29, 2006 12:06 am
Posts: 211
Location: Fort Collins, Colorado
If I am understanding you correctly, all you have to do is unpublish whatever menu item is set to the Front Page component. I have done this already on several sites.

_________________
Scott B. Ackerman
Usable Web Solutions
http://www.us-able.com
"Design is not just what it looks like and feels like, design is how it works" - Steve Jobs


Top
   
 
Posted: Thu Oct 02, 2008 3:31 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 28, 2007 9:37 pm
Posts: 21
scottthepotter wrote:
If I am understanding you correctly, all you have to do is unpublish whatever menu item is set to the Front Page component. I have done this already on several sites.


I'm not following you. Check my development site at the link in my first post. See the text "There are no items to display" at the top of the middle column? I think that is there because I don't have any items checked to show on the front page via the Front Page Manager. As far as I know it doesn't have anything to do with any menu items, although I could be wrong.

If I could deactivate or unpublish Front Page Manager then that text would go away.(?)

_________________
Dave in PDX


Top
  E-mail  
 
Posted: Thu Oct 02, 2008 4:05 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Oct 29, 2006 12:06 am
Posts: 211
Location: Fort Collins, Colorado
By default, Joomla's 'Home' menu item is linked to the Front Page component. You can see this by going into the administrative end and looking at 'Menu>mainmenu' and in the 'Type' column you see that 'Home' is 'Component-Front Page'. So when you go to the base URL you are accessing the 'Front Page Component'. You can see this if you click the 'Home' menu item, you get the URL http://www.tectrucks.officewebsiteonlin ... e&Itemid=1. And after index.php the question mark is a 'query' for option=com_frontpage,this is the front page component, and Itemid=1 is the item ID you see when look at the menu item in the menu manager (yes there is a reason why the URL's look the way that they do) . The same thing happens when someone goes to the base URL, you just don't see the PHP query. What is puzzling me is how you are getting articles to show on the Front page if you don't have any articles checked to 'show on front page'.

_________________
Scott B. Ackerman
Usable Web Solutions
http://www.us-able.com
"Design is not just what it looks like and feels like, design is how it works" - Steve Jobs


Top
   
 
Posted: Thu Oct 02, 2008 4:09 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Oct 29, 2006 12:06 am
Posts: 211
Location: Fort Collins, Colorado
Okay, I get it. You are not using content areas at all, you are using Module positions to show the stories. There isn't really any 'easy' way to solve this as Joomla expects a component in the main area of every page and the mechanism to display content is a component. So even if you made a new menu item that wasn't pointed to the Front Page component and moved it to the top and called it 'home', you would still have to have at least one article published on that page or you will get the same message. By the way why don't you just pull the information out of the module positions that are on the front page and put them in articles and publish them to the front page? That would certainly solve your problem.

_________________
Scott B. Ackerman
Usable Web Solutions
http://www.us-able.com
"Design is not just what it looks like and feels like, design is how it works" - Steve Jobs


Top
   
 
Posted: Thu Oct 02, 2008 4:23 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 28, 2007 9:37 pm
Posts: 21
scottthepotter wrote:
By the way why don't you just pull the information out of the module positions that are on the front page and put them in articles and publish them to the front page? That would certainly solve your problem.


I want the top news article and two featured trucks to be randomly chosen from pools of articles and trucks. The Front Page component doesn't do that but the Newsflash module does.

Can I edit a component file somewhere to take out the "There are no items to display" text?

_________________
Dave in PDX


Top
  E-mail  
 
Posted: Thu Oct 02, 2008 5:30 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Oct 29, 2006 12:06 am
Posts: 211
Location: Fort Collins, Colorado
Yep, that one is pretty easy. Open up the file 'english.php', in your 'language' subdirectory directly beneath your base Joomla install in a text editor like notpad. At or about line 119 you will see a line that reads:
DEFINE('_EMPTY_BLOG','There are no Items to display');
you need to change that line to read
DEFINE('_EMPTY_BLOG','');
Now you will still probably end up with an empty line where the text was formerly, but at least the text won't be there. You will also notice in this file all of the other things that you can change such as 'authorise'. If you don't speak the 'Kings english' you can change that to 'authorize'.

_________________
Scott B. Ackerman
Usable Web Solutions
http://www.us-able.com
"Design is not just what it looks like and feels like, design is how it works" - Steve Jobs


Top
   
 
Posted: Thu Oct 02, 2008 5:53 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 28, 2007 9:37 pm
Posts: 21
Groovy! Done and thanks for your help! ;D

_________________
Dave in PDX


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group