AnsweredAssumed Answered

Add categories in share details view

Question asked by titanikoktf on Apr 6, 2011
Latest reply on May 6, 2011 by mikeh
Hi everybody,

I am trying to extend the details view adding some of my aspect and properties changing the file documentlist-min-js. I have done succesfully when I add some custom properties but I am not able to add categories.
In custom aspect I have done this:
if(typeof(record.scFuente) != 'undefined'){
desc += '<div class="detail">';
desc += '<span class="item"><em>' + scope.msg("details.modified.on") + '</em> ' + $date(record.modifiedOn) +  </span>';
desc += '<span class="item"><em>' + scope.msg("details.modified.by") + '</em> ' + $userProfile(record.modifiedByUser, record.modifiedBy) + '</span>';
desc += '<span class="item"><em>' + scope.msg("details.version") + '</em> ' + record.version + '</span>';
desc += '</div><div class="detail">';
desc += '<span class="item"><em>A+o de publicacion</em> ' + record.scAnopublicacion + '</span>';
desc += '<span class="item"><em>Tipo documento</em> ' + record.scTipodocumentos+ '</span>';
desc += '<span class="item"><em>Fuente</em> ' + record.scFuente + '</span>';
desc += '<span class="item"><em>Proyecto/Producto/Empresa</em> ' + record.scProyectoproductoempresa + '</span>';
desc += '</div><div class="detail">';
desc += '<span class="item"><em>' + scope.msg("details.description") + '</em> ' + $links($html(description)) + '</span>';
desc += '</div>';
}

And the code for adding tags is:
tags = record.tags;
desc += '<div class="detail"><span class="item tag-item"><em>' + scope.msg("details.tags") + '</em> ';                     if (tags.length > 0)
{
     for (i = 0, j = tags.length; i < j; i++)
      {
       tag = $html(tags[i]);
       desc += '<span class="tag"><a href="#" class="tag-link" rel="' + tag + '" title="' + tags[i] + '">' + tag + '</a></span>' + (j - i > 1 ? ", " : "");
       }
}
else
{
     desc += scope.msg("details.tags.none");
}

I am not able to change this code for showing the categories. Anybody gets this thing!

Thanks in advance and sorry about my english.
Best regards!

Jose A. Lopez

Outcomes