Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   content on filter pages (/showthread.php?t=6108)

digitalcow January 18th, 2012 08:46 AM

content on filter pages
 
Eric

You helped me out a couple of weeks back with getting custom content on the product category pages, this works fine; too well in fact!!

in the tops category the article appears on the home page http://empleous.com/gb/store/category/398735/tops but also on all the filtered and sub pages, such as
http://empleous.com/gb/store/categor...tops?word=Blue

Is there an easy way to make the content appear only on the category homepage please? My php knowledge is not good enough to think of a way to do it but if I could enter a url for that content to appear on, rather than just the category id, that would help.

Eric January 18th, 2012 08:49 AM

THREAD MOVED TO CORRECT FORUM.

Eric January 18th, 2012 08:59 AM

PHP Code:

<?php if (!$_GET) { ?> 
    [store.if page="off"]
        <?php require(...); ?>
    [/store.if]
<?php ?>


digitalcow January 18th, 2012 10:18 AM

Eric, thanks for the reply and the code. Question for you; what should I be doing with the code? Where should I put it?

Eric January 18th, 2012 10:51 AM

Quote:

Originally Posted by digitalcow (Post 27980)
Eric, thanks for the reply and the code. Question for you; what should I be doing with the code? Where should I put it?

Aren't you already using a require or include function?

digitalcow January 19th, 2012 09:16 AM

Yes, im using the following code

PHP Code:

<?php if ($category->id == 514597) : ?>

<?php include("/home/stores/domains/empleous.com/public_html/xxxxx/514597.txt"); ?>
<?php 
endif; ?>

should I change it to

PHP Code:

<?php if (!$_GET) { ?> 
    [store.if page="off"]
<?php include("/home/stores/domains/empleous.com/public_html/xxxxx/514597.txt"); ?>
    [/store.if]
<?php ?>


Eric January 19th, 2012 09:48 AM

PHP Code:

<?php if ($category->id == 514597) : ?> 
    <?php if (!$_GET) { ?>  
        [store.if page="off"] 
            <?php include("/home/stores/domains/empleous.com/public_html/xxxxx/514597.txt"); ?> 
        [/store.if] 
    <?php ?>
<?php 
endif; ?>


digitalcow January 20th, 2012 05:06 AM

Thanks, works great


All times are GMT -5. The time now is 01:14 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.