Ok - I looked at the uPortal page William posted ( Change the skin being used for the current session - and I found this -
Persist current state of the user layout and/or preferences:
• (uP_save=(all|preferences|layout))?
Thinking this can't be true - I minimized a channel
It created a url like this -
/cp/tag.dbfb233cebdb5427.render.userLayoutRootNode.uP?uP_tcattr=minimized&minimized_channelId
=n423&minimized_n423_value=true
Yes, its ugly (and I threw a break in there for formating purposes)
I left it up in the address bar and tacked this to the end &uP_save=all then hit enter.
logged out of the portal and closed my browser
Logged back in and the freakin CHANNEL STAYED MINIMIZED!
I thought this wasn't possible?
So all you need to do then is modify the controls template in nested-tables, add this : &uP_save=all to the minimize link and they'll STAY
Can someone else try this for me - I can't believe this is actually working.
We've all been asking for this for years.
- Jon
Comments
Nice work Jon, three cheers
Nice work Jon, three cheers for uPortal origional functionality :) Is there a change in the Database? Maybe a new entry?
I have tested it out and it seems to work. But note: editing your minimize button will not work... (my original attempt). I needed to save the preferences after they changed. So that means there is a requirement for two calls.
THis might also help you with your Theme change saving eh! I think the :preferences is the theme saver and the Layout option is the minimize and layout saver... again I don't know what all has been crippled by Sungard.
We will see if it's still working when the My Cache wears out.
DAVE
Changing the minimize button
Although tacking the value to the end of the minimize button will not help the recently minimised channel it would if you minimised two channels on the page (granted only one would remain minimised).
As such if the uP_save=all was added to the various links a user may follow (tab, logout, min, max, delete(although maybe delete does this anyways), etc) then the settings will get saved as the users moves through the portal as they normally do.
This does however add a decent amount of overhead.
I can see it being of value
I can see it being of value on logout. You save on logout, and when you come back you come back to the same settings, and tab.... It's an interesting idea... The workings of the default channels though makes me wonder though...
Cheers
Dave
Interesting.. for us, when I
Interesting.. for us, when I minimize a channel, add the uP_save=all to the url, logout and back in, the channel doesn't stay minimized. Though, the default tab does get changed to whatever tab I was on. Oddly enough, I can maximize a channel, add the uP_save=all to the url and it when I log back in, I'm taken directly to my maximized channel. It's just the minimize that doesn't seem to work. Weird. (We're at version III.3.3.64.)
Neat, but...
That's certainly a neat feature, and I'd be interested to know exactly what's happening on the database end to save the changes, but there are a few quirks.
It looks like it will only save the minimized state of a channel that the user added and not any layout owner placed channels. Also, it saves the active tab as default tab.
I tried =layout with no noticeable results - logged out and back in and all was as usual, no change. Trying =preferences had the same effect as =all.
But maybe there's some potential here.
user channels only
Now that's interesting - you're correct. I was playing on custom page with my own channels - bizarre.
Maybe the default channels don't exist in the user profile information in the database?
keep digging
Default channels
In looking through the database sometime back default layout channels are not stored in the users profile until they do something with them such as move them to another column. So it makes sense that this function would not touch them.