Forums / General Questions / define main page text repeated in category pages

define main page text repeated in category pages

Locked

Started by dealbyethan_com on 13 Apr 2007, 4:44 PM · Views: 4,598

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
13 Apr 2007, 4:44 PM
#1
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

define main page text repeated in category pages

Hi,

the define main page text which is meant to be on the homepage only is appearing in my other category pages. Any idea how this could happen? Please advise. Thanks in advance.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

21 Jul 2008, 7:40 PM
#2
gchalk avatar

gchalk

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: define main page text repeated in category pages

Help,

When ever I have a category with subcategories, all my info from define_main_page.php show up above the category description. If there are not any subcategories, it works like it should.

see: http://tin10.com/zen/index.php?main_page=index&cPath=6 with subcategories

and: http://tin10.com/zen/index.php?main_page=index&cPath=5 with no sub-categories

TIA

Geoff

9 Aug 2008, 12:17 PM
#3
gchalk avatar

gchalk

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: define main page text repeated in category pages

bump.... Anyone??

9 Aug 2008, 12:36 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: define main page text repeated in category pages

Is it just that one, or if you create a sub-category in one of your other categories, does it do the same thing?

9 Aug 2008, 2:14 PM
#5
gchalk avatar

gchalk

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: define main page text repeated in category pages

stevesh:

Is it just that one, or if you create a sub-category in one of your other categories, does it do the same thing?

it happens anywhere when i have subcategories.

9 Aug 2008, 3:48 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,730
Plugin Contributions:
0

Re: define main page text repeated in category pages

If you switch back to the classic template temporarily do you still have the problem?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Aug 2008, 5:02 PM
#7
gchalk avatar

gchalk

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: define main page text repeated in category pages

Kim:

If you switch back to the classic template temporarily do you still have the problem?

Yes, it also does it in the 'Classic Green' template.

28 Jul 2009, 8:38 AM
#8
ilanperetz avatar

ilanperetz

New Zenner

Join Date:
Mar 2009
Posts:
1
Plugin Contributions:
0

Re: define main page text repeated in category pages

I have the same problem? have you managed to find the solution?

28 Jul 2009, 11:38 AM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: define main page text repeated in category pages

I'm not seeing the problem in the site in your signature.

21 Aug 2009, 2:40 PM
#10
websightdesign avatar

websightdesign

New Zenner

Join Date:
Mar 2006
Posts:
72
Plugin Contributions:
0

Re: define main page text repeated in category pages

Hi guys

Has anyone found an answer to this yet as i am trying to set a home page to my website and everytime i use the main_page the content of this define_page appears in the sub category of every page. So you can see it on the homepage perfectly and everything looks good but when someone clicks on a category to look at the sub categories the main page text is still there and they have to scroll to the bottom of this before they can see any of the sub categories.

Any help is appreciated.

Thanks
Brad

16 Dec 2009, 4:25 AM
#11
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: define main page text repeated in category pages

I actual have the same problem and working on fixing it. Once I figure out what causing it. I will let you know. :dontgetit

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

16 Dec 2009, 5:27 AM
#12
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: define main page text repeated in category pages

I am having same problem with my zen-cart. I am working on the solution. Will let you know what the fix is in a bit.

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

16 Dec 2009, 5:43 AM
#13
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: define main page text repeated in category pages

Found the problem. The FAQ Module caused the problem. I deleted all the FAQ Module files and everything went back to normal. :smile:

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

16 Dec 2009, 5:44 AM
#14
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: define main page text repeated in category pages

Found the problem. The FAQ Module caused the problem. I deleted the FAQ Module files and everything went back to normal. :smile:

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

30 Dec 2009, 7:56 PM
#15
foteek avatar

foteek

New Zenner

Join Date:
May 2008
Posts:
50
Plugin Contributions:
0

Re: define main page text repeated in category pages

Bumping again. I've been struggling to figure this out for some time, and can't. It seems like a lot of people have this problem, can someone help us out?

Thanks,
TJ

30 Dec 2009, 8:22 PM
#16
foteek avatar

foteek

New Zenner

Join Date:
May 2008
Posts:
50
Plugin Contributions:
0

Re: define main page text repeated in category pages

OK, so here is what I've figured out...

if you go to includes/templates/TEMPLATE/templates/tpl_index_categories.php and comment out the inclusion of the $define_page:

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<div id="indexCategoriesMainContent" class="content"><?php
/**
 * require the html_define for the index/categories page
 */

//  include($define_page);
?></div>
<?php } ?>

then the problem is fixed. The main page description still shows up on your top page, and the subcat descroiptions will still show up on the subcats if you've written said descriptions.

I could not find anywhere that DEFINE_MAIN_PAGE_STATUS was defined, it seems to always be 1 when this code is run? I'm not sure commenting this out is the right answer, but I've seen no ill effects so far.

If anyone has a cleaner answer or better explanation for why this works, please share.

TJ

22 Apr 2010, 4:09 AM
#17
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: define main page text repeated in category pages

foteek:

OK, so here is what I've figured out...

If anyone has a cleaner answer or better explanation for why this works, please share.

TJ
Is this still working for you?
I've got the same problem...
I'm about to try what you've done but just like to check it's still the only solution.
I do have FAQ module installed too...
Cheers

25 Oct 2010, 1:22 PM
#18
funkypapa avatar

funkypapa

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Re: define main page text repeated in category pages

foteek:

OK, so here is what I've figured out...

if you go to includes/templates/TEMPLATE/templates/tpl_index_categories.php and comment out the inclusion of the $define_page:

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <div id="indexCategoriesMainContent" class="content"><?php /** * require the html_define for the index/categories page */

// include($define_page);
?></div>

<?php } ?>
> 
> then the problem is fixed.  The main page description still shows up on your top page, and the subcat descroiptions will still show up on the subcats if you've written said descriptions.  
> 
> I could not find anywhere that DEFINE_MAIN_PAGE_STATUS was defined, it seems to always be 1 when this code is run?  I'm not sure commenting this out is the right answer, but I've seen no ill effects so far.
> 
> If anyone has a cleaner answer or better explanation for why this works, please share.
> 
> TJ

I have the FAQ mod installed, I've fixed a couple of problems with it. This is one that it messes up somehow, but this fix worked fine for it. I copied the tpl_index_categories.php to my custom template folder and made the change, all is working fine again. Nice info!!