Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Can't use company_list.tpl code in other places? Rate Topic   - - - - -

 
  • curribhoys
  • Advanced Member
  • Members
  • Join Date: 29-Oct 12
  • 69 posts

Posted 04 December 2012 - 08:53 AM #1

Hi,

I was just trying to use the company_list.tpl's code:
{** block-description:comapnies.view **}
{assign var="max" value=""}

{if $items.companies}
<ul class="text-links">
{foreach from=$items.companies item=v key=k}
  <li><a href="{"companies.view?company_id=`$k`"|fn_url}">{$v}</a></li>
{/foreach}
</ul>
{if $items.companies|count < $items.count}
  <p class="right">
   <a class="extra-link" href="{"companies.catalog"|fn_url}">{$lang.view_all}</a>
  </p>
{/if}
{/if}

In my custom view called new_view/view.tpl

But it is not working?

Please explain or give a solutions to this issue.
Thanks,
Anand