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

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]
 
Everybody! Do the Funky Monkey! Like this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic