Hi,
I have come to the point, I think, where i am going to have to write some customer code.
No biggie, I just want to make sure I put this in the correct place.
It looks like a field is edit all or not all.
I have certain fields I would like the users to edit on the form
and certain fields only admins can edit, like memberhsip renewal date.
So, I was thinking....
$editfieldlist[array_search("renewal_date",$fieldlist)]="renewal_date";
if(GetFilenameField("renewal_date"))
$filenamelist["renewal_date"]=GetFilenameField("renewal_date");
if(UseRTE("renewal_date"))
$richedit=1;
if I put something like
if groupaccess admin then
$editfieldlist[array_search("renewal_date",$fieldlist)]="renewal_date";
if(GetFilenameField("renewal_date"))
$filenamelist["renewal_date"]=GetFilenameField("renewal_date");
if(UseRTE("renewal_date"))
$richedit=1;
else
The problem I see with this method is if I regenerate the code, it will overwrite my hand coding.
So, I was thinking if I could have an
admin script in the includes directory
which somehow would be called when the edit script was called and basically accomplish the same thing but preserve the integrity of the generated code.
That may be too complicated though
Any advice on this would be appreciated.
Thanks
Peer