I have a members-only section and an admin-only section. Both members
and admins use database authentication. How can I avoid duplicating a
bunch of XML in my configuration?
<element id="AuthMember" extends="rife/authenticated/database.xml">
<property name="template_name">authentication.login</property>
<property name="role">member</property>
<property name="authvar_type">cookie</property>
<property
name="datasource"><datasource>postgresql</datasource></property>
<submission name="credentials" scope="global">
<param name="login"/>
<param name="password"/>
</submission>
<childtrigger name="authid"/>
</element>
The only difference between that and the admin authentication element is
the role name. But it doesn't look like I can do something like
<element id="AuthAdmin" extends="AuthMember">
<property name="role">admin</property>
</element>
Is there a way to do it? This is just a config cleanliness issue;
obviously it works fine to have both elements fully spelled out, but I'd
rather just specify most of that stuff in one place if I can.
-Steve
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users