rejetto forum

to templaters: change on [deny]

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
this applies only to HFS 2.3

announce to all templaters:
since with version 2.3 users can deny requests for any reason in events [request] and [download], we need a generic "denial" page.
initially i thought of an [error] section, but i think the existing page [deny] fits well.
If you have reasons to think this is a bad design choice, let me know your reasons.
I clearly think it is a good choice, also because this is somewhat backward compatible.
You who are not using the default template in HFS 2.3 are therefore invite to update your templates so that section [deny] will display the generic error message given by %reason%.
E.g., in the default template, you'll see

Code: [Select]
[deny]
<h1>Unallowed</h1>
{.or|%reason%|This resource is not accessible..}

that means that when the %reason% is empty, the other default message will be displayed.

HAND