Miles Scruggs wrote:
I have done that, and I have spent a good few hours playing with the site I
made via the midcom template. What has me running is the fact that I can't
see how the content is called and placed.
Great, then you at least have some experience. Content is pulled from the topics and articles by MidCOM components. Basically you should look into /de/linkm/taviewer snippets. TAViewer is _the_ basic component for displaying content.
MidCOM style engine formats the output. For example,
when you make HTTP request to a MidCOM template site,
the URL is matched to content tree and if found output
is by default formatted as defined in /de/linkm/taviewer/_style/show-article snippet.
So, to modify the output to your liking you need to create a child style to the main style your site is using (i.e. de.linkm.taviewer) and create style element with the same name as in component default style snippets (i.e. show-article). To get started copy-paste the contents from the default style snippet. Then you need to tell the topic that it should use your style instead of default. Go to AIS and edit topic, insert the path for the style (i.e. /MyStyle/de.linkm.taviewer).
That's it. Then take another component, look at default style snippets and create your own child styles.
I can't seem to find where it just decided to make links for all the articles in midgard root topic and place them on the root page.
I don't fully understand this one. Do you mean that you have automatic navigation generated by the site template?
That's page element called <(navi-dynamic)> which uses MidCOM's NAP to generate the tree.
The other part is the fact that my layout is complex. I will be using a lot of midgard article and topic functions in the style itself, and it seem very simple to do this. I can't see how to do something like grab the title and abstract from last two articles in topic B, and place them where I want them in my style.
Layout can be complex in MidCOM. Actually the amount of code needed for complex sites is a lot less with MidCOM (since it provides you so much out-of-box).
For example, create new topic with de.linkm.newsticker component. Create some news articles.
Then insert the following code to your layout:
<?php
//Change the "mynewstopic" to match the name of your news topic ;)
$midcom->dynamic_load("/mynewstopic/latest/3");
?>BTW: This output is formatted by elements: <(show-latest-init)>, <(show-latest-item)> and <(show-latest-finish)> (Again, look at the default style snippets.)
I find the VMUC very helpful for an example of how to use classic midgard in
a limited, but running start way.
With midcom I don't understand where to find more information about things like
<(content-row)>
You should look for the page element with that name.
This probally stems from my limited grasp of midgard.
Could someone give me a rundown on the flow of midcom? I get it up until
<(content)> then I don't know where everything goes.
<(content)> is special and it basically "includes" the contents of the current page. For example in MidCOM template site you have one root page which serves everything. So, when <(content)> is called in your style the contents of the root page is included to that spot. In MidCOM's case this is the part where MidCOM components take over.
In midgard I thought this linked to the page of the uri but when I go there I get lost pretty quick in the midcom site.
You are correct, and this is the way it is with the MidCOM template site too.
This is going to be a problem for me. I might be forced to learn midcom better.
Just start messing around with it and throw in any problems you encounter - we'll help you through.
Obviously, if you haven't read Bergius' slides from OsCOM3 that is the point to start. Other handy tutorials can be found from Midgard Project site --> Community --> Communications --> How Midgard site was built
Miles
Cheers!
//Henri
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
