sudah tak perbaiki, kode yang benar di bawah ini:ajienoorseto wrote:code diatas belum bisa, harus dibikin fungsi count dulu, ada berapa jumlah penulis, nah klo udah diposisi terakhir diganti titik...monggo mas dion gantian hehe
Code: Select all
 {assign var=count value=0}
        {foreach from=$article->getAuthors() item=author name=authorList}
		{assign var=fullname value=$author->getFullName()}
		{assign var="contact" value=$author->getData('primaryContact')}
		{assign var=count value=$count+1}
		{if $fullname||$count}{$fullname|escape}<sup>({if $contact eq 1}{$count|escape}*{else}{$count|escape}{/if})</sup>{if not $smarty.foreach.authorList.last},{/if}{/if}
   {/foreach}
         <br>
{assign var=count value=0}
    {foreach from=$article->getAuthors() item=author name=authorList}
            {assign var=authorAffiliation value=$author->getLocalizedAffiliation()}
		{assign var=count value=$count+1}
		{if $authorAffiliation||$count}<br />({$count|escape}) {$authorAffiliation|escape}{/if}
   {/foreach}
         <br> (*) Corresponding Author
         <br>