Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Module Position Issue

Module Position Issue 11 months 3 weeks ago #47893

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
I'm trying to create a module position that sits in the second row (after the second module) on the front page of my site. I followed the step in the tutorial, but nothing happened. Any suggestions?

Here's my site: www.wjyouthpower.com/

Thanks.
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47894

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

Which step in which tutorial? :)

Could you paste the line that you added and a few lines below and above it?

Looking forward to helping!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47895

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
This was the tutorial: www.ostraining.com/blog/joomla/how-to-cr...la-module-positions/

Was that the correct one?
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47896

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Cheryl,

I assume you're trying to put an actual position into the template. This tutorial will work if you're using "loadposition" to put a module into an article, but won't add it to the template.

You have to add the module position to the templatesDetails.xml file and put and put a div for it into the index.php if you want to do that.

Is that what you are trying to do?

Ed
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47897

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

No, that won't work. That's a trick used for inserting modules into articles and other similar techniques.

For inserting a new module position into a 1.5 template give either of following two tutorials a try:
www.ostraining.com/courses/session/jooml...ing-blocks/indexphp/
www.ostraining.com/courses/session/jooml...rst-template/step-2/

Basically all you need is to insert:
<jdoc:include type="modules" name="yourModulePositionNameGoesHere" />
into your template's index.php wherever you'd like the module position to appear. The videos will give you a good context of the details.

Hope this helps!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47898

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Ed,

That's exactly what I'm trying to do. :)

Is there a tutorial on that? If not, could you please give me the exact steps, since I clearly have no clue what I'm doing? LOL
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47899

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Thanks Nick!
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47900

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
You're welcome, Cheryl! We're glad to be of help! :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47901

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Nick,

Quick question:

How will the coding know where to place the module? The ones on my site are in the user 4 &5 positions. If I wanted to place another right next to the 5th, would that be a 'user6?'
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47903

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

You can name it whatever you'd like. The key is that it's right after position 5 module and then the code will know to put it after. If you want it to the right of position (which is actually still "after" since code works left to right just like reading a book), then you have to also style it with css to make sure it goes to the right of position 5.

Hope this helps!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47904

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Is there a tutorial on how to do that? I'm lost! LOL
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47907

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

I think it's time to take our Joomla template class and our coding classes :)

We'd highly recommend going through all our training in this order:

1) Template Design
2) HTML Class
3) CSS Class
4) PHP Class

Those classes will give you more than enough information to make the changes that you're wanting to make (and also to easily make the changes that we've helped you with in the past). Also, Firebug is a great tool to help speed up the process. Here's our tutorial on it:
www.ostraining.com/blog/joomla/using-fir...it-joomla-templates/

Hope this helps! You can do it! You're improved tremendously in the last year and it's take to take the next step :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47908

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Thanks for the words of encouragement. I'll let you know how things turn out!

For some reason, coding freaks me out! LOL
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 3 weeks ago #47911

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

You're welcome! You can do it; I know you can! This one is a particularly good one to start on because it's simple and straightforward.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48345

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Hi Nick,

I am viewing the template training video "Building Block 1 - Table of Contents - templateDetails.xml" and am implementing the steps as I go along. After copying and pasting the code for my templateDetails.xml file, I then tried to install it in the Admin section in the backend and received this error message:

Failed loading XML file
/home/renchick/public_html/templates/test/templateDetails.xml
XML: Start tag expected, '<' not found


What does it mean?

Here's a link to the video: www.ostraining.com/courses/session/jooml.../templatedetailsxml/
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48359

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

Could you copy and paste what you have in your templateDetails.xml file, so that we can take a quick look?

Also, what do you mean you tried to install it? Just the templateDetails.xml or did you zip up the whole template?

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48361

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
These were the steps that were listed in that tutorial's session notes section (I am working from my Joomla 2.5 site):

Session Notes

Copy and Paste the following if you're using Joomla 1.5:

view source
print?
1.<install version="1.5" type="template">
2.<name>test</name>
3.<version>Alpha</version>
4.<creationDate>10/16/09</creationDate>
5.<author>My Name</author>
6.</install>

Copy and Paste the following if you're using Joomla 2.5:

1.<extension version="2.5" type="template" client="site">
2.<name>test</name>
3.<version>Alpha</version>
4.<creationDate>10/16/09</creationDate>
5.<author>My Name</author>
6.</install>

Note: To make a 2.5 template show up in the Template Manager, you need to go to the Admin are >> Extensions (menu item) >> Extension Manager (sub-menu item) >> Discover (tab) >> Discover (button) >> select the template >> Install (button)

Note: Joomla 2.5 has a bug that we've reported to the Joomla Bug Squad, wherein a template won't show up in Template Manager if the is different than template folder name. So for now, just know that it's required that the name tag be the same as the folder name. No spaces or special characters are allowed.
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48363

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

OK, those should work. Are you sure you copied them correctly? Could you copy and paste what you have in your templateDetails.xml file?

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48367

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Sure. See below

1.<extension version="2.5" type="template" client="site">
2.<name>test</name>
3.<version>1.0</version>
4.<creationDate>06/06/12</creationDate>
5.<author>test</author>
6.</install>
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48372

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

Remove the numbers and the periods after the numbers (e.g. 1. 2. 3.) at the start of each line and you should be set to go :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48374

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Made the adjustments. This is the error message I'm now getting:

Failed loading XML file
/home/renchick/public_html/templates/test/templateDetails.xml
XML: Opening and ending tag mismatch: extension line 1 and install

Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48378

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

Sorry, switch the last line to:
</extension>

I'll get that corrected in the lesson as well.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48380

  • CherylR
  • CherylR's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 896
  • Karma: 0
Nick,

Now I'm getting this message after I click the install button:


Fatal error: Call to a member function setDebug() on a non-object in /home/renchick/public_html/libraries/joomla/installer/adapters/template.php on line 543

LOL
Please become a member of OSTraining to reply to this post.

Module Position Issue 11 months 2 weeks ago #48382

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16846
  • Thank you received: 394
  • Karma: 57
Hi Cheryl,

OK, the lesson has been corrected:
www.ostraining.com/courses/session/jooml.../templatedetailsxml/

As to the new error, Would you open up a new forum topic for that please? It's not an issue with the tutorial in this case :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.