cancel
Showing results for 
Search instead for 
Did you mean: 

use images as links to sites

sjoerdjump
Champ in-the-making
Champ in-the-making
after toying around with share I couldn't find the following (if possible at all)

It's possible to create a page for people with the share sites they have acces too. Including the link to the site.
But is it possible to display an image instead of a link? I can't find an answer to this question using the search.

Thanks in advance,

sjoerd
7 REPLIES 7

stevegreenbaum
Champ in-the-making
Champ in-the-making
When a user first enters Share they are presented the user dashboard.  There is a Sites dashlet that can be added to that page that will list the sites which they can already access.  Just use the customize button on that page to add the dashlet to the page.

sjoerdjump
Champ in-the-making
Champ in-the-making
When a user first enters Share they are presented the user dashboard.  There is a Sites dashlet that can be added to that page that will list the sites which they can already access.  Just use the customize button on that page to add the dashlet to the page.
this i know, but thanks!
I want to create images for my links, instead of text links.

stevegreenbaum
Champ in-the-making
Champ in-the-making
Perhaps create a custom dashlet based on the OOTB My Sites dashlet.  I would modify the controller/html to substitute your site specific graphic image for the default globe.  Hope that helps.

sjoerdjump
Champ in-the-making
Champ in-the-making
Perhaps create a custom dashlet based on the OOTB My Sites dashlet.  I would modify the controller/html to substitute your site specific graphic image for the default globe.  Hope that helps.
HI Steve, thanks for this replay.
Could you be a little more specific?

What i have in mind is that for each site that i have acces to i see a different image.

For instance

test (displayed as a link)
would become
|———————–|
|         TEST            |
|———————–|

and so on.

So, not just the standard Globe, but an unique image per link. (and i dont mind creating the images per link)

Hope this is some more clearer!

Sjoerd

sjoerdjump
Champ in-the-making
Champ in-the-making
anyone?

stevegreenbaum
Champ in-the-making
Champ in-the-making
The My Sites dashlet is defined in a descriptor file called my-sites.get.desc.xml and has other related files you will want to look at: my-sites.css, my-sites.get.html.ftl and my-sites.get.js.  In the css there is a reference to a png file called site-24.png which is the default globe image. 

The best I can see is that you will need to modify these files to pull in your site specific images.  I don't know of an easier method, but perhaps someone else has an idea.

sjoerdjump
Champ in-the-making
Champ in-the-making
Hi Steven, thanks a lot for this!

I tried to figure out from here where to go next.
It seems that the list of sites are created with a standard set of properties:

my-sites.get.html.ftl

{
         sitePreset: '${site.sitePreset?js_string}',
         shortName: '${site.shortName?js_string}',
         title: '${site.title?js_string}',
         description: '${site.description?js_string}',
         isFavourite: ${site.isFavourite?string},
         <#if imapServerEnabled>isIMAPFavourite: ${site.isIMAPFavourite?string},</#if>
         isSiteManager: ${site.isSiteManager?string}
      }

Now, woulsd it be possible to assign the CSS to the output of that script?
In the browser you see:



<div id="page_x002e_component-1-2_x002e_user_x007e_admin_x007e_dashboard">


<script type="text/javascript">//<![CDATA[

new Alfresco.dashlet.MySites("page_x002e_component-1-2_x002e_user_x007e_admin_x007e_dashboard").setOptions(

{

imapEnabled: false,

sites: [

{

sitePreset: 'site-dashboard',

shortName: 'test',

title: 'test',

description: '',

isFavourite: true,



isSiteManager: true

},

{

sitePreset: 'site-dashboard',

shortName: 'test2',

title: 'test2',

description: '',

isFavourite: true,



isSiteManager: true

}

]

}).setMessages({"label.noSites": "No sites to display", "filter.favSites": "Favorite Sites ", "link.deleteSite": "Delete", "header.mySites": "My Sites", "filter.docWorkspaces": "Document Workspaces ", "filter.meetWorkspaces": "Meeting Workspaces ", "link.createSite": "Create Site", "filter.all": "All Sites", "message.siteFavourite.failure": "The favorite setting for the site could not be saved", "link.imap_favouriteSite": "Mark or unmark site as IMAP favorite", "filter.sites": "Sites ", "link.favouriteSite": "Mark or unmark site as favorite"});

new Alfresco.widget.DashletResizer("page_x002e_component-1-2_x002e_user_x007e_admin_x007e_dashboard", "page.component-1-2.user~admin~dashboard");

//]]></script>

If so, i would be able to create a background image based on a specific site-name….