<div class="article"> <h2 class="news-title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2> <p class="post-info">Posted on [[+publishedon:strtotime:date=`%b %d, %Y`]]</p> <div class="news-entry"> <p>[[+introtext]]</p> </div> <p class="postmeta"><a href="[[~[[+id]]]]" class="readmore">Read more</a></p> </div>
Thanks,
How do you specify a resource ID if you want a particular resource to be displayed
Article story1 title
Article story2 title
Thanks for the response. The example you give requires a container, what if the item i want to display is not a container but a resource on the first level?
What i want to display is something like this;
First part
A list in which i define two specific items to be displayed
Article story1 title
Article story2 title
But instead of fetching it from the container, I want to show the title of that item,
The second part is;
Think of a situation with a site that has these resources and IDs;
Home(1)
About(2)
Contact(3)
I want to show a summary of "About" so that when someone clicks "Read More", they can read teh full details.
That means that i should be able to display the summary of "About" only. How would i implement that? Do i call an ID? and if so, where do i place the ID?
On which page do you wantthe summary displayed?
Array
(
[tpl] =>
[tplOdd] =>
[tplFirst] =>
[tplLast] =>
[sortby] => publishedon
[sortbyTV] =>
[sortbyAlias] =>
[sortbyEscaped] => 0
[sortdir] => DESC
[sortdirTV] => DESC
[limit] => 1
[offset] => 0
[tvFilters] =>
[depth] => 10
[parents] => 5
[includeContent] => 1
[includeTVs] =>
[showHidden] =>
[showUnpublished] =>
[showDeleted] =>
[resources] =>
[processTVs] =>
[tvPrefix] => tv.
[idx] => 1
[first] => 1
[last] => 1
[toPlaceholder] =>
[debug] =>
[extenders] => summary
[id] => 6
[type] => document
[contentType] => text/html
[pagetitle] => Terms
[longtitle] =>
[description] =>
[alias] => terms
[link_attributes] =>
[published] => 1
[pub_date] => 0
[unpub_date] => 0
[parent] => 5
[isfolder] =>
[introtext] =>
[content] =>
[[!getResources? &parents=`5` &limit=`1` &includeContent=`1` &extenders=`summary`]]