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


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>
{if $items.companies|count < $items.count}
  <p class="right">
   <a class="extra-link" href="{"companies.catalog"|fn_url}">{$lang.view_all}</a>

In my custom view called new_view/view.tpl

But it is not working?

Please explain or give a solutions to this issue.