Remove header and footer from Joomla 2.5 home page - joomla2.5

I have a Joomla 2.5 page consisting of a logo graphic and an entry button which I want to use as the home page. I've pretty much sorted out how to remove the menu module from this page but I want to remove the header and footer too but I can't see how. I would guess, perhaps wrongly, that changes need to be made in the template (beez20) index.php but what exactly? There seems to be plenty of advice online about removing either header/footer from all pages but not for a single page. Any help would be much appreciated

If header and footer are parts of design and not modules, you have to make an addition to template index.php to disable these parts.
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
if ($menu->getActive() != $menu->getDefault()) :
?>
<p> This will be hidden from frontpage </p>
<?php
endif;
?>
You could check this tutorial to help you how to determine if user is viewing the front page for all joomla versions and the addition that is needed for multilingual sites: How to determine if the user is viewing the front page

Related

Opencart language switcher

I'm trying add a new language to opencart version 2.1.0.2. I've uploaded the language files and added the new language via localization->languages. Administration language works fine however the site language only changes when default language is set trough admin panel. language drop down menu does not change the site language. Anyone can help?
thanks in advance
I've solved the issue:) It appears somehow i broke the form in the catalog/view/default[or your theme]/common/language.tpl file (i've added some css and javascript files manually).
For anyone encounter a similar issue, you need to be sure that the form in the language.tpl file
(<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="language">)
posts the hidden input field (<input type="hidden" name="code" value="" />)
with the value of the language code that is taken from the href atribure of the a tag within the dropdown list
<a href="<?php echo $language['code']; ?>">
I'm not writing the exact way i solved the issue because it is far too messy to suggest someone else to use it:) but basicly with some javascript (even better with jquery) you need to assign the value of href attribute of the a tag to the value attribute of the hidden input field
if your language switcher does nothing or give you a page not found error or an internal server error you might have a similar issue

magento product list.phtml

If I click on a product from my product overview on the left side, the shop does not load with the list.phtml. As soon as I swap view to grid or list, it swaps to the list.phtml file and everything is fine. But as I said, if I click on the products on the sidebar, it doesnt work (it's not even affected by list.phtml at all). I removed all the code inside it and it still showed (a bit different, that's why I want to change it) the products, but as soon as I swapped mode, everything disappeared -- as it should. Do you know where I can change that?
Thank you.
It should use list.phtml file. In that file it is defined for both list mode and grid mode.
<?php echo $this->getToolbarHtml() ?>
<?php // List mode ?>
<?php if($this->getMode()!='grid'): ?>
<?php $_iterator = 0; ?>
And
<?php else: ?>
<?php // Grid Mode ?>
<?php $_collectionSize = $_productCollection->count() ?>
You can see something like above code in your list.phtml file,one is for list mode and another for grid mode. This is the default case unless you haven't changed the layout or template code.
If you want to know the file location than you can always enable template path hint. If you don't know how to do that you can follow this.
After knowing from which file it is rendering you can fix it.
Hope this will help.

Opencart how to add php code to product/category description

Does anyone know how to, without purchasing an addon/extension, add php code to the product and category descriptions? If you try to add it automatically gets commented out when you save, e.g. <!-- <?php echo "test" ?> -->
Workaround: For anyone else.. I used borderless iframe to include an external .php file which contained the php code I needed ....

Joomla 2.5 remove text under header logo beez5 template?

i'm devloping a sitehttp://examplesofandroid.com/ in joomla having template beez5.
i want to remove the text "Open Source Content Management" from the page. please help
You can do it by going to template beez5 and open the index.php and search for the given code:
<span class="header1">
<?php echo htmlspecialchars($templateparams->get('sitedescription'));?>
</span>
Just comment out this and you done.
-go to Extensions > Template Manager
-and choose your template Beez5-Default and click upon it.
-you will reach the page Template Manager: Edit Style.
-in that page you can change or remove "Open Source Content Management" from the page in Site Description text box.

Customizing joomla template (category, single, etc.)

It's possible to customize the template for different types of content... for example, on homepage: 1 column, on category listing: 2 columns, on single article: 3 columns. In Wordpress it's quite easy, modifying home.php, category.php, single.php.
With what conditionals I can accomplish this in Joomla 1.5?
Thanks
You can conditionally display modules on a page by page basis (based on menu item). You can also assign completely different templates to each page. Furthermore, you can do things like
$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');
within your index.php and change the page based on the view/component.
Joomla's templating is excellent, with a lot of flexibility.
If only one column contains the real content (componenent/article) you could also work with collapsible module positions. Like this:
<?php if($this->countModules('left')) : ?>
<div class="left_column">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
<?php endif; ?></code></pre>
Then the presence or absence of modules in this column will determine the layout.