Ricerche recenti
Nessuna ricerca recente

vijay
Data ingresso 15 apr 2021
·
Ultima attività 27 ott 2021
Seguiti
0
Follower
0
Attività totali
7
Voti
0
Abbonamento
1
PANORAMICA ATTIVITÀ
BADGE
ARTICOLI
POST
COMMENTI NELLA COMMUNITY
COMMENTI AGLI ARTICOLI
PANORAMICA ATTIVITÀ
Ultima attività di vijay
vijay ha commentato,
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}}
Visualizza commento · Data ultimo post: 17 dic 2015 · vijay
0
Follower
0
Voti
0
Commenti
vijay ha commentato,
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?
Visualizza commento · Data ultimo post: 16 dic 2015 · vijay
0
Follower
0
Voti
0
Commenti
vijay ha commentato,
Sure I will.
Visualizza commento · Data ultimo post: 14 dic 2015 · vijay
0
Follower
0
Voti
0
Commenti
vijay ha commentato,
By the way Thanx for your fast reply..:)
Visualizza commento · Data ultimo post: 14 dic 2015 · vijay
0
Follower
0
Voti
0
Commenti
vijay ha commentato,
Hi Paul , Are you sure ? Because I have to deliver this project to my client and from morning I am stuck into it.
Visualizza commento · Data ultimo post: 14 dic 2015 · vijay
0
Follower
0
Voti
0
Commenti
vijay ha commentato,
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?
Visualizza commento · Data ultimo post: 14 dic 2015 · vijay
0
Follower
0
Voti
0
Commenti