Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Groups list

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Smart one ;)

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Hey cool! They got a blimp! But I have a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic