Am a Joomla novice. Created index.php, etc, categories, articles. But when I view on my local host (MAMP) only the index template appears, not the...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer

Am a Joomla novice. Created index.php, etc, categories, articles. But when I view on my local host (MAMP) only the index template appears, not the articles. But when I change the template to one of the stock ones, the pages appear fine. I am sure there is something very simple I'm doing wrong. Would like someone to tell me what it is!!! Can send you the files.

Posted
Aaron Shaw
Programmer

Hi,

My name is Aaron and I will be happy to help.

Could you send both the stock and custom templates to me at s**j@gmail.com

Thanks,
Aaron

Posted
Customer

What email address should I send the templates etc to?

Kilmeny

Posted
Aaron Shaw
Programmer

Hi,

I put the email in the first post - s**j@gmail.com

Thanks,
Aaron

Posted
Aaron Shaw
Programmer

Hi,

So the problem is essentially that the 3 modules - mainImage, bannerHead and mainContent are not showing up?

Have you made sure to assign a module to your newly created module positions?

Thanks,
Aaron

Posted
Aaron Shaw
Programmer

Hi,

Also I have looked in your index.php file and you have got the following piece of code:

<div id="bannerHead">
     <h1>The Mount House</h1>
     <img src="<?php echo $this->baseurl ?>/templates/ <?php echo $this->template ?>/images/hhbb_banner.jpg" width="716" height="31" alt="Howardian-Hills-B-and-B">
     <jdoc:include type="modules" name="bannerHead" style="xhtml"/></div>

There is a space after the /templates/ part, you need to remove the space so it looks like this:

<div id="bannerHead">
     <h1>The Mount House</h1>
     <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/hhbb_banner.jpg" width="716" height="31" alt="Howardian-Hills-B-and-B">
     <jdoc:include type="modules" name="bannerHead" style="xhtml"/></div>

Then the image should show.

Thanks,
Aaron

Posted
Customer

I'm sure I did assign the modules, but I will double check. I will also sort the error you mention above. If it works, super! If not, I'll get back to you...

Posted
Aaron Shaw
Programmer

Hi,

Ok great, look forward to hearing back either way.

Some of the modules are registering as the nav is showing up etc...which implies the others may not be.

Thanks,
Aaron

Posted
Customer

Has not solved problem - articles (mainContent, mainImage) not showing up. sending more screen shots via email. I think my problem s the module assignment.

Posted
Aaron Shaw
Programmer

Hi,

Has it added the background image?

Thanks,
Aaron

Posted
Customer

No, it hasn't

Posted
Aaron Shaw
Programmer

Edited by Moderator

Posted
Aaron Shaw
Programmer

Hi,

Sorry, pasted the code wrong...should have looked like this:

<div id="bannerHead">
     <h1>The Mount House</h1>
     <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/hhbb_banner.jpg" width="716" height="31" alt="Howardian-Hills-B-and-B">
     <jdoc:include type="modules" name="bannerHead" style="xhtml"/></div>

Thanks,
Aaron

Posted
Aaron Shaw
Programmer

Once again i did it wrong - sorry not my day today.

Third time lucky:

<div id="bannerHead">
     <h1>The Mount House</h1>
     <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/hhbb_banner.jpg" width="716" height="31" alt="Howardian-Hills-B-and-B">
     <jdoc:include type="modules" name="bannerHead" style="xhtml"/></div>

Thanks,
Aaron

Posted
Customer

OK, Aaron, but the bannerHead isn't the problem - it's showing up just fine on all pages. What about the problem with the other content not showing?

Posted
Customer

sorry, missed the comment about the semi-colon. let me have a go with that....

Posted
Customer

Edited by Moderator

Posted
Customer

I hope you will be able to help - based on email sent. I am in the UK and have to be away from my desk 9-5 UK time. Will be back later tomorrow. Looking forward to hearing from you.

Posted
Aaron Shaw
Programmer

Hi,

Yes I am in UK also!

Sorry that the thread went funny earlier - when you paste code you need to highlight it, and then click the button that has an icon 101010 and it should appear in the preview as a code extract and then won't break the thread.

Could you send the code again and do it that way?

Thanks,
Aaron

Posted
Customer

Great! I sent you an email. Did you receive it?

Posted
Aaron Shaw
Programmer

Hi,

I have got this working perfectly now in a test install I have set up...see here:

http://79.170.44.96/ryanontheradio.com/joomla/

Is that how it is supposed to look?

I think your error will be incorrect module assignments. Are you on joomla 1.6, 1.7, 2.5?

Thanks,
Aaron

Posted
Customer

Yep! That's pretty much it - could you tell me where I went wrong with the module assignments? I'm on the latest version of Joomla 2.5.

Posted
Aaron Shaw
Programmer

Hi,

I have done the sample in Joomla 1.7 but they are not that differe

Posted
Aaron Shaw
Programmer

Hi,

That was supposed to say at the end that I will go through the steps one by one and write them down for you so you know how to do it.

Thanks,
Aaron

Posted
Customer

That's great, Aaron. Looking forward to receiving it (and learning!)

Posted
Aaron Shaw
Programmer

Hi,

So you need to do the following:

  • go to Extensions -> Module Manager
  • click New to add a new one
  • Select a module type, choose Custom HTML
  • Type title, choose hide title, select the corresponding position (mainImage or mainContent)
  • choose access public, choose ordering custom html, leave the rest of the settings as default

For the mainImage one:

  • click image below the html editor box, upload the image and insert it into post
  • under module assignment, choose only on the pages selected and then select all the pages you want that particular image on
  • scroll to top and click save and close

For the mainContent one:

  • type the text/html you want in this area
  • under module assignment, choose only on the pages selected and then select all the pages you want that particular content to appear on
  • scroll to top and click save and close

You can then repeat the process as needed.

Thanks,
Aaron

Posted
Customer

Sorry, Aaron. I am a bit confused. Isn't the purpose of a template so that you can create the frame and then each article can be styled according to that. If I understand correctly what you are saying, because there is a different main image on each page, I have to create a unique module for each one in module manager? Similarly, for the main content, I have to create a unique module for each page in module manager? I have already uploaded all the images and all the content to each article (which you can see on the screen shot sent earlier). Surely that can't be right? But if it is, then what's the point of a template? This is a very simple website, which works beautifully well. The only reason I'm going down this route is because my friends want to be able to update it themselves, without having to go through me all the time.

Posted
Customer

There must be something else, because all the articles appear perfectly when I change the default template. IE I don't have to create modules for every element on every page.

Posted
Customer

Sorry, Aaron, but I don't think your answer is correct. It is a solution, but I don't believe it is the right one.

If what you say is correct, then the other templates would not be working. I would have had to create modules for each page, and I didn't do that. If another template is made the default, the content shows up.

My original question was: make this custom template work.

Perhaps you are more familiar with Wordpress than you are with Joomla?

The template should work, and it is not. I am still at the same place I was when I started out.

Posted
Aaron Shaw
Programmer

Hi,

It is not really a work-around. It is two different ways to do exactly the same thing. I am sorry you aren't happy with this resolution of the problem.

Anyway have you added:

Where you want the content?

Also you are corrrect I am more familiar with wordpress than joomla, but I still have a lot of experience with joomla and php coding.

Thanks,
Aaron

Posted
Customer

Aaron - I sent you my index.php file at the very beginning to look at. If you HAD looked at it, you would have seen that I did NOT have that bit of code in the index.php. And you could have pointed that out at the beginning.

And you still have not explained to my satisfaction why when using a standard template you do not have to create unique modules for each bit of unique content (which is your solution for my template). Your proposal makes no sense. On a large website, one would have thousands of modules, based on what you have come up with. And every time someone wanted to create a new page, they would have to not just create the article, they would have to create a module for each unique bit of content on the page.

You obviously are not going to answer my question, or help me to modify my template so that it will work as a template so that my friends can add pages and modify content easily.

So let's just call it quits.

Posted
Aaron Shaw
Programmer

Hi,

Sorry, I am on holiday since yesterday, only have my phone (no laptop), and can't view the php file...so please bear with me.

If you add the code I just posted above to the index.php file, it should output the content.

I am still trying to help you, sometimes problems like this are not as easy to fix as 1,2,3.

Thanks,
Aaron

Posted
Customer

I have managed to come up with a solution on my own to handle the main image. And that little bit of code means that the content now appears. So I won't need any more assistance.

Posted
Aaron Shaw
Programmer

Hi,

Ok fantastic, sorry that my initial resolution was not ok for you.

Glad to hear it is fixed now.

Thanks,
Aaron

Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!