We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23363
    • 43 Posts
    Retrieve,... sounds a bit more professional indeed for a select statement Thanx.
    I copied some code from the save_webuser_processor and was quit happy that I got it working .:-)
      • 28825
      • 61 Posts
      Quote from: BobRay at Oct 01, 2007, 04:36 PM

      Quote from: pierun at Oct 01, 2007, 04:14 PM

      I hope somebody can help me with this;

      I want to make a personal menu for websusers, but I can’t figure out how to retrieve the webuser startpage, so i can use that as the start id in wayfinder. The menu itself is a chuck, with the wayfinder call inside.

      Thanx,

      Jeroen

      The document IDs are listed next to the document names in the document tree at the left of the manager screen.

      I do something similar on one web site by using the Personalize snippet and two different wayfinder chunks. Personalize determines if the user is logged in or not.

      Here’s the Wayfinder chunk:

       [!Personalize? &yesChunk=`LoggedInWayfinderChunk` &noChunk=`NotLoggedInWayfinderChunk` &ph=`user`!]
      

      The `user` placeholder lets me put "You are logged in as [user]" at the top of the logged in menu.

      Here’s the LoggedInWayfinderChunk:
      You are logged in as: [+user+]<hr>
      [[Wayfinder?&startId=`0`&level=2 &titleOfLinks=`description`]]
      


      Here’s the NotLoggedInWayfinderChunk:

      [[Wayfinder?&startId=`0`&level=1 &titleOfLinks=`description`]]
      


      In my case, the logged in user sees the same menu but with an extra level visible. I just made the docs hidden from non-logged-in users be subdocuments. You’d probably want to leave out &level and just change the &startid to be the document at the top of your menu for logged-in users.

      Bob




      Great Tip BobRay. Definitely opens up some potential for me vis-a-vis Wayfinder. These tools are so damn powerful.... laugh
        "Don&#39;t waste your time or time will waste you"