Announcement

#1 2014-02-14 08:13:10

bhargavgollamudi
Member
2014-02-14
1

How to check current page is home page or not ?

Hi,

I am using Additional pages plugin for custom home page. In the home page i want to hide page title. How to check the current page is home page or not? If i know current page i can hide the following code
on theme index.php page. Currently i am developing my site on local system using wamp server

<div class="head_title">
<h2>{$TITLE}</h2>
</div>

Is there any smarty variable to check the current page is homepage or not ?

Piwigo version: 2.6.0
PHP version: 5.3.27
MySQL version: 5.5.15
Piwigo URL: http://

Offline

 

#2 2014-02-26 07:57:06

flop25
Piwigo Team
2006-07-06
7037

Re: How to check current page is home page or not ?

Hello
you will have to set your own Smarty variable in a custom plugin
But in fact the best way is to unassign the TITLE variable.
In order to know is that's the home  check the global var $page
Use the skeleton plugin and other plugins to help you


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact