Hi,
Just two more question.
1. I'd like to offer logout for users. If I add an logout menu within
the rest of the menu, and then define the function like this
;;;other menu stuff
(list "Logout" (the-end) "logout")
(defun the-end ()
(setf (webapp-session-value 'user) nil)
(weblocks:logout)
(hunchentoot:remove-session hunchentoot:*session*))
Then I get an endless loop. It seems that navigation tries to gather
all of the submenus and their functions, but when it reaches the
logout, it... logouts. And then starts again. What is the best way to
make an logout function.
2. What is the difference between
('menuitem (menu-item))
and
("Menu item" (menu-item) "menuitem")?
If I understand it correctly, if I use the 'menuitem, then navigation
will display "menuitem" on the web page which will lead to /menuitem
URI, but if I use "Menu item" "menuitem" then navigation will display
"Menu item" and use /menuitem as URI. So, the first one is menu label,
and the second is URI, right?
--
You received this message because you are subscribed to the Google Groups
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/weblocks?hl=en.