looping through authors

Hi
For your first question, maybe this will help: https://www.spip.net/en_article5157.html

For your second question:
<BOUCLE_authors(AUTEURS)>
<BOUCLE_articles(ARTICLES){id_auteur} />[(#TOTAL_BOUCLE|>={10}|oui)#_authors:NOM - #TOTAL_BOUCLE]<//B_articles>
</BOUCLE_authors>

George

Quoting Kamran Mir Hazar <mirhazar.kamran@gmail.com>:

Hello,
Two questions:
1: What is the correct way of looping through authors where they
published or not published articles in a particular section/rubrique,
and list the name if authors. For example, I want to list authors who
have not published articles in section/rubrique 2.
2: How do I sort authors who have published more than for example 10
articles, and list their names?
Thank you
Kamran

PS: I read the following article, but it doesn't help me.
https://www.spip.net/en_article2159.html
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Thank you!
I couldn't figure out how to adapt the code in the article
https://www.spip.net/en_article5157.html for my need. I tried also
using nested loop (https://programmer.spip.net/Nested-loops), but was
not successful.
Answer to the second question is helpful. I could add link to each
author's page.
Thanks again.
Kamran

PS:
I think SPIP developers should write some more useful examples:
https://www.spip.net/en_rubrique251.html

On Wed, Jun 21, 2017 at 5:59 PM, George Kandalaft
<george@middleeastwatch.net> wrote:

Hi
For your first question, maybe this will help:
https://www.spip.net/en_article5157.html

For your second question:
<BOUCLE_authors(AUTEURS)>
<BOUCLE_articles(ARTICLES){id_auteur}
/>[(#TOTAL_BOUCLE|>={10}|oui)#_authors:NOM - #TOTAL_BOUCLE]<//B_articles>
</BOUCLE_authors>

George

Quoting Kamran Mir Hazar <mirhazar.kamran@gmail.com>:

Hello,
Two questions:
1: What is the correct way of looping through authors where they
published or not published articles in a particular section/rubrique,
and list the name if authors. For example, I want to list authors who
have not published articles in section/rubrique 2.
2: How do I sort authors who have published more than for example 10
articles, and list their names?
Thank you
Kamran

PS: I read the following article, but it doesn't help me.
https://www.spip.net/en_article2159.html
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hello

The solution for the first question is almost the same as for the second one

List authors who have not published in rubrique 2:

<BOUCLE_authors(AUTEURS){tout}>
<BOUCLE_test(ARTICLES) {id_auteur}{id_rubrique=2} />
[(#TOTAL_BOUCLE|=={0}|oui) #_authors:NOM]
<//B_test>
</BOUCLE_authors>

I added the {tout} that authors who have published no article at all
will be listed

Torsten

Am 21.06.2017 um 21:31 schrieb Kamran Mir Hazar:

Thank you!
I couldn't figure out how to adapt the code in the article
https://www.spip.net/en_article5157.html for my need. I tried also
using nested loop (https://programmer.spip.net/Nested-loops), but was
not successful.
Answer to the second question is helpful. I could add link to each
author's page.
Thanks again.
Kamran

PS:
I think SPIP developers should write some more useful examples:
https://www.spip.net/en_rubrique251.html

On Wed, Jun 21, 2017 at 5:59 PM, George Kandalaft
<george@middleeastwatch.net> wrote:

Hi
For your first question, maybe this will help:
https://www.spip.net/en_article5157.html

For your second question:
<BOUCLE_authors(AUTEURS)>
<BOUCLE_articles(ARTICLES){id_auteur}
/>[(#TOTAL_BOUCLE|>={10}|oui)#_authors:NOM - #TOTAL_BOUCLE]<//B_articles>
</BOUCLE_authors>

George

Quoting Kamran Mir Hazar <mirhazar.kamran@gmail.com>:

Hello,
Two questions:
1: What is the correct way of looping through authors where they
published or not published articles in a particular section/rubrique,
and list the name if authors. For example, I want to list authors who
have not published articles in section/rubrique 2.
2: How do I sort authors who have published more than for example 10
articles, and list their names?
Thank you
Kamran

PS: I read the following article, but it doesn't help me.
https://www.spip.net/en_article2159.html
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi and thank you!
Based on yours, I made the following one. How can I paginate it?

<BOUCLE_authors(AUTEURS){tout} >
<BOUCLE_test(ARTICLES) {id_auteur}{!id_rubrique=12}
{!id_rubrique=38}{!id_rubrique=76} {!id_rubrique=42} />
[(#TOTAL_BOUCLE|>={1}|oui)
<li><a href="#URL_AUTEUR"[ class="(#EXPOSE)"]>[(#NOM|couper{80})]</a></li> ]
<//B_test>
</BOUCLE_authors>

Kamran

On Thu, Jun 22, 2017 at 12:17 AM, Torsten Willmann
<willmann@netzsachen.de> wrote:

Hello

The solution for the first question is almost the same as for the second one

List authors who have not published in rubrique 2:

<BOUCLE_authors(AUTEURS){tout}>
<BOUCLE_test(ARTICLES) {id_auteur}{id_rubrique=2} />
[(#TOTAL_BOUCLE|=={0}|oui) #_authors:NOM]
<//B_test>
</BOUCLE_authors>

I added the {tout} that authors who have published no article at all
will be listed

Torsten

Am 21.06.2017 um 21:31 schrieb Kamran Mir Hazar:

Thank you!
I couldn't figure out how to adapt the code in the article
https://www.spip.net/en_article5157.html for my need. I tried also
using nested loop (https://programmer.spip.net/Nested-loops), but was
not successful.
Answer to the second question is helpful. I could add link to each
author's page.
Thanks again.
Kamran

PS:
I think SPIP developers should write some more useful examples:
https://www.spip.net/en_rubrique251.html

On Wed, Jun 21, 2017 at 5:59 PM, George Kandalaft
<george@middleeastwatch.net> wrote:

Hi
For your first question, maybe this will help:
https://www.spip.net/en_article5157.html

For your second question:
<BOUCLE_authors(AUTEURS)>
<BOUCLE_articles(ARTICLES){id_auteur}
/>[(#TOTAL_BOUCLE|>={10}|oui)#_authors:NOM - #TOTAL_BOUCLE]<//B_articles>
</BOUCLE_authors>

George

Quoting Kamran Mir Hazar <mirhazar.kamran@gmail.com>:

Hello,
Two questions:
1: What is the correct way of looping through authors where they
published or not published articles in a particular section/rubrique,
and list the name if authors. For example, I want to list authors who
have not published articles in section/rubrique 2.
2: How do I sort authors who have published more than for example 10
articles, and list their names?
Thank you
Kamran

PS: I read the following article, but it doesn't help me.
https://www.spip.net/en_article2159.html
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hello Kamran,

to paginate you have to write the results of the test loop in an array
(https://www.spip.net/en_article5106.html) and use this for an auteurs
loop which you can paginate, for your example this would be:

#SET{authors,#ARRAY}
<BOUCLE_authors(AUTEURS)>
<BOUCLE_test(ARTICLES) {id_auteur}{!id_rubrique IN 12,38,42,76} />
[(#TOTAL_BOUCLE|>={1}|oui)
#SET{authors, #GET{authors}|push{#ID_AUTEUR}}]
<//B_test>
</BOUCLE_authors>

<B_result>
#ANCRE_PAGINATION
<ul>
<BOUCLE_result(AUTEURS){id_auteur IN #GET{authors}}{pagination 10}>
<li><a href="#URL_AUTEUR">[(#NOM|couper{80})]</a></li>
</BOUCLE_result>
</ul>
[<div class="pagination">(#PAGINATION)</div>]
</B_result>

Torsten

Am 22.06.2017 um 03:22 schrieb Kamran Mir Hazar:

Hi and thank you!
Based on yours, I made the following one. How can I paginate it?

<BOUCLE_authors(AUTEURS){tout} >
<BOUCLE_test(ARTICLES) {id_auteur}{!id_rubrique=12}
{!id_rubrique=38}{!id_rubrique=76} {!id_rubrique=42} />
[(#TOTAL_BOUCLE|>={1}|oui)
<li><a href="#URL_AUTEUR"[ class="(#EXPOSE)"]>[(#NOM|couper{80})]</a></li> ]
<//B_test>
</BOUCLE_authors>

Kamran

On Thu, Jun 22, 2017 at 12:17 AM, Torsten Willmann
<willmann@netzsachen.de> wrote:

Hello

The solution for the first question is almost the same as for the second one

List authors who have not published in rubrique 2:

<BOUCLE_authors(AUTEURS){tout}>
<BOUCLE_test(ARTICLES) {id_auteur}{id_rubrique=2} />
[(#TOTAL_BOUCLE|=={0}|oui) #_authors:NOM]
<//B_test>
</BOUCLE_authors>

I added the {tout} that authors who have published no article at all
will be listed

Torsten

Am 21.06.2017 um 21:31 schrieb Kamran Mir Hazar:

Thank you!
I couldn't figure out how to adapt the code in the article
https://www.spip.net/en_article5157.html for my need. I tried also
using nested loop (https://programmer.spip.net/Nested-loops), but was
not successful.
Answer to the second question is helpful. I could add link to each
author's page.
Thanks again.
Kamran

PS:
I think SPIP developers should write some more useful examples:
https://www.spip.net/en_rubrique251.html

On Wed, Jun 21, 2017 at 5:59 PM, George Kandalaft
<george@middleeastwatch.net> wrote:

Hi
For your first question, maybe this will help:
https://www.spip.net/en_article5157.html

For your second question:
<BOUCLE_authors(AUTEURS)>
<BOUCLE_articles(ARTICLES){id_auteur}
/>[(#TOTAL_BOUCLE|>={10}|oui)#_authors:NOM - #TOTAL_BOUCLE]<//B_articles>
</BOUCLE_authors>

George

Quoting Kamran Mir Hazar <mirhazar.kamran@gmail.com>:

Hello,
Two questions:
1: What is the correct way of looping through authors where they
published or not published articles in a particular section/rubrique,
and list the name if authors. For example, I want to list authors who
have not published articles in section/rubrique 2.
2: How do I sort authors who have published more than for example 10
articles, and list their names?
Thank you
Kamran

PS: I read the following article, but it doesn't help me.
https://www.spip.net/en_article2159.html
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en