Emiliano wrote:
>
> > 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
>
I am not sure if you understood what I want to do, so I will try
to give an example of what I am thinking...
I suppose I could have a root Layout/Style with
<HTML><BODY>
<table>
<tr><td>
<(content)>
</td></tr>
</table>
...
<table>
<tr><td>
<(content)>
</td></tr>
</table>
</BODY></HTML>
So there are two tables, and some HTML code between them; but the
content
of these tables are not supposed to be the same ... Is there a way to
specify that in the first table I want some kind of content, and in the
second another kind ? I need a way of saying that the contents are
from different sources ....
If I have a root page with PHP3/midgard code that defines what output
I want for the content, I will have the same HTML output in the two
tables, the layout/style is imposing this ...
In your example Emiliano, you have a path/url and so you get two
values in argv, but my page don't have this hierachy, I only have
the root page , acessed by the URL "http://www.mysite.com"
Thank you for your help
Andre Gerhard
--
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]