Embed a channel into your nested-tables layout

5
Average: 5 (1 vote)

Lets say you have a channel that you want everyone to execute each time they visit a tab within Luminis. An example could be a channel that tracks certain details about a person's visit. You can have this channel embedded into your nested-tables (or whatever) layout.

Within the nested-tables.xsl file you may have noticed the following element.

<channel fname="org/jasig/portal/channels/cpicons"/>

The element channel is not a known HTML, XHTML, nor XML element but is known to the serialiser that produces the HTML the users gets based on this stylesheet and the supplied XML stream. In this case this is a directive to include the output of the channel with a functional name of org/jasig/portal/channels/cpicons. In this particular case this is the channel that is responsible for outputting the icons across the top (e-mail, calendar, groups, and admin).

If you can think of another type of channel you wish to include on each page (perhaps a local weather channel) all you need to do is when defining the channel give it a functional name and then pick a spot within the nested-tables.xsl to have the channel appear using the above code (changing the value of fname accordingly). You may also wish to select the " Channel Functional Name Accessible Only" option so that users are unable to place two copies of the channel on the same tab.

Luminis version this is known to work on: III.3.3.64

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Embed a channel

This is incredible. I just found this post, not sure how I missed it before, but this is just what I needed.

I've released a new version of our portal - a completely hacked up version that looks NOTHING like luminis at all (you can use our one click guest account if you want to see it - MCSQUARE)

The greatest feature of this is that it integrates the Personal / Campus / Group announcements INTO the header portion of the portal, so you don't have to waste real estate with 2 channels, or even William's 1 channel that lists everything.

This was done with a JSP page that simply queries the database and fades in and out the announcements. Complete with flyouts and a read announcement window.

The down side to it is that I couldn't get the ROLEs to work so everyone sees everything fading in and out, and can read all the messages.

Now that I found this channel code, I can rework the combined announcement channel, essentially rewriting it to fit our needs here, and it'll be role based !

William, I owe you a drink at summit this year!

-Jon

Ah good a drink :)

Glad this was helpful to you and I like what you have done.

Have you received any feedback from your users with this new method of displaying announcements? I think I may propose this as an idea for us as well.