Pesquisas recentes
Sem pesquisas recentes

vijay
Entrou em 15 de abr. de 2021
·
Última atividade em 27 de out. de 2021
Seguindo
0
Seguidores
0
Atividade total
7
Votos
0
Assinatura
1
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por vijay
vijay comentou,
Hey Paul , here is the updated code where you only "promoted category name" would be visible. I have used jquery to do so
//remove categories if no promoted articles
$('.section-Promoted').each(function(){
if($(this).find('ul').length)
{
console.log("hello");
}
else
{
$("h3",this).remove();
};
});
and here is template
{{#each categories}}
{{#each sections}}
{{#if internal}}
{{/if}}
{{name}}
{{#if articles}}
{{#each articles}}
{{#if promoted }}
{{/if}}
{{/each}}
{{else}}
{{t 'empty'}}
{{/if}}
{{else}}
{{t 'empty'}}
{{/each}}
{{/each}}
Exibir comentário · Publicado 17 de dez. de 2015 · vijay
0
Seguidores
0
Votos
0
Comentários
vijay comentou,
Ya that seems too close. I will try this by the way I am trying to display "Newest community issues". Do you have any idea how to do this?
Exibir comentário · Publicado 16 de dez. de 2015 · vijay
0
Seguidores
0
Votos
0
Comentários
vijay comentou,
Sure I will.
Exibir comentário · Publicado 14 de dez. de 2015 · vijay
0
Seguidores
0
Votos
0
Comentários
vijay comentou,
By the way Thanx for your fast reply..:)
Exibir comentário · Publicado 14 de dez. de 2015 · vijay
0
Seguidores
0
Votos
0
Comentários
vijay comentou,
Hi Paul , Are you sure ? Because I have to deliver this project to my client and from morning I am stuck into it.
Exibir comentário · Publicado 14 de dez. de 2015 · vijay
0
Seguidores
0
Votos
0
Comentários
vijay comentou,
Hey, I have a question related to this post. I have to display promoted articles which I am able to do from the above code but what I want is,suppose I have 5 categories and I want to display only those category which has promoted articles and category name . How can I do so?
Exibir comentário · Publicado 14 de dez. de 2015 · vijay
0
Seguidores
0
Votos
0
Comentários