Post by d_koev » Fri Nov 05, 2010 2:06 am

Hey guys,

I am making a custom theme and need to use a slider in some pages but not every page. Can I use something to chek the current page?

Something like

Code: Select all

if {is_home}
or

Code: Select all

if {categoryID=2}
Would be great if someone could help. Thanks in advance.

Уеб дизайн и SEO услуги от metaGraphics Design Studio
Check my ShopperLand Premium theme
Check my ModernStore Premium theme


New member

Posts

Joined
Thu Jan 14, 2010 8:03 pm

Post by billyggla » Fri Nov 05, 2010 3:59 am

Something like this should do it.

Code: Select all

    <?php if (isset($_GET['route'])) { ?>
    <?php $id = $_GET['route']; ?>
    <?php } ?>
    <?php if ($id == "common/home") { ?>
    <?php echo "" ?>
    <?php } else { ?>
     YOURSLIDERCODEHERE
    <?PHP } ?>
you can also change route to path..

Active Member

Posts

Joined
Mon Sep 20, 2010 7:05 am

Post by d_koev » Wed Nov 17, 2010 7:55 pm

Thank you, billyggla.

I am afraid I have another problem now. If SEO URL is enabled there is no more 'path' in categories and products. Can you tell me what is the "seo keyword" variable to look for?

Уеб дизайн и SEO услуги от metaGraphics Design Studio
Check my ShopperLand Premium theme
Check my ModernStore Premium theme


New member

Posts

Joined
Thu Jan 14, 2010 8:03 pm

New member

Posts

Joined
Thu Jan 14, 2010 8:03 pm

Post by gcherian » Thu Nov 18, 2010 12:21 am

Any chance that you can let everyone here know how you solved it - just might be useful.

Thanks,
George

Newbie

Posts

Joined
Tue Nov 02, 2010 9:50 pm

Active Member

Posts

Joined
Mon Sep 20, 2010 7:05 am
Who is online

Users browsing this forum: No registered users and 21 guests