It would be really helpful if you can state and show what you have done - chunks, snippet calls etc...
To get you started, each item you want to display will be a separate MODx document.
Create a document called News and another one called Events. Check the box that makes them both containers.
To create each item, right-click on the News or Events folder in the tree at the left in the Manager and select "Create document here."
Once you have a few, use this call on the page where you want to display them:
[!Ditto? &parents=`n`]]
Where n is the document Id of the parent folder (shown in parentheses next to its name in the tree).
Once that’s working, you add more parameters to the Ditto call and edit or create tpl chunks, and mess with the CSS, to make things look the way you want.
Welcome to MODx.
[!Ditto? &parents=`17`&sortBy=`createdon`&summarize=`2` &total=`2` &tplFirst=`first` &lastTpl=`last` &tpl=`others` &extenders=`summary` !]
i have friendly urls on my page... and the ditoo links are still with id like mydomain.com/18
i also have <base href="[(site_url)]"></base> in my template.
what iam doing wrong here..?
my chunk : <a href="[+id+]" title="[+title+]" class="latest_news_a">
<a href="[~[+id+]~]" title="[+title+]" class="latest_news_a">
Quote from: the at Mar 01, 2009, 08:55 AM
i have friendly urls on my page... and the ditoo links are still with id like mydomain.com/18
i also have <base href="[(site_url)]"></base> in my template.
what iam doing wrong here..?
my chunk : <a href="[+id+]" title="[+title+]" class="latest_news_a">
You need to make a link out of the id by using a link tag: [~n~]:
<a href="[~[+id+]~]" title="[+title+]" class="latest_news_a">