Suppose we have a tab for students that we need to turn on and off once in a while. Is there a way to do this in Luminis 4?
If I go to the layout owner for that tab, I do not see an 'enable/disable' option.
We just don't want to have to recreate the tab everytime we want it to show up.....
Or would I create a separate fragment for this tab, assign the fragment to students, and enable/disable the fragment?
Maybe I just answered my own question?
Input would be appreciated!!
Comments
probably need a separate fragment
It sounds like your going to need a separate fragment(role). We have an emergency-lo role at our institution that we can turn on in case of a campus emergency. We switch the enabled flag in the UP_DLM_FRAGMENTS table in the portal db. However I think it takes a portal restart for the change to take effect.
New fragment
You will need a new fragment. However, you cannot base the fragment eligibility on the Student role, or the students will see it all the time anyway. So you also need a new role.
We do this for things like elections, where a "Vote" tab would appear and then disappear over time. We created an "eligiblevoter" role, and based the new fragment on that role. Login as the fragment owner and set up the new tab as desired.
To grant this new tab to all students when it is student election time, we:
1) Dump out the list of all users with student role
2) Add these users to the eligibilevoter role
3) Run the election
4) When the election is over, remove the users from the role
We have scripts to automate (1), (2) and (4). We also use our identity management system to automate this, if it's not a point-in-time use (our ID management system can add/drop user roles based on custom eligibility rules).
Todd
could also use a dummy role
If I'm understanding his need, he could set up a new fragment as you suggest, and set its audience to the student role. When he doesn't want the students to see it, change the audience to the dummy role (to which no one belongs).
I haven't tried this, but it looks like you can change the fragment audience at any time. I don't know how you'd automate this though (where is layout fragment audience stored -- database or ldap?).