Francois Dumais wrote:

> Introduction :  I notice the "content" area on the page properties form.  I
> also notice that the current technique to put articles is to sort of
> "include" them in a table cell after the "content" tag has been put in the
> cell through his page element container..

Right.

> Question :  What if you want two different cells filled by two different
> articles given the fact that "content" is unique to each page.  If I put the
> "content" tag in one cell and another "content" tag in the other cell, it
> will repeat twice the same article.  The only solution I see would be to
> give to the "content" coding the task of "formatting" each cell AND that of
> "including" the articles?  Is this the correct way to go?

All the content has to do is decide what articles to pull and display
them. If you want, for example, a page that displays a flexible number
of articles you could certainly do:

<UL>
<?
   foreach ($argv as $id) {
      $art = mgd_get_article($id);
      if ($art) { ?><LI>&(art.title);</LI> <? }
   }
?>
</UL>

You could equally well have used tables, it's just an illustration.
You could call this page (assuming it was marked active) as

/path/to/page/55/3488/3/12/66

and it would display those articles in order. You could do something
similar for article ranges, or date ranges.

One doesn't generally put content in the page content. It's more usual
to have code in the page content to display articles.

Emile



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

Reply via email to