[Building Sakai] How to programmatically change Sakai logo

David Wafula Wanyonyi DavidWafula.Wanyonyi at wits.ac.za
Wed Apr 23 00:26:23 PDT 2014


This is probably an overkill for just changing the logo, but you could have different skins with different logos specified in css and switch to each of them appropriately:

String currentSiteId = toolManager.getCurrentPlacement().getContext();
        Site siteEdit  = siteService.getSite(currentSiteId);
        siteEdit.setSkin(theDesiredSkinTheme);
        try {
            siteService.save(siteEdit);
        } catch (PermissionException ex) {
            ex.printStackTrace();
        }

Then reload/refresh the site for the changes to visually show. We use this to  dynamically  display different themes in a site depending on user action.
Regards,
daivd

________________________________
From: Jehan Badshah [jehan.badshah at nu.edu.pk]
Sent: Wednesday, April 23, 2014 9:16 AM
To: Miguel Carro Pellicer
Cc: sakai-dev Developers
Subject: Re: [Building Sakai] How to programmatically change Sakai logo

I want to change it programatically on run time, and display different logo on different occasions.

Thanks


2014-04-23 12:15 GMT+05:00 Miguel Carro Pellicer <miguel at educlever.es<mailto:miguel at educlever.es>>:
You only need to edit a CSS file (reference\library\skin\your_skin\portal.css inside the SRC or library\skin\your_skin\portal.css inside tomcat's installation).

Search "logo.png" inside that file.

Miguel.



El 23/04/2014 6:48, Jehan Badshah escribió:
Dear All

I want to programmatically change Sakai logo.

Any help ?

Thanks




_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"

--
[Logo]

Miguel Carro Pellicer[cid:part2.04040409.07030500 at educlever.es]<http://es.linkedin.com/pub/miguel-carro-pellicer/38/502/b92>
IT Consultant - Elearning solutions


Phone: +34 - 686266485
Email: miguel at educlever.es<mailto:miguel at educlever.es>


No me imprimas si no es necesario. Protejamos el medio ambiente

AVISO LEGAL: El contenido de este mensaje de correo electrónico, incluidos los ficheros adjuntos, es confidencial y está protegido por el artículo 18.3 de la Constitución Española, que garantiza el secreto de las comunicaciones.
Si usted recibe este mensaje por error, por favor póngase en contacto con el remitente para informarle de este hecho, y no difunda su contenido ni haga copias.
*** Este mensaje ha sido verificado con herramientas de eliminación de virus y contenido malicioso ***
Este aviso legal ha sido incorporado automáticamente al mensaje.




--

Regards
----------------------------------------------------
Jehan Badshah | Team Lead
Sakai Learning and Teaching Environment (SLATE)
URL: http://slate.nu.edu.pk,
National University of Computer and Emerging Sciences
UAN: +92 (0) 51 - 111 128 128 ext 352 and 344



<table width="100%" border="0" cellspacing="0" cellpadding="0" style="width:100%;"> 
<tr>
<td align="left" style="text-align:justify;"><font face="arial,sans-serif" size="1" color="#999999"><span style="font-size:11px;">This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorised signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary. </span></font></td>
</tr>
</table>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140423/21a2e6bd/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AF-BRAND---EDUCLEVER-01.jpg
Type: image/jpeg
Size: 17251 bytes
Desc: AF-BRAND---EDUCLEVER-01.jpg
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140423/21a2e6bd/attachment.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.jpg
Type: image/jpeg
Size: 1103 bytes
Desc: linkedin.jpg
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140423/21a2e6bd/attachment-0001.jpg 


More information about the sakai-dev mailing list