I was in SiteMap for another project today.  I'll add a flag on the SiteMap
object that facilitates / rather than /index.

On Wed, Dec 30, 2009 at 7:47 PM, Alex Black <a...@alexblack.ca> wrote:

> Would it be reasonable for me to open a ticket to allow people to
> change this default behaviour?  Its important to me that when people
> are at our site's home page, its just "http://oursite.com";, not
> "http://oursite.com/index";.
>
> Then for people who are using a container where this is a problem, it
> will work fine, but others can avoid the "index" in the url.
>
> - Alex
>
> On Dec 30, 12:49 pm, David Pollak <feeder.of.the.be...@gmail.com>
> wrote:
> > On Wed, Dec 30, 2009 at 9:43 AM, Alex Black <a...@alexblack.ca> wrote:
> > > > In a 1.1-M8 based project,
> > >http://localhost:8080/andhttp://localhost:8080/indexbothcause the
> "Home"
> > > menu item to be
> > > > non-clickable.  The definition of the Home menu item is
> Menu(Loc("Home",
> > > > List("index"), "Home"))
> >
> > > Understood.
> >
> > > However, in this scenario, when the user clicks on "home" they get
> > > taken tohttp://localhost:8080/index, I think it would be even better
> > > if they could be taken tohttp://localhost:8080/.  Its mostly
> > > aesthetic, but its cleaner/shorter, and it saves having two URLs for
> > > the same thing (e.g.http://localhost:8080/and
> > >http://localhost:8080/index).
> >
> > > Is there any way to do that while maintaining the nice Sitemap feature
> > > that makes Home non clickable?
> >
> > As I said already, we had thehttp://localhost:8080/as the place where the
> > top level takes you.  That broke some containers (I don't remember the
> > specifics) so the top level is /index.  There's no way to change it and
> it
> > is this way for the reason that I've now had to state twice in two days.
> >
> >
> >
> >
> >
> > > - Alex
> >
> > > > > > Also, why do you using "Pair(List(...), false)"?
> >
> > > > > > Pair is deprecated/frowned on... it's much more idomatic to use
> > > > > (List(...),
> > > > > > false), but that's not needed as there's an implicit conversion
> you
> > > can
> > > > > > simply declare the List().
> >
> > > > > Thanks for the tip.
> >
> > > > > > > to
> >
> > > > > > >    Menu(Loc("index", Pair("" :: Nil, false), "Home")) ::
> >
> > > > > > > So that my "Home" link goes to mysite.com/ instead of
> mysite.com/
> > > > > > > index.  But, I notice, when you're at mysite.com/ the sitemap
> > > doesn't
> > > > > > > show "Home" as selected, is there a way to fix that? Perhaps
> I've
> > > got
> > > > > > > something wrong here.
> >
> > > > > > > Thanks,
> >
> > > > > > > - Alex
> >
> > > > > > > --
> >
> > > > > > > You received this message because you are subscribed to the
> Google
> > > > > Groups
> > > > > > > "Lift" group.
> > > > > > > To post to this group, send email to lift...@googlegroups.com.
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com>
> >
> > > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com>
> <liftweb%252bunsubscr...@googlegroups.com<liftweb%25252bunsubscr...@googlegroups.com>
> >
> >
> > > > > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com>
> <liftweb%252bunsubscr...@googlegroups.com<liftweb%25252bunsubscr...@googlegroups.com>
> >
> > > <liftweb%252bunsubscr...@googlegroups.com<liftweb%25252bunsubscr...@googlegroups.com>
> <liftweb%25252bunsubscr...@googlegroups.com<liftweb%2525252bunsubscr...@googlegroups.com>
> >
> >
> > > > > > > .
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/liftweb?hl=en.
> >
> > > > > > --
> > > > > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > > > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > > > > Follow me:http://twitter.com/dpp
> > > > > > Surf the harmonics
> >
> > > > > --
> >
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Lift" group.
> > > > > To post to this group, send email to lift...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com>
> >
> > > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com>
> <liftweb%252bunsubscr...@googlegroups.com<liftweb%25252bunsubscr...@googlegroups.com>
> >
> >
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/liftweb?hl=en.
> >
> > > > --
> > > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > > Follow me:http://twitter.com/dpp
> > > > Surf the harmonics
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Lift" group.
> > > To post to this group, send email to lift...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/liftweb?hl=en.
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Surf the harmonics
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to