Re: BUG SiteBuilder FAQ and??

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61375
interpreted = N
texte = I dont think this message hit the list: Ok, I came up with the start of the fix: In templates/main_generic.inc there is security code that controls the output lists for example for FAQ's. The problem is that this code is NOT in detail_generic.inc. So far I have had time to figure out that you need this include file at the top of detail_generic.inc: [include file=[REL_ROOT_DIR]checkuser.tpl&noauth=T] Then, this line in main_generic I think also needs to be in detail generic, as it sets the securityGroups variable. However I think this line may need to be tweaked to work in detail generic inc. [text]securityGroups=[lookup db=[REL_ROOT_DIR]data/cat_[SM1_DATASOURCE]&lookinfield=CAT_ID&value=[dat_cat_id]&returnfield=Cat_Security Groups¬found=][/text] Finally, this showif is what you use to decide if the user is actually in the proper security group, so if the include is there, and the securityGroups var is set, this function should work. [showif [isUserInGroups]=T] I know there will be more code required, like making the next/prev buttons jump to the proper next allowed record... but this is all I have time for this morning... -Scott I Hello, When using the FAQ pages, when you specify a FAQ record to be of a certain access level (admin etc..) it works on the opening pages...meaning, admin only FAQ's do not show if the admin is not logged in...However, when you click to the detail of any FAQ and hit the "NEXT" or "PREVIOUS" form submits, all FAQ's are displayed. I am guessing this same BUG is apparent in all of the same type of pages that work in this manner... though I have not test it. Donovan ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: BUG SiteBuilder FAQ and?? ( Scott Szretter 2005)
I dont think this message hit the list: Ok, I came up with the start of the fix: In templates/main_generic.inc there is security code that controls the output lists for example for FAQ's. The problem is that this code is NOT in detail_generic.inc. So far I have had time to figure out that you need this include file at the top of detail_generic.inc: [include file=[REL_ROOT_DIR]checkuser.tpl&noauth=T] Then, this line in main_generic I think also needs to be in detail generic, as it sets the securityGroups variable. However I think this line may need to be tweaked to work in detail generic inc. [text]securityGroups=[lookup db=[REL_ROOT_DIR]data/cat_[SM1_DATASOURCE]&lookinfield=CAT_ID&value=[dat_cat_id]&returnfield=Cat_Security Groups¬found=][/text] Finally, this showif is what you use to decide if the user is actually in the proper security group, so if the include is there, and the securityGroups var is set, this function should work. [showif [isUserInGroups]=T] I know there will be more code required, like making the next/prev buttons jump to the proper next allowed record... but this is all I have time for this morning... -Scott I Hello, When using the FAQ pages, when you specify a FAQ record to be of a certain access level (admin etc..) it works on the opening pages...meaning, admin only FAQ's do not show if the admin is not logged in...However, when you click to the detail of any FAQ and hit the "NEXT" or "PREVIOUS" form submits, all FAQ's are displayed. I am guessing this same BUG is apparent in all of the same type of pages that work in this manner... though I have not test it. Donovan ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Scott Szretter

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Authorize.net? (2003) Explict Groups (not sexual:0) (2002) Internet Advancement (2003) Newbie questions (1998) OLD PROBLEM (1997) External Images (1998) newbies to web, spaces in email address (1998) cybercash on OSX - was Executing remote AppleScript (2000) Searching from a Form (2000) Yet another db manager (2004) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) Changing price for a SLU based on options (size, etc.) (1997) Field names beginning with Reg.. (2002) Emailer (1998) Today's suggestions (1998) WebDNA-Talk Digest mode broken (1997) Default contains WEBDNA (1998) problems with 2 tags (1997) RE: Clearing orders and database help! (1997) Date Help (2004)