[Building Sakai] How to programmatically change Sakai logo

Steve Swinsburg steve.swinsburg at gmail.com
Thu Apr 24 04:42:51 PDT 2014


Yeah I did this with a servlet a while back.  Point the image at the
servlet and have the servlet lookup what it needs from sakai.

Cheers
Steve

sent from my mobile device
On 24/04/2014 11:08 AM, "John Bush" <jbush at anisakai.com> wrote:

> set your skin to load the image from something that can serve the image
> dynamically in side sakai or otherwise.  Sorta depends on when you want to
> change it and why.  Might be some javascript way to rewrite the dom as
> well, not sure.
>
>
> On Wed, Apr 23, 2014 at 12:26 AM, David Wafula Wanyonyi <
> DavidWafula.Wanyonyi at wits.ac.za> wrote:
>
>>  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>:
>>
>>>  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 listsakai-dev at collab.sakaiproject.orghttp://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>
>>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>>>
>>>
>>> --
>>>   [image: Logo]
>>>
>>> Miguel Carro Pellicer<http://es.linkedin.com/pub/miguel-carro-pellicer/38/502/b92>
>>> *IT Consultant - Elearning solutions*
>>>
>>>  Phone: +34 - 686266485
>>> Email: 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
>>
>>
>>      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.
>>
>>
>> _______________________________________________
>> sakai-dev mailing list
>> 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 with a subject of
>> "unsubscribe"
>>
>
>
>
> --
> John Bush
> 602-490-0470
>
> ** This message is neither private nor confidential in fact the US
> government is storing it in a warehouse located in Utah for future data
> mining use cases should they arise. **
>
> _______________________________________________
> sakai-dev mailing list
> 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 with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140424/fcfa2f21/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AF-BRAND---EDUCLEVER-01.jpg
Type: image/jpeg
Size: 17251 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140424/fcfa2f21/attachment.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.jpg
Type: image/jpeg
Size: 1103 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140424/fcfa2f21/attachment-0001.jpg 


More information about the sakai-dev mailing list