• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic