• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Groups list

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I am integrating JForum into other project. So I need to change much links in html templates. And one problem occured: I can't change links at group list page in administrative area for child groups (not top-level groups).

Here is a code from group_list.html

<#list 0..len as i>
<#assign node = groups.get(i)>
<#global level = 0>

<tr>
<td class=row1 ><SPAN class=gen>${node.name}</SPAN></td>
<td class=row2><span class="gen">${I18n.getMessage("Groups.List.Edit")}</span></td>
<td class="row2"><input type="checkbox" name="group_id" value="${node.id}"></td>
<td class=row2><span class="gen">${I18n.getMessage("Permissions")}</span></td>
</tr>

<@lib.listGroups node/>
</#list>

Could you explain me how works <@lib.listGroups node/> directive and how I can change resulting html code returned by this directive?

I will be grateful for any information
[originally posted on jforum.net by NewTon]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry to trouble you.
I understood how it works. Earlier macros with <#import "macros/group_macros.ftl" as lib> string have been attached, and that directive was macros call.

[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Smart one ;)

Rafael
[originally posted on jforum.net by Rafael Steil]
 
On top of spaghetti all covered in cheese, there was this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic