Hi,

On 6 Mar 2003 at 10:28, Piotr Pokora wrote:

> "Edgar Zavala" <[EMAIL PROTECTED]> wrote:
> 
> >   <html>
> >   <head><title>test</title></head>
> >   <body>
> >   Content: <(content)>
> >   Header:<(header)>
> >   Footer: <(footer)>
> >   </body>
> >   </html>
> > 
> >   but when i go to the main page i only get:
> > 
> >   Content:This is the default main page of your website. Use the  
> >   website 
> > tab in the admin interface to modify this Page.
> > HEADER:This is the header
> > Footer:
> > 
> 
well, isn't this the supposed behavior? You still need to tell Midgard were to fetch 
your 
article content from. Usually you would use an element called code-init to fetch the 
corresponding article or topic from the database

Example:
code init:
 <?
 if ($argc == 1) $id = $argv[0];
 if ($id) $article = mgd_get_article($id);
 if ($article) $author = mgd_get_person($article->author);
 ?>

and in your page (mark it as active) you could have the following content:

 <? if ($article) { ?>
 <b>&(article.title);</b>
 &(article.content:h);
  <p>Author: &(author.name);<br>
 Last updatedt: <?php echo date("j. F Y", $article->revised); ?><br>
  <a href="/printer-friendly/&(article.id);.html" target="_blank">Printerfriendly 
Version</a></p>
  <? } else { ?>
  <p><b>You found an non existing article - error 404 ;-)</b></p>
  <p>Please send an email to the <a 
href="mailto:[EMAIL PROTECTED]">Webmaster</a>.<br>
 Thanks</p>
 <? } ?>

> Try to send output from mysql log for that site.
> Another idea which comes to my mind is to mark this element as
> inheritable.
> 
> Piotras

Piotras, please correct me if I'm mistaken.
Greetings
Andreas
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to