Child pages
  • Changing the appearance of the portal login links
Skip to end of metadata
Go to start of metadata

Our requirements are that students and staff login via CAS but any external people must login directly to Sakai, using an account created for them.

I wanted to make the main login link larger than the secondary one. But I couldn't. The code only had a single div around both links so any change I made affected both. I went hunting and found where this part of the code is drawn from.

$SAKAI-SRC/portal/portal-render-engine-impl/pack/src/webapp/vm/defaultskin/macros.vm

In there are a bunch of macros which are used to render the portal. I found the offending block (loginLinks), and added id="loginLink1" and id="loginLink2" to each link.
This wraps each loginlink with its own id field so each can be styled individually.

The CSS for these divs is already in the portal, its just empty. Perhaps the corresponding macros.vm edit was just overlooked. Anyway I've asked for this to be committed to the main branch so hopefully this bit of text will be out of date eventually! in the meatime, edit that file, run maven sakai in the $SAKAI-SRC/portal/ directory to rebuild and deploy, restart Sakai, and style away!

Here's the whole macro block.