-
AuthorPosts
-
7of9 Friend
7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
April 17, 2015 at 6:41 am #205611Hi,
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 Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 17, 2015 at 7:04 am #567364Hi
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 -->1 user says Thank You to pavit for this useful post
7of9 Friend7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
7of9 Friend7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 20, 2015 at 9:16 am #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”
1 user says Thank You to pavit for this useful post
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 20, 2015 at 9:16 am #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”
1 user says Thank You to pavit for this useful post
7of9 Friend7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
April 22, 2015 at 6:47 am #567844Hi @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 Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
7of9 Friend7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
April 24, 2015 at 7:48 am #568177Hi 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.
1 user says Thank You to 7of9 for this useful post
7of9 Friend7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
April 24, 2015 at 7:48 am #733273Hi 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.
1 user says Thank You to 7of9 for this useful post
-
AuthorPosts
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