Welcome to DU!
The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards.
Join the community:
Create a free account
Support DU (and get rid of ads!):
Become a Star Member
All Forums
Issue Forums
Culture Forums
Alliance Forums
Region Forums
Support Forums
Help & Search
General Discussion
Related: Editorials & Other Articles, Issue Forums, Alliance Forums, Region ForumsWhat is this on DU when I logged in?
https://www.democraticunderground.com/index.phpWhat is index.phb? What is the purpose of the index.php file?
https://docs.joomla.org/What_is_the_purpose_of_the_index.php_file%3F
<head>
<title>My Example Webpage</title>
<meta name="title" content="example" />
<link rel="stylesheet" href="www.example.com/css/css.css" type="text/css" />
</head>
And the same thing done the Joomla! way:
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>templates/mytemplate/css/css.css" type="text/css" />
</head>
So, instead of these header parts being defined on the index.php file, the header parts are looked up from the database by bits of php code. The clever part is that both these scripts will deliver the same code to a user. If you look at the code of a joomla website, all the <?php blah /> will have been replaced by regular html code.
Good template design
index.php should be as bare-boned as you can make it because it will be re-sent every time a new page is loaded. Elements such as styling should be delivered in css files that are saved in the users cache. The tutorials here will go through the technical aspects of creating your index.php.
Why index.php ?
Index.htm has historically been the name given to the home page of a website. Thus when a user navigates to www.example.org, the webserver delivers www.example.org/index.htm. Because Joomla! is written in PHP, index.php is the automatically served file. To further complicate things, when a user navigates to the joomla website, the index.php of the root directory redirects to the index.php of the current default template.
<title>My Example Webpage</title>
<meta name="title" content="example" />
<link rel="stylesheet" href="www.example.com/css/css.css" type="text/css" />
</head>
And the same thing done the Joomla! way:
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>templates/mytemplate/css/css.css" type="text/css" />
</head>
So, instead of these header parts being defined on the index.php file, the header parts are looked up from the database by bits of php code. The clever part is that both these scripts will deliver the same code to a user. If you look at the code of a joomla website, all the <?php blah /> will have been replaced by regular html code.
Good template design
index.php should be as bare-boned as you can make it because it will be re-sent every time a new page is loaded. Elements such as styling should be delivered in css files that are saved in the users cache. The tutorials here will go through the technical aspects of creating your index.php.
Why index.php ?
Index.htm has historically been the name given to the home page of a website. Thus when a user navigates to www.example.org, the webserver delivers www.example.org/index.htm. Because Joomla! is written in PHP, index.php is the automatically served file. To further complicate things, when a user navigates to the joomla website, the index.php of the root directory redirects to the index.php of the current default template.
InfoView thread info, including edit history
TrashPut this thread in your Trash Can (My DU » Trash Can)
BookmarkAdd this thread to your Bookmarks (My DU » Bookmarks)
5 replies, 1135 views
ShareGet links to this post and/or share on social media
AlertAlert this post for a rule violation
PowersThere are no powers you can use on this post
EditCannot edit other people's posts
ReplyReply to this post
EditCannot edit other people's posts
Rec (2)
ReplyReply to this post
5 replies
= new reply since forum marked as read
Highlight:
NoneDon't highlight anything
5 newestHighlight 5 most recent replies
What is this on DU when I logged in? (Original Post)
Miigwech
May 2020
OP
The truth is out there. Just keep an eye out for black SUVs with no plates. I said too mu .... click
marble falls
May 2020
#1
marble falls
(56,358 posts)1. The truth is out there. Just keep an eye out for black SUVs with no plates. I said too mu .... click
MineralMan
(146,192 posts)2. Why does that matter to you?
That's how DU has always been.
Miigwech
(3,741 posts)3. Never shown on my DU look up before
MineralMan
(146,192 posts)4. But it still doesn't matter.
index.htm or index.php. Same screen to look at on the site.
It's just a matter of how the site was built. As long as it works, it doesn't affect any of its users.
Miigwech
(3,741 posts)5. Ok, thank you, It worried me.
Last edited Mon Jun 1, 2020, 06:31 PM - Edit history (1)
So folks don't need to make me look and feel stupid, do they?