Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

vijay's Avatar

vijay

Beigetreten 15. Apr. 2021

·

Letzte Aktivität 27. Okt. 2021

Folge ich

0

Follower

0

Gesamtaktivitäten

7

Stimmen

0

Abonnement

1

AKTIVITÄTSÜBERSICHT

Neueste Aktivität von vijay

vijay hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

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}}

 

Kommentar anzeigen · Gepostet 17. Dez. 2015 · vijay

0

Follower

0

Stimmen

0

Kommentare


vijay hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

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?

Kommentar anzeigen · Gepostet 16. Dez. 2015 · vijay

0

Follower

0

Stimmen

0

Kommentare


vijay hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

Sure I will.

Kommentar anzeigen · Gepostet 14. Dez. 2015 · vijay

0

Follower

0

Stimmen

0

Kommentare


vijay hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

By the way Thanx for your fast reply..:)

 

Kommentar anzeigen · Gepostet 14. Dez. 2015 · vijay

0

Follower

0

Stimmen

0

Kommentare


vijay hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

Hi Paul , Are you sure ? Because I have to deliver this project to my client and from morning I am stuck into it.

Kommentar anzeigen · Gepostet 14. Dez. 2015 · vijay

0

Follower

0

Stimmen

0

Kommentare


vijay hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

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? 

Kommentar anzeigen · Gepostet 14. Dez. 2015 · vijay

0

Follower

0

Stimmen

0

Kommentare