Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Joomla! Start to Finish: How to Plan, Execute, and Maintain Your Web Site
This is the forum to discuss the Wrox book Joomla! Start to Finish: How to Plan, Execute, and Maintain Your Web Site by Jen Kramer; ISBN: 978-0-470-57089-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Joomla! Start to Finish: How to Plan, Execute, and Maintain Your Web Site section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 17th, 2010, 02:32 PM
Authorized User
Points: 45, Level: 1
Points: 45, Level: 1 Points: 45, Level: 1 Points: 45, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Troubleshooting a Joomla Template

I've working with a custom template, which I built following the directions in Chapter 13.

The template includes some custom module positions, such as:

<jdoc:include type="modules" name="footernav" style="xhtml" />

When I try to place a module, though, I'm not seeing these custom positions. Instead I'm seeing the positions (e.g., user1, user2) found in the milkway template, even though that template isn't active. I'm not being given the choice to place a module in the positions I've defined.

Anyone have any ideas? Is there something I'm overlooking?

John
Reply With Quote
  #2 (permalink)  
Old March 17th, 2010, 02:57 PM
Authorized User
Points: 45, Level: 1
Points: 45, Level: 1 Points: 45, Level: 1 Points: 45, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default <position> tag

I think I figured out the problem. In addition to the other content described on pp. 260-262, the templateDetails.xml file should include a <position> tag for each position defined in the index.php file. Details are here:

http://docs.joomla.org/Creating_a_ba...tails.xml_file
Reply With Quote
  #3 (permalink)  
Old March 29th, 2010, 11:06 AM
Wrox Author
Points: 133, Level: 2
Points: 133, Level: 2 Points: 133, Level: 2 Points: 133, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2009
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts
Default Yes, that's right

The module positions dropdown in Joomla is populated by the positions you specify in the XML file.

NOTE: Even though it's a dropdown, you CAN type right in the dropdown and specify a new module position that may not be in the XML file. That's some of the worst usability out there... but there you go!

ALSO NOTE: Creating module positions is done by the jdoc:include code, NOT by anything having to do with the XML file. You could create 10 positions in your template but not specify anything in the XML. The result would be that the dropdown may not be populated with any positions (assuming this was the only template in use on your site). However, you could type them in as they occur.

If you add a module position to your template later (either by editing your template or via the loadposition plugin, pages 175-177), you do NOT need to re-edit the XML file to include that position.

Hope this helps clarify.

thanks!
Jen
Reply With Quote
  #4 (permalink)  
Old April 8th, 2010, 05:07 PM
Authorized User
Points: 45, Level: 1
Points: 45, Level: 1 Points: 45, Level: 1 Points: 45, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Template Disabling Editing Functions in TinyMCE

Hi Jen,

Thanks for your answer to my earlier question about the templateDetails.xml file.

I've built a pretty simple template to support a main horizontal navigation bar, along with section-specific navigation bars on the left.

Problem: When I load this template, then log in to the front-end of Joomla, TinyMCE loses all its WYSIWYG buttons, and when I click on Save in TinyMCE, nothing happens.

When I switch back to the MilkyWay and log in, TinyMCE works fine.

Any idea what I'm doing in my template that could be disabling TinyMCE this way? I've looked in the main Joomla forum, but haven't found much.

John
Reply With Quote
  #5 (permalink)  
Old April 8th, 2010, 05:17 PM
Wrox Author
Points: 133, Level: 2
Points: 133, Level: 2 Points: 133, Level: 2 Points: 133, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2009
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts
Default Nifty!

I haven't seen that particular problem before, but my guess would be that you don't have a link to the Joomla built in stylesheet:

<link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" />
Try that and see if it works. My thinking is that it's the formatting of TinyMCE that's broken rather than any actual TinyMCE functionality itself. (The functionality works since it works in MilkyWay.)

Let me know how it turns out --
Jen
Reply With Quote
  #6 (permalink)  
Old April 8th, 2010, 05:47 PM
Authorized User
Points: 45, Level: 1
Points: 45, Level: 1 Points: 45, Level: 1 Points: 45, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default TinyMCE issue

Jen,

Thanks for the quick response. I've was calling the general.css file, but not the system.css file. I'm now calling both. Alas, no luck.

(By the way, the code examples on pp. 256-259 don't mention the system.css file.)

Here's the code for my main text area:

Code:
  <div id="mainContentColumn">
  <jdoc:include type="modules" name="user2" style="xhtml" />
  <jdoc:include type="message" /><jdoc:include type="component" />
	<!-- end #mainContentColumn --></div>
	<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
Everything look OK there?

John
Reply With Quote
  #7 (permalink)  
Old April 8th, 2010, 07:52 PM
Wrox Author
Points: 133, Level: 2
Points: 133, Level: 2 Points: 133, Level: 2 Points: 133, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2009
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts
Default Do you have the URL for the site?

Probably time to look at the site -- either post the URL or email it to me. Go to www.4webinc.com and send it to me on the contact form.

thanks!
jen
Reply With Quote
  #8 (permalink)  
Old April 9th, 2010, 02:22 PM
Wrox Author
Points: 133, Level: 2
Points: 133, Level: 2 Points: 133, Level: 2 Points: 133, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2009
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts
Default For those of you following this thread...

... John sent me his login info for the site and I took a look around.

This was a neat new problem I've never seen before, but caused by such a simple, innocuous mistake!

Instead of:

<jdoc:include type="head" />

He had:

<jdoc:include type='head' />

Anyone see the difference? It should be double quotes, but he had single quotes.

The single quotes blew up all of the TinyMCE editing on the front end, but TinyMCE still worked fine on the back end.

So -- double quotes!

Thanks for a great question, John.
Jen
Reply With Quote
  #9 (permalink)  
Old January 13th, 2011, 03:53 PM
Authorized User
Points: 45, Level: 1
Points: 45, Level: 1 Points: 45, Level: 1 Points: 45, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Extra space on home page

Hi Jen,

I have one follow-up question regarding a template I asked about before.

On the site www.sierrainstitute.us, why is Joomla adding extra white space above the first article on the home page?

There's less space below the breadcrumbs on other pages on the site. Same template, of course, for all the pages. I can't figure what's creating this gap on the home page.

Any ideas?

John
Reply With Quote
  #10 (permalink)  
Old January 13th, 2011, 04:05 PM
Wrox Author
Points: 133, Level: 2
Points: 133, Level: 2 Points: 133, Level: 2 Points: 133, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2009
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts
Default

John -- looks like on the home page only, your right column is showing up:

<div id="sidebar-right">

</div>
Not sure if you have something enabled for the home page? Double check your modules and make sure they're all disabled for the home page of the site.

If you put a (debugging) border around the id of sidebar-right, you'll see that div pushing the content down the page on the home page. It's not present on your other pages.

thanks!
Jen
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership Troubleshooting Laenas1979 ASP.NET 2.0 Professional 0 July 3rd, 2007 01:29 PM
troubleshooting suggesstion darkhalf Javascript 0 March 14th, 2006 01:06 PM
Replication Troubleshooting barjah SQL Server 2000 2 May 24th, 2004 08:06 AM



All times are GMT -4. The time now is 06:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.