[Seaside] naming-urls . yes, i am confused..

sergio_101 sergiolist at village-buzz.com
Tue Apr 6 20:29:39 UTC 2010


i almost have this..

here's what i want to do:

my app has a main component called: IMMain

i would like to have the site administration component (IMAdmin) be called at:

/seaside/app/Admin

i played with the doco, am really close..

in IMMain, did this:

initialRequest: aRequest
	super initialRequest: aRequest.
	(aRequest url includesSubString: '/Admin')
		ifTrue: ["redirect to IMAdmin"].

my questions..

is my use of includeSubString too kludgey?

how do i do a redirect to IMAdmin? IMAdmin has canBeRoot set to true...

is this how i go about doing it?

i didn't see a really good place to use updateUrl in this case..

thanks!


-- 

----
peace,
sergio
photographer, journalist, visionary

http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


More information about the seaside mailing list