Hi all,

i have a template tags for menu...

it's display as i wanted in the template.
Then i refactor it, change the calling method of the template tags, then
the menu shifted down, like given an enter / line feed. and to fix it i use
css with adding top:-20px  to shifted it up as would normally showed.

The css is still the same, no update. so does this is an expected result
using template tags ?


Before i called using this line in the normal template called from other
template tags   :
<div class="myMenuID" id="myMenuID">
<ul style="visibility: hidden">
{% load pmmenu_tags %}
{% pmmenu_main_menu %}
</ul>
</div>


then i change it to this one, which is in the template tags :

<div class="myMenuID" id="myMenuID">
<ul style="visibility: hidden">{% for menu in menu_list %}
  <li><span></span><a href="{{ menu.link_url }}">{{ menu.title }}</a>
  {% if menu.pmmenuitem_set.all %}
    <ul>
  {% for submenu in menu.pmmenuitem_set.all %}
      <li><span></span><a href="{{ menu.link_url }}">{{ submenu.title }}</a>
  {% endfor %}
    </ul>
  {% endif %}
  </li>
{% endfor %}
</ul>
</div>


Best Regards,

Mulianto

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to