Is there a way in web2py to generate the following element:

<a onclick="web2py_component("/init/locator/imagetext.load/
283","component");return false;" href="/init/locator/imagetext.load/
283"> <span>Home</span></a>

using the A helper:
{{=A('Home',_href=URL('locator','imagetext.load',args=[company.id]),cid='component')}}


This is part of an icon menu:

<div class="icon_menu">
  <ul>
    <li
id="home">{{=A('Home',_href=URL('locator','imagetext.load',args=[company.id]),cid='component')}}
</li>
    <li
id="timetable">{{=A('Lesrooster',_href=URL('timetable','timetable.load',args=[company.id]),cid='component')}}
</li>
  </ul>
</div> <!-- icon_menu -->

I would like every <a></a> element to have an icon + text, the icon
being set in a css file:

.icon_menu ul  li a span {
    background-image: url("/init/static/images/home.png");
}


Kind regards,

Annet

Reply via email to