Actions

Talk

Difference between revisions of "Creating a basic Joomla! template"

From Joomla! Documentation

m (A bit of craziness?)
Line 5: Line 5:
 
==A bit of craziness?==
 
==A bit of craziness?==
 
What's happening toward the bottom of this page after "Finish it off - one last bit:"?  It seems like a bunch of code might have gotten accidentally pasted or something. [[User:Corsulian|Corsulian]] 14:36, 1 June 2008 (EDT)
 
What's happening toward the bottom of this page after "Finish it off - one last bit:"?  It seems like a bunch of code might have gotten accidentally pasted or something. [[User:Corsulian|Corsulian]] 14:36, 1 June 2008 (EDT)
 +
:That ''bunch of code'' is the full template source explained in this tutorial and was included from ''another'' page but not wrapped in a PRE element to preserve the white space. I fixed all affected pages. --<span class="plainlinks">[[User:CirTap|CirTap]] <small>([[User talk:CirTap|talk]] • [[Special:Contributions/CirTap|contribs]])</small></span> 10:23, 2 June 2008 (EDT)

Revision as of 09:23, 2 June 2008

OK, something has gone wrong here. I edited the "creating an index.php file" and it went wrong - renamed itself 404.shtml. It refused to allow editing of the "creating" file so I tried making a new one "create". Now I can't access either to edit them.

Yeah, okay, I know why this is happening. There is a mod_rewrite rule that looks for "index.php" and rewrites the URL in its SEF form. This fails if "index.php" appears as part of the page name and so you get redirected to 404.shtml which is MediaWiki's "page not found" page. I think the quick and easy fix is to simply avoid having "index.php" in page names. Chris Davenport 10:29, 2 May 2008 (EDT)

A bit of craziness?

What's happening toward the bottom of this page after "Finish it off - one last bit:"? It seems like a bunch of code might have gotten accidentally pasted or something. Corsulian 14:36, 1 June 2008 (EDT)

That bunch of code is the full template source explained in this tutorial and was included from another page but not wrapped in a PRE element to preserve the white space. I fixed all affected pages. --CirTap (talkcontribs) 10:23, 2 June 2008 (EDT)