Bhavin Turakhia wrote:
>
> Hey,
>
> i have almost completed my first midgard website but am stuck on following
> issues -
>
> 1. currently asgard does not allow me to update score of a topic, move/copy
> topic/article etc. so i wrote my own code to do this. however when i run it
> it says Access denied when i run a functions like mgd_update_score etc. So
> how do i authenticate myself before i run a function which requires it. I
> would appreciate if someone can paste a code snippet tht shows how it is
> done here
You just need to set authentication on on either the host or the page.
> 2. the beauty of the entire website thanks to midgard is that it has ONE
> page and ONE uniform style. now however I want different hosts to use this
> same page and style ie i have following hosts
>
> domains.directi.com
> home.directi.com
> hosting.directi.com
>
> now i created them all with the same page and style, however each of these
> hosts have a parameter in them which i need to access in code-init in the
> Default style. how cani do that?
You mean you added a parameter to the host record? In that case, lets
say
you attached a parameter with domain='emile', name='heyns':
<?
$host = mgd_get_host($midgard->host);
echo $host->emile_heyns;
?>
> Infact the real question is whenever a
> midgard page is accessed can the host, page, style be accessible as some
> default objects in that page?
http://www.midgard-project.org/req/midgard-1.4/mgd-get-midgard.htm
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]