<![CDATA[ [solved] How to Create a products page - My Forums]]> https://forums.modx.com/thread/?thread=16890 <![CDATA[Re: [solved] How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91649 fruitwerks Dec 23, 2007, 10:08 AM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91649 <![CDATA[Re: [solved] How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91648
Cheers,

Jay]]>
smashingred Dec 22, 2007, 09:43 PM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91648
<![CDATA[Re: How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91647
I did not know it required a space hence I was not looking at this as a problem but anyway all ok now and thanks to everyone that has helped.

For anyone else having the same problem below is the final call that works

[[Ditto? &parents=`48`&tpl=`vans_sold`&display=`all`&summarize=`5`&paginate=`1`&paginateAlwaysShowLinks=`1`]]

Cheers

Ian
]]>
ian_m Dec 22, 2007, 04:07 PM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91647
<![CDATA[Re: How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91646
See below:
[!Ditto? &parents=`48` &tpl=`vans_sold` &display=`all` &summarize=`5` &paginate=`1` &paginateAlwaysShowLinks=`1`!]


Hope this helps.

Jay]]>
smashingred Dec 22, 2007, 03:54 PM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91646
<![CDATA[Re: How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91645 Quote from: ganeshXL at Dec 22, 2007, 06:56 PM

What does your tpl now look like? You can add &debug=`1` to get addtl. infos on how Ditto is parsing/fetching things.
Remember that MODx - like PHP - is case-sensitive; if you renamed your template, Ditto maybe can’t find it.

I have been though the spelling to the point I copied and pasted from the chunk name into the &tpl name, I added the &debug=`1` to the call but the output renamed the same with no errors output at all, I will provide a couple of screenshots below in the hope they provide something of use, been playing with this all day and have never had this much trouble getting anything to work before so guess I must be overlooking the obvious.

My Chunk



My parent page



Can anyone see what my error is huh]]>
ian_m Dec 22, 2007, 02:27 PM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91645
<![CDATA[Re: How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91643
Why does this
[!Ditto?&parents=`48`&tpl=`vans_sold`&display=`all`&summarize=`5`&paginate=`1`&paginateAlwaysShowLinks=`1`!]

output this
product number 3
by Default admin account on 22-Dec-07 13:58

Thats I guess is some kind of default output for the id=48 child pages

Can anyone give me some idea of something else to try so the &tpl=`vans_sold` starts to include that chunk

Cheers]]>
ian_m Dec 22, 2007, 12:32 PM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page?page=2#dis-post-91643
<![CDATA[Re: How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page#dis-post-91642

ok this code
[!Ditto?&parents=`48`&tpl=`vans_sold`&display=`all`&summarize=`5`&paginate=`1`&paginateAlwaysShowLinks=`1`!]

outputs this
product number 3
by Default admin account on 22-Dec-07 13:58

But it does not output the chunk called vans_sold or this chucks TV so at a total loss why this does not happen.

Can anyone give me any more pointers

Cheers

Ian]]>
ian_m Dec 22, 2007, 07:01 AM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page#dis-post-91642
<![CDATA[Re: How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page#dis-post-91640
[!Ditto?&parents=`48`&tpl=`vans_sold`&display=`all`&summarize=`5`&paginate=`1`&paginateAlwaysShowLinks=`1`!]

Yes the page was published it was called item 1 I have now renamed it to product 1 and it shows as a child to the parent page called parent page.

I checked the chunk name/spelling to make sure it ties up with the &tpl name call and it does. I have 2 template vars called content and heading which appear at the base of the pages under the main editor.

Before I set up the above was I meant to install anything else, I am presuming ditto is all part of the core on MODx and is ready to go.....

Anyone know what I’m missing and thanks for all help so far

Regards

Ian]]>
ian_m Dec 22, 2007, 06:44 AM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page#dis-post-91640
<![CDATA[Re: How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page#dis-post-91639
[!Ditto? &parents=...
]]>
dev_cw Dec 22, 2007, 06:30 AM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page#dis-post-91639
<![CDATA[Re: How to Create a products page]]> https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page#dis-post-91637
I have created a parent page which is page number 48 and have added the following to it
[[Ditto?parents=`48`&tpl=`vans_sold`&display=`all`&summarize=`5`&paginate=`1`&paginateAlwaysShowLinks=`1`]]

ok the current vans_sold template is stored as a chunk and looks like this
<div style="border:1px solid#744a00;">
<table>
<tr>
<td">[+heading+]</td>
</tr>
<tr>
<td>[+content+]</td>

<tr/>

</table>
</div>

Right now I dont get the output of this chunk in the template at all as can be seen here

Because I have binded the 2 TV’s that are in the chunk called content and heading to this page I can now get the new text areas at the bottom of the page when editing. Should I not do this and if not how do you add information.

Had a scan of the documentation but cant see anything simple that shows how to do what I am trying to achieve

Cheers

Cheers

Ian
]]>
ian_m Dec 22, 2007, 05:43 AM https://forums.modx.com/thread/16890/solved-how-to-create-a-products-page#dis-post-91637