WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Make PrevPage2 & NextPage2 droplets work on hidden pages
  • Print
Pages: [1]   Go Down

Author Topic: Make PrevPage2 & NextPage2 droplets work on hidden pages  (Read 5168 times)

Offline Kaliphornia

  • Posts: 40
  • Gender: Male
    • Gweb
Make PrevPage2 & NextPage2 droplets work on hidden pages
« on: June 05, 2013, 02:14:36 AM »
Hey all,

I have a little problem. I'm using the PrevPage2 and NextPage2 droplets to go back and forth between pages on one of my websites. It works fine unless I call the droplets from a hidden page:
http://www.smudgedesignco.com/pages/branding/aod-van-wrap.php

Then the Next arrow goes back to the homepage and the Prev arrow goes to the very last page of the site. It's because the page in the link above is hidden.

Anyone know how to alter the droplets so they treat hidden pages like they're not hidden? Any help would be greatly appreciated.

Thanks!
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Make PrevPage2 & NextPage2 droplets work on hidden pages
« Reply #1 on: June 05, 2013, 10:42:38 AM »
These droplets are using show_menu2 for getting the next item.
Show_menu2 by default will not show hidden pages (that is why they are set hidden).

Try adding SM2_SHOWHIDDEN to the second SM2_ALL parameter in all show_menu2 calls.
Code: (untested) [Select]
show_menu2(0,SM2_ROOT,SM2_ALL,SM2_ALL|SM2_SHOWHIDDEN ,',[url]','','','','','');and
Code: (untested) [Select]
show_menu2(0,SM2_ROOT,SM2_ALL,SM2_ALL|SM2_SHOWHIDDEN,',[page_id]','','','','','');
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Make PrevPage2 & NextPage2 droplets work on hidden pages
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2