<![CDATA[ Adapt Wayfinder to display specific doc groups. - My Forums]]> https://forums.modx.com/thread/?thread=25486 <![CDATA[Re: Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130564 Quote from: OpenGeek at Aug 17, 2008, 10:10 PM

<?php
if (!$modx->isMemberOfWebGroup(array('Group1', 'Group2'))) {
    $modx->sendUnauthorizedPage();
}
?>


This worked for me nicely (Thanks Jason), except that my login form toggles to logout message instead of showing content.]]>
0ad Mar 17, 2011, 02:40 AM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130564
<![CDATA[Re: Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130563
thanks, Shane

you can tell that I am new to all this! I will have to have a play and see if this will do it....

L]]>
leapy Sep 05, 2008, 09:33 AM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130563
<![CDATA[Re: Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130562 unless I misunderstand it, Jason’s solution would require me manually calling the snippet on non-public pages. these pages are going to be created dynamically by users - some to be visible in public menus, others to be hidden. many may start ’invisible’ and then migrate to ’public’ over time. it would be a nightmare to manage! smileyNot quite, you would only need to add the snippet to the template and it would automatically redirect if the user was not a member of group defined in the snippet.

Edit: fixed typo]]>
dev_cw Sep 05, 2008, 09:21 AM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130562
<![CDATA[Re: Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130561
sorry, have been away

thanks for the tip but I need this automated along the lines discussed

unless I misunderstand it, Jason’s solution would require me manually calling the snippet on non-public pages. these pages are going to be created dynamically by users - some to be visible in public menus, others to be hidden. many may start ’invisible’ and then migrate to ’public’ over time. it would be a nightmare to manage! smiley

the offer still stands if anyone fancies a go at building adapting wayfinder to do what I need...

thanks all]]>
leapy Sep 05, 2008, 08:54 AM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130561
<![CDATA[Re: Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130560
<?php
if (!$modx->isMemberOfWebGroup(array('Group1', 'Group2'))) {
    $modx->sendUnauthorizedPage();
}
?>
]]>
opengeek Aug 17, 2008, 05:10 PM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130560
<![CDATA[Re: Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130559 I’ll have a look next week and see if that’s achievable.
]]>
bunk58 Aug 17, 2008, 11:52 AM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130559
<![CDATA[Re: Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130558
Thanks for asking for clarification.  Your suggestion in my original post covers my needs now but I can envisage a time when that could change. It would be great to have the additional functionality already available at that time.

My ideal scenario would be to have a &showPrivate (?) parameter which accepts a comma-separated list of specific Document Groups to include within the menu tree. This way I can have menu links to certain private Documents Groups visible to public visitors but, as usual, others would only be visible to logged-in visitors with appropriate access rights.

Given the above, I don’t think an &hidePrivate is necessary.

Does that make sense? If not, let me know....

Thanks

Leapy]]>
leapy Aug 15, 2008, 08:41 AM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130558
<![CDATA[Re: Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130557 Something like &showPrivate for certain docs, while the other private docs stay hidden unless logged in as a web user?]]> bunk58 Aug 15, 2008, 02:37 AM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130557 <![CDATA[Adapt Wayfinder to display specific doc groups.]]> https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130556
I have a need for Wayfinder to include specific Document Groups to the public visitor. The composition of these Doc Groups will vary dynamically so the &includeDocs parameter is inappropriate.

For background, please see
http://modxcms.com/forums/index.php/topic,28082.0.html

I have no idea how much to pay for this adaptation but am completely happy for the code to be made available for all. I can see it perhaps becoming core functionality one day. Basically, I would like to include/exclude specific Doc Groups in the Wayfinder call.

I guess I would need some form of invoice and I would pay via Paypal.

If anyone can give me some rough estimates on price and delivery then that would be very helpful.

Leapy]]>
leapy Aug 15, 2008, 02:24 AM https://forums.modx.com/thread/25486/adapt-wayfinder-to-display-specific-doc-groups#dis-post-130556