Topic: How to count jobs guys?
How to count the jobs? i need to loop the numbers from 1 before the job shows up so i can see how many jobs there? Desperate for answers guys thanks and help will be appreciated!
Welcome to jobberBase Developer Community!
You are not logged in. Please login or register.
We've just added a new category for forums dedicated to local communities.
If you're interested in starting a community in your country or even city, please write us at hello@jobberbase.com and we'll make it happen.
We're also looking for moderators on each local community -- so email us :).
Pages: 1
How to count the jobs? i need to loop the numbers from 1 before the job shows up so i can see how many jobs there? Desperate for answers guys thanks and help will be appreciated!
No problem solved already
{if $spotlight_jobs}
<h2>{$translations.homepage.spotlight_jobs}</h2>
<span style="color:transparent;">{counter start=0}</span>
{foreach item=job from=$spotlight_jobs}
<div class="row-spot">
<span class="row-info">
{counter}
<img src="{$BASE_URL}_templates/{$THEME}/img/icon-{$job.type_var_name}.png" alt="{$job.type_name}" />
<a href="{$BASE_URL}{$URL_JOB}/{$job.id}/{$job.url_title}/" title="{$job.title}">{$job.title}</a> <span class="la">{$translations.homepage.at}</span> {$job.company}{if $job.is_location_anywhere}, {$translations.jobs.location_anywhere}{else} <span class="la">{$translations.homepage.in}</span> {$job.location}{/if}
</span>
<span class="spotlight-image"></span>
</div>
{/foreach}
{/if}
get the jobs counter from the query. and put in $spotlight_jobs array and display in the template
Posts [ 3 ]
Pages: 1
Powered by FluxBB
[ Generated in 0.022 seconds, 6 queries executed ]