Topic: Stop Wayfinder hiding secure pages until logged in?  (Read 1895 times)

Pages: [1]   Go Down

#1: 17-Mar-2009, 11:58 AM

Moderators

Onesmarthost
Posts: 530

I love MODx!

WWW
Hi,

I'm working on a new website and currently have wayfinder running a menu, wayfinder is hiding the members only pages until a member logs in.

Is there anyway for me to easily configure wayfinder to still list secure pages in the menu?

Ideally we would like visitors to see the links and be able to click on them and then be prompted to log in, if it's secure.

Thanks
Aaron Wardle

http://www.onesmarthost.co.uk/modx-hosting-offer.html // UK Web Hosting with lots of MODx Love..
Free MODx EVO 1.0.2 Install
Free transfer from existing web host!

#2: 17-Mar-2009, 12:56 PM


bunk58
Posts: 1,751

David Bunker

WWW
Aaron,
This is untested so backup first! but you could try changing :
Code:
$sql = "SELECT DISTINCT {$fields} FROM {$tblsc} sc LEFT JOIN {$tbldg} dg ON dg.document = sc.id WHERE sc.published=1 AND sc.deleted=0 AND ({$access}){$menuWhere} AND sc.id IN (".implode(',',$ids).")
to :
Code:
$sql = "SELECT DISTINCT {$fields} FROM {$tblsc} sc LEFT JOIN {$tbldg} dg ON dg.document = sc.id WHERE sc.published=1 AND sc.deleted=0 {$menuWhere} AND sc.id IN (".implode(',',$ids).")
at around line 351 of wayfinder.inc.php

#3: 17-Mar-2009, 01:39 PM

Moderators

Onesmarthost
Posts: 530

I love MODx!

WWW
Thanks for that David.

I've just applied your hack direct to the WayFinder php file and it works a treat I was going to make an on and off switch but Shane has just messaged me and has put in a feature request for just that Smiley

http://modxcms.com/forums/index.php/topic,33904.msg206872.html#msg206872

Thanks
Aaron Wardle

http://www.onesmarthost.co.uk/modx-hosting-offer.html // UK Web Hosting with lots of MODx Love..
Free MODx EVO 1.0.2 Install
Free transfer from existing web host!

#4: 18-Mar-2009, 03:23 AM


bunk58
Posts: 1,751

David Bunker

WWW
I thought I'd done the hack before, just couldn't be sure.
Thanks for the link.
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.