showsection droplet works "strangely"

Argos

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

erpe0812

Maybe it is a good idea to post this in the droplet thread so the author gets notice of this.

rgds

erpe


avitaly

I suppose it is so, because in the second page (http://agnesevardanega.altervista.org/pages/didattica/sociologia.php) the first droplet is in the main content section, and it was replicated by the droplets in the index.php (which are collocated after the main content and before the footer).

:? Maybe the droplet needs to be corrected

crnogorac081

I didnt tested that, bit it would be a great dissadvantage :)

cheers
Web developer

avitaly

#3
It's a kind of magic!  :-D

grazie

PS - added - evidently, it is not possible to use more than one in each page ... and it seems a "new feature" in wb 2.8

crnogorac081

Hi,

I had the same issue here :))

It seems you cant use same droplet more than once in template..

I solved it by replacing droplet code with this code:


<?php
// Change to the number you need!
$section_id 65;

// Get requested section for requested page
$query_sections $database->query("SELECT section_id,module FROM ".TABLE_PREFIX."sections WHERE section_id = '$section_id' ");

// Make sure there is one
if($query_sections->numRows() > 0) {
    
$section $query_sections->fetchRow();
    
$section_id $section['section_id'];
    
$module $section['module'];
    require(
WB_PATH.'/modules/'.$module.'/view.php');

?>



try, it should work for you too :)

cheers
Web developer

avitaly

After having upgraded to WB 2.8, "showsection" doesn't work properly. From index.php, it takes the last section of the same page in whicn it is included. So, for example:

Quote<div class="container">

<!-- bottom left information -->
   <div class="bottomcolumn">
   [[showsection?section=175]]
   </div>

<!-- bottom center information -->
   <div class="bottomcolumn">[[showsection?section=176]]</div>

<!-- bottom right information -->
   <div class="bottomcolumn bottomright">[[showsection?section=177]]</div>
           
       </div>

In the home page (http://agnesevardanega.altervista.org/), you may see section 175 repeated; in another page, where showsection is used before (in the main content: http://agnesevardanega.altervista.org/pages/didattica/sociologia.php), it is this last section to be repeated.

What is happening?