beckie
Posts: 16
|
| Posted: 01/15/2005, 7:57 AM |
|
I want a header that displays only the links to pages that are accessible by a user based on its groupid.
Is it possible to generate a dynamic set of links in a header?
I'm using CSS in combination with PHP / MySQL.
|
 |
 |
DonB
|
| Posted: 01/15/2005, 9:22 AM |
|
I include a call to this function in my "restricted" links' Before Show
events. The links have "Extended HTML" enabled so that they acquire a
Visible property (won't work if you forget to do this).
function restricted(&$item, $level) {
# Hide elements that are restricted. User group must be at least that
specified in $level
# for $item to be visible
$item->Visible = (CCGetGroupID() >= $level ? true : false);
}
--
DonB
http://www.gotodon.com/ccbth
"beckie" <beckie@forum.codecharge> wrote in message
news:241e93d7db071c@news.codecharge.com...
> I want a header that displays only the links to pages that are accessible
by a
> user based on its groupid.
>
> Is it possible to generate a dynamic set of links in a header?
>
> I'm using CSS in combination with PHP / MySQL.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
beckie
Posts: 16
|
| Posted: 01/15/2005, 1:11 PM |
|
Can you explain how this code generates the actual hyperlinks to the authorized pages? And can I influence to order and position of these hyperlinks?
|
 |
 |
|