Back...
Things I do with every Joomla site:
SEO
- NOTE: will not work on Gospelcom servers
- turn it on (rename htaccess.txt to .htaccess)
- install Artio JoomSEF
- (have to edit mambots/system/joomsef_metabot.php)
find this line - $myframe = new metaMainFrame(&$mainframe->_db, $option, '.');
REMOVE the & before $mainframe, save and upload.
On Gospelcom Servers - Joomla does not work "out-of-the-box" on the Gospelcom.net hosting environment, due to its dependence on standard PHP sessions for authentication and tracking. The good news is that there is a valid "fix" that will allow Mambo to work on the Gospelcom.net servers. - go to:
https://members.gospelcom.net/wiki/index.php?n=Howtos.Mambo (
Reproduced here if you can't remember how to get into the member's section.)
Remove Joomla footers (includes/footer.php - depends on theme)
Remove Joomla meta-tags
- comment out a line in file called includes\frontend.php
- find - $mainframe->addMetaTag( 'Generator', $_VERSION->PRODUCT . " - " . $_VERSION->COPYRIGHT);
- comment out that line.
If you want to set the default publishing state to "Published" for new articles created via the User Interface:
- Edit joomla_hom/components/com_content/content.php
- Look for the following code block:
} else {
$row->sectionid= $sectionid;
$row->version= 0;
$row->state= 0;
$row->ordering= 0;
$row->images= array();
$row->publish_up= date( 'Y-m-d', time() );
$row->publish_down= 'Never';
$row->creator= 0;
$row->modifier= 0;
$row->frontpage= 0;
$row->access= 1; // this makes the default set to registered only
}
- This section sets default values for "NEW" articles (the prior part of the "if" block returns existing values for an article retrieved from the database).
- Simply change the default value for $row->state to 1 instead of 0. This will set the default value for State to Published (item 1 in the drop down list).
Breadcrumbs: - in your template index.php
<?php echo "if($option != '' && $option != 'com_frontpage')
{ ?>
<div id='pathway'>
<?php mosPathWay(); ?>
</div>
<?php } ?>
Moving parts of the content
- ie: You can't edit the location of "last updated" through joomla administration.
- You have to edit this file: yourJoomlaDIRECTORY/components/com_content/content.html.php
- Find (somewhere between line 500 - 530)
-
Code:
// displays Modified Date
HTML_content::ModifiedDate( $row, $params );
- Cut and paste to where you want it, such as below this:
- Code:
// displays Created Date
HTML_content::CreateDate( $row, $params );
Getting other content into a content item
- mosloadposition - to get dynmaic content into a content item - create a new position. then load
that position into your content item.