24/7 Support - 800.608.6482

Miva Merchant Community Forums

Thread: How do I determine if a specific page exists at category load?

  1. #1
    Join Date
    Mar 2006
    Posts
    28

    Default How do I determine if a specific page exists at category load?

    I want to determine if a certain page exists when categories are loaded. Is there an easy way to do this or will I have to query the table?

    Full Story:
    I'm using toolkit to load pages with the same name as some categories. Not all categories have their own page, and there I things I want to happen and others I don't want to happen when categories having their own page load. What's the best answer?

  2. #2
    Join Date
    Jul 2008
    Location
    NE Ohio - Go Cavs!
    Posts
    947

    Default Re: How do I determine if a specific page exists at category load?

    Toolkit #91 TKSL. Look at 2b on this page http://www.emporiumplus.com/v5/tksl.txt and the chunk of code with the header "beginning of alternate page assignment".

  3. #3
    Join Date
    Mar 2006
    Posts
    28

    Default Re: How do I determine if a specific page exists at category load?

    Thanks for pointing out the tksl function. It led me to an even easier way to solve my problem.

    I had completely forgotten about category custom fields. That was all I needed along with an if statement in the ctgy page.

  4. #4
    Join Date
    Jul 2008
    Location
    NE Ohio - Go Cavs!
    Posts
    947

    Default Re: How do I determine if a specific page exists at category load?

    Easy is always good!

  5. #5
    Join Date
    Mar 2006
    Posts
    6,828

    Default Re: How do I determine if a specific page exists at category load?

    Its always helpful--both as an exercise for yourself as well as to allow others to give better advice--to frame questions in the form of "What you want to achieve" as opposed to "How to achieve what you've already decided to do".

    There is a long zen parable about this. About how an acolyte who keeps asking his master how he can build a boat to cross a large raging river...several failed attempts later, he finally makes it, only to find the master on the other side. The startled acolyte incredulously asks "how did you get here", to which the master replied, pointing upstream several hundred yards...."I walked across the bridge" .

  6. #6
    Join Date
    Mar 2006
    Posts
    28

    Default Re: How do I determine if a specific page exists at category load?

    Thanks Bruce. That was truly enlightening.

    Todd

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •