Wikka : LoggedUsersHomepage

HomePage :: Categories :: Index :: Changes :: Comments :: Documentation :: Blog :: Login/Register
Most recent edit on 2008-04-24 05:23:41 by MarcElser [Added functionality to also redirect when you just type in the wiki-url without params (e.g. wikkawi]

Additions:

Logged Users Homepage


Here's a quick way to create two distinct homepages, the first for anonymous visitors, the second for registered users:

original:

<?php echo $this->Link($this->config["root_page"]); ?> ::


modified:

<?php echo ($this->GetUser() ? $this->Link($this->config["logged_in_homepage"]) : $this->Link($this->config["root_page"])); ?> ::


You will then need to setup the appropriate ACLs for the IntraNet page

-- DarTar





Deletions:

Logged Users Homepage


Here's a quick way to create two distinct homepages, the first for anonymous visitors, the second for registered users:

original:

<?php echo $this->Link($this->config["root_page"]); ?> ::


modified:

<?php echo ($this->GetUser() ? $this->Link($this->config["logged_in_homepage"]) : $this->Link($this->config["root_page"])); ?> ::


You will then need to setup the appropriate ACLs for the IntraNet page

-- DarTar






Edited on 2008-01-28 00:10:47 by NilsLindenberg [Modified links pointing to docs server]

No differences.


Edited on 2005-01-17 15:05:36 by NilsLindenberg [cat. changed]

Additions:
CategoryUserContributions

Deletions:
CategoryDevelopment



Edited on 2004-12-17 23:54:54 by JavaWoman [modified code on one line (makes syntax clearer)]

Additions:
<?php echo ($this->GetUser() ? $this->Link($this->config["logged_in_homepage"]) : $this->Link($this->config["root_page"])); ?> ::

Deletions:
<?php echo ($this->GetUser() ? $this->Link($this->config["logged_in_homepage"]) : $this->Link($this->config["root_page"])); ?> ::



Edited on 2004-10-25 19:05:58 by NilsLindenberg [category added]

Additions:

Logged Users Homepage


Here's a quick way to create two distinct homepages, the first for anonymous visitors, the second for registered users:

original:

<?php echo $this->Link($this->config["root_page"]); ?> ::


modified:

<?php echo ($this->GetUser() ? $this->Link($this->config["logged_in_homepage"]) :
$this->Link($this->config["root_page"])); ?> ::


You will then need to setup the appropriate ACLs for the IntraNet page

-- DarTar


CategoryDevelopment


Deletions:

Logged Users Homepage


Here's a quick way to create two distinct homepages, the first for anonymous visitors, the second for registered users:

original:

<?php echo $this->Link($this->config["root_page"]); ?> ::

modified:

<?php echo ($this->GetUser() ? $this->Link($this->config["logged_in_homepage"]) :
$this->Link($this->config["root_page"])); ?> ::

You will then need to setup the appropriate ACLs for the IntraNet page

-- DarTar




Oldest known version of this page was edited on 2004-07-29 14:54:43 by DarTar []
Page view:

Logged Users Homepage


Here's a quick way to create two distinct homepages, the first for anonymous visitors, the second for registered users:

original:

<?php echo $this->Link($this->config["root_page"]); ?> ::

modified:

<?php echo ($this->GetUser() ? $this->Link($this->config["logged_in_homepage"]) :
$this->Link($this->config["root_page"])); ?> ::

You will then need to setup the appropriate ACLs for the IntraNet page

-- DarTar
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.6001 seconds