jobberBase Community

Welcome to jobberBase Developer Community!

You are not logged in.

Announcement

Announcement for new users: in order to combat the ever increasing spam, we no longer allow new users to post links in the message body. This limitation is automatically lifted once a new user has a specific number of 'valid' posts.

You can post links like google.com which will be rendered as text but you will not be able to post messages that contain complete URLs like www.google.com

Thank you for your understanding!

#1 2012-01-15 17:54:16

tuugii
Member
Registered: 2012-01-15
Posts: 2

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!

Offline

#2 2012-01-15 18:56:36

tuugii
Member
Registered: 2012-01-15
Posts: 2

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}

Offline

#3 2012-01-16 18:53:20

dvtservices
DV Tech Services works for jobeerbas custamisation
From: Bangalore, India
Registered: 2011-09-01
Posts: 154
Website

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 jobber base customizations

Offline

Board footer

Powered by FluxBB