Heidi Jensen wrote:
>
> Hello - please help me!
>
> I'm new at Midgard and programming, and I'm really confused about topics, articles
>and pages.
>
> In my style Admin I have made an element called navilinks. It looks like this:
>
> <p>
> <? { $link = mgd_get_article(20); ?>
> <strong><a href="/topic/" class="navi">&(link.title);</a></strong><br>
> &(link.abstract);</p>
> <? } ?>
>
> But the connection between articles and topics do not work for me. In my "topic-menu"
> I get the title of the article (has the ID number 20), but when I click on it, all
> I see is a page telling me, that the page could not be found.
There is no built-in mechanism to display content -- we can't determine
how you would
want it displayed.
If you change the above code to
<strong><a href="/topic/"
class="navi">/display_article/?article=&(link.id);</a></strong><br>
or
<strong><a href="/topic/"
class="navi">/display_article/&(link.id);.html</a></strong><br>
you can make a page /display_article/ (static for the first way, active
for the second)
that gets the article ID from $article cq. $argv[0], gets the article
object, and displays
it. Browse around the VMUC site via the admin interface and you'll find
samples of how it's
done.
> In the manual I read something about the code-init, what does that mean?
Code-init is just a style element that can be used in the page
construction phase.
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]