Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • 7of9 Friend
    #205611

    Hi,

    We recently bought and installed the cherry picker filter extension. This extension supports dynamic Ajax update, however in order to do it, it requires you to give it the main div id that holds the VM component. We tried to follow the developer’s instructions, however we cannot find the block of code in the component.php as described here:
    http://www.galt.md/faq/preparing-your-template-for-dynamic-update-of-results
    Could you please tell us where could we find the following block of code, since it’s not in component.php?

    ..
    <body class="contentpane">
    <div id="all">
    <div id="main">
    <jdoc:include type="message" />
    <jdoc:include type="component" />
    </div>
    </div>
    </body>
    ..

    Or tell us the div id that holds the VM component?

    Thanks in advance. 🙂

    pavit Moderator
    #567364

    Hi

    This part of code is in this file templatesja_hawkstoretplsblocksmainbody.php

    <!-- MAIN CONTENT -->
    <div id="t3-content" class="t3-content <?php echo $this->getClass($layout, $col) ?>" <?php echo $this->getData ($layout, $col++) ?>>
    <div class="main-container">
    <?php if ($this->countModules('masshead')) : ?>
    <!-- MassHead -->
    <div class="t3-masshead">
    <jdoc:include type="modules" name="<?php $this->_p('masshead') ?>" style="raw" />
    </div>
    <!-- //MassHead -->
    <?php endif ?>
    <jdoc:include type="message" />
    <jdoc:include type="component" />
    </div>
    </div>
    <!-- //MAIN CONTENT -->

    7of9 Friend
    #567594

    Hi @pavit ,

    Thanks for the reply. So what is the id of the main div? Is it “t3-content”?

    7of9 Friend
    #732704

    Hi @pavit ,

    Thanks for the reply. So what is the id of the main div? Is it “t3-content”?

    pavit Moderator
    #567604

    <em>@7of9 469414 wrote:</em><blockquote>Hi @pavit ,

    Thanks for the reply. So what is the id of the main div? Is it “t3-content”?</blockquote>

    Reading from this page

    You can see that the element DIV with ID="main" wraps the jdoc of type "component" in both cases. It's exactly what we need

    In this case then the ID is “t3-content”

    pavit Moderator
    #732714

    <em>@7of9 469414 wrote:</em><blockquote>Hi @pavit ,

    Thanks for the reply. So what is the id of the main div? Is it “t3-content”?</blockquote>

    Reading from this page

    You can see that the element DIV with ID="main" wraps the jdoc of type "component" in both cases. It's exactly what we need

    In this case then the ID is “t3-content”

    7of9 Friend
    #567844

    Hi @pavit ,

    What about the code in component.php?
    I am looking for this code in the file, but I cannot find it:

    ..
    <body class="contentpane">
    <div id="all">
    <div id="main">
    <jdoc:include type="message" />
    <jdoc:include type="component" />
    </div>
    </div>
    </body>
    ..

    Thanks in advance.

    pavit Moderator
    #567848

    Hi

    The code you are searching for is in this file templatesja_hawkstoretplsblocksmainbody.php and the ID is “t3-content”

    7of9 Friend
    #568177

    Hi pavit,

    Thanks for you help. I found out that the div ID I needed was “products”, since “t3-content” was not working correctly, because the css was messing after the ajax update. If anybody uses this extension, note, thet the div you are looking for is in category details view and called “products”, so it does not work on other VM views, like Front Page, because that div ID does not exist there.

    7of9 Friend
    #733273

    Hi pavit,

    Thanks for you help. I found out that the div ID I needed was “products”, since “t3-content” was not working correctly, because the css was messing after the ajax update. If anybody uses this extension, note, thet the div you are looking for is in category details view and called “products”, so it does not work on other VM views, like Front Page, because that div ID does not exist there.

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 10 replies, has 2 voices, and was last updated by  7of9 9 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum