If you just want to do it with a single page, you probably want the getField snippet. The actual field name is "introtext"
If you want to grab the summary field from a number of resources, you probably want Ditto (or getResources in MODx Revolution). In that case, the field would be referred to with this tag:
[+introtext+] (Evolution)
[[+introtext]] (Revolution)
I am new to using the Ditto, so I ahve been reading as much as I can about it. I am starting to understand, but still have some holes to fill.
I have the pages displaying through this tag
[[Ditto? &parents=`0` &extenders=`summary` &truncLen=`140`]]
but, I am trying to get a "specific pages content" to list a summary and have a link to click for more. I know I am close. The current ditto tag list all the pages when I put a "o" in the tag
Thank you
I’m not completely clear on what you want, but check out the &includeDocs parameter.
I am trying to get the summary of one page into another page using the ditto.
Sorry, wrong parameter. For Ditto, the parameter is &documents. If you wanted to pull the summary from document 12, I think this would do it:
[[Ditto? &documents=`12` &extenders=`summary` &truncLen=`140`]]
Actually, if you only want one document’s summary, it would be much faster and easier to use the getField snippet and just retrieve that document’s introtext field.
http://modxcms.com/extras/download/285/285
I think the tag would look like this:
[!getField? &docid=`12` &field=`introtext`!]
Thank you. I had tried the &documents but it did not work for me, but now it does.
Not sure why.
This is what is displaying for me.
About
by Default admin account on 31-May-10 14:46
Trawick International is a Global Insurance and Financial Specialist with expertise in International Student Health Insurance as well as Global Trip Insurance
is there a way to get it with out the date and time. I just want a summary
Thanks
-
☆ A M B ☆
- 24,524 Posts
Then you need to use a custom tpl for the output.
http://www.pogwatch.com/ditto/ditto-templates.html
Thank you, I have it displaying what is below.
About
Trawick International is a Global Insurance and Financial Specialist with expertise in International Student Health Insurance as well as Global Trip Insurance
more...
I still have some questions.
1. How do I get the "about" which is the title of the page out of the display?
2. How can I style the out put?
3. is there a way just to get a summary from the content of the page rather than having to place the summary of the text in the summary?
thanks
-
☆ A M B ☆
- 3,141 Posts
Quote from: wholein1 at Jun 08, 2010, 04:44 PMI still have some questions.
1. How do I get the "about" which is the title of the page out of the display?
2. How can I style the out put?
3. is there a way just to get a summary from the content of the page rather than having to place the summary of the text in the summary?
thanks
In regards to Q1 & Q2:
Quote from: sottwell at Jun 05, 2010, 11:17 PM
Then you need to use a custom tpl for the output.
http://www.pogwatch.com/ditto/ditto-templates.html
The "about" title is most likely referenced to as [+pagetitle+] in the ditto template.
You can use CSS to style the output html as you place it in the ditto template. If you’re unfamiliar with CSS try the tutorials over at the W3C:
http://www.w3schools.com/css/
As for Q3: back in version 1 of Ditto there was the [+summary+] placeholder. Used with &extenders=`summary` in your ditto call. However, one site just mentioned it has been deprecated and another says it still works. I’ve not tried it out, but would be worth the try