WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
// Check if we should only list posts from a certain group if(isset($_GET['g']) AND is_numeric($_GET['g'])) { $query_extra = " AND group_id = '".$_GET['g']."'"; } else { $query_extra = ''; } // Get settings
// Check if we should only list posts from a certain group if(isset($_GET['g']) AND is_numeric($_GET['g'])) { $query_extra = " AND group_id = '".$_GET['g']."'"; } elseif(isset($_GET['m']) AND is_numeric($_GET['m']) AND isset($_GET['y']) AND is_numeric($_GET['y']) AND isset($_GET['method']) AND is_numeric($_GET['method'])){ $startdate = mktime(0,0,0,$_GET['m'],1,$_GET['y']); $enddate = mktime(0,0,0,$_GET['m']+1,1,$_GET['y']); switch($_GET['method']){ case 0: $date_option = "posted_when"; break; case 1: $date_option = "published_when"; break; } $query_extra = " AND ".$date_option." >= '$startdate' AND ".$date_option." < '$enddate'"; } else { $query_extra = ''; } // Get settings
Guys,The ?g=3?g=3 is not in the view.php but in the table settings in the backend of WB.The breadcrumb links are being built from the original link. but when called from a "group link" it will include the group parameter too.In the post header (settings button of newspage) the links are built using:Code: [Select]<td valign="top"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>The [back] link will have the g= parameter (what is not right) and so the second level [back] will have two of them.Change that line in:Code: [Select]<td valign="top"><a href="/pages/artikel.php">[PAGE_TITLE]</a> >> <a href="/pages/artikel.php?g=[GROUP_ID]">[GROUP_TITLE]</a></td>And it is fixed.Note: I used /pages/artikel.php in this example because that was in the "problem" page that spida reported. For other site, use whatever link is your news/blog page.That will fix it.Ruud
<td valign="top"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
<td valign="top"><a href="/pages/artikel.php">[PAGE_TITLE]</a> >> <a href="/pages/artikel.php?g=[GROUP_ID]">[GROUP_TITLE]</a></td>