tuugii

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!

tuugii

Re: How to count jobs guys?

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}

dvtservices

Re: How to count jobs guys?

get the jobs counter from the query. and put in  $spotlight_jobs array and display in the template

Thanks &Regards
DV Tech Services Pvt Ltd
Email: venkat@dvtservices.com;   www.dvtservices.com  Bangalore. India
                             We are Ready to Resolve your problems ..... And Ready to work for you