CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Header Menu

Print topic Send  topic

Author Message
eallen

Posts: 25
Posted: 03/10/2004, 1:38 AM

It has been awhile since I used CC2 but I think it had a way of making multi-level menus.

I guess I expected a Menu Builder in the toolbox in CCS.

In CCS, is there a way to create a better menu in the header than just 'unideminsional' links? Has anyone found or created a menu to integrate into CCS. I had one working okay but I couldn't deal with user security levels on a page.

Thanks in advance for any help

View profile  Send private message
DonB
Posted: 03/10/2004, 3:14 PM

Not sure what you mean by unidimensional in this context. I generally
create a header and put link controls in it to serve as the menu. It's a
simple matter of BeforeShow event code to check the security level and set
the Link to "not visible". Somtimes I have more than one header include and
put specific functions into one header or the other and show/hide the entire
header based on security group or userid.

--
DonB

http://www.gotodon.com/ccbth


"eallen" <eallen@forum.codecharge> wrote in message
news:2404ee200c9eca@news.codecharge.com...
> It has been awhile since I used CC2 but I think it had a way of making
multi-level menus.
>
> I guess I expected a Menu Builder in the toolbox in CCS.
>
> In CCS, is there a way to create a better menu in the header than just
'unideminsional' links? Has anyone found or created a menu to integrate
into CCS. I had one working okay but I couldn't deal with user security
levels on a page.
>
> Thanks in advance for any help
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

eallen

Posts: 25
Posted: 03/10/2004, 10:01 PM

>> It's a simple matter of BeforeShow event code to check the security level and set the Link to "not visible".

I get the use of links and security within the header. What I want is a more robust menu. Something with pulldowns so I have more options horizontallly, space wise, in the header. I have tried some js menus but I can't make them work within the CCS. The issue of security just doesn't work with any menu other than something done specifically in the header within CCS, using the CCS {variables}.

Now there maybe a way to make it work but so far I haven't found a reasonable working solution or example.

Thanks in advance for any help
View profile  Send private message
peterr


Posts: 5971
Posted: 03/11/2004, 12:59 AM

Any menu is purely an HTML or JavaScript solution and that's why it cannot be controlled directly from the server in terms of security. I believe that the only way to provide security would be to create your menu dynamically, with different options for different users. This could be as simple as putting a Label on the page and then setting its content to the HTML menu code, which may include JavaScript. For example in ASP:
If CCGetGroupID<3 Then  
  MenuLabel.Value = "(some menu HTML)"  
Else  
  MenuLabel.Value = "(another menu HTML)"  
End If  
However, if you just need a pure HTML menu without the security then almost any menu available on the Internet should work directly within your HTML.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
BlinkyBill

Posts: 86
Posted: 03/11/2004, 1:48 AM

Putting aside fancy drop down menu for a second.

1. Create a header file as you would normally. Don't create any menu items in the header file.

2. Create separate menu files for each GroupID say:

menu1
menu2
menu3
etc

assign permission to each of these pages for the specific groups.

Then add each one of these pages as linked pages in the header page. Header page should have no permissions on it.

This method has work perfectly for me, the only side effect being ccs generates a warning about heirarcical includes, but pages build fine.

The net result is, when you pages loads, the page will incude the header which will only include the correct menu based on permissions. Any other menu pages which you don't have permissions for, are not included. I find this method very clean as it requires no code to get going and maintenance is very simple.
View profile  Send private message
peterr


Posts: 5971
Posted: 03/11/2004, 2:48 AM

Wow. This looks like a really clean approach. I'm learning something :-)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.