> Is it possible to design a page with content from different
> kind of articles ?
Sure.
> For example, in the electronic magazine I am trying to create,
> I want the left side of the page with some information/banners,
> and the article/resumes located on the right side. So I
> have this 2 areas of content, and they appear in different parts of
> the html page. This two areas are independent, so it will be
> possible to update one without modifying the other.
>
> It seems to me that I have to use the tag <(content)> two times in
> the layout/style design, but being I newbie in midgard, I am not
> figuring out how to do this. The example site and the admin site
> have only one area of content ...
<(content)> includes the content field of the page you're visiting. If the
page is active, and you would, for example, reference
/path/to/page/314/332.html
Then the array argv would hold the values (314, 332). The content of the
page could then be, for example:
<table>
<tr><td>
<? if ($article = mgd_get_article($argv[0])) { ?>
&(article.abstract);<hr>&(article.content);
<? } else {
mgd_list_topic_articles(....)
?>
</td>
<td>
<? if ($article = mgd_get_article($argv[1])) { ?>
&(article.abstract);<hr>&(article.content);
<? } else {
mgd_list_topic_articles(....)
?>
</td></tr>
Getting the specifics right and have this look good is left as an exercise
for the reader.
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]