Hi,
i don't know if i understood very well, but it don't work when i click on w-view more the single work don't appear
that is what i've done:
i took the code from the hidden single work, and had in a chunck: singleWorlTpl , then i create a template singleWork, and had this chunk in the template
i create a new resource work_single (child of works, and hidden from menu) with the template singleWork
then i replace the code of single work (in the work resource) by [[getResources? &parents=`4` &includeContent=`1` &tpl=`singleWorkTpl`]]
[[getResources? &parents=`4` &includeContent=`1` &tpl=`singleWorkTpl`]]
Other problem, on my team section, i thought yesterday it was allright, but there was a mess in the second row, i looked at the code, and at is formatted as columns, each two member are in a div class="row"
so i rebuild the tv and the chunk tpl like that,
[
{"caption":"Team Member", "fields": [
{"field":"member_name1","caption":"Name1"},
{"field":"member_role1","caption":"Role1"},
{"field":"member_text1","caption":"Text1"},
{"field":"member_image1","caption":"Image1","inputTVtype":"image"}
{"field":"member_name2","caption":"Name2"},
{"field":"member_role2","caption":"Role2"},
{"field":"member_text2","caption":"Text2"},
{"field":"member_image2","caption":"Image2","inputTVtype":"image"}
]}
]
[
{"header": "Name1", "width": "200", "sortable": "true", "dataIndex": "member_name1"},
{"header": "Role1", "width": "200", "sortable": "false", "dataIndex": "member_role1"},
{"header": "Text1", "width": "200", "sortable": "false", "dataIndex": "member_text1"},
{"header": "Image1", "width": "200", "sortable": "false", "dataIndex": "member_image1","renderer":"this.renderImage"}
{"header": "Name2", "width": "200", "sortable": "true", "dataIndex": "member_name2"},
{"header": "Role2", "width": "200", "sortable": "false", "dataIndex": "member_role2"},
{"header": "Text2", "width": "200", "sortable": "false", "dataIndex": "member_text2"},
{"header": "Image2", "width": "200", "sortable": "false", "dataIndex": "member_image2","renderer":"this.renderImage"}
]
and the tplchunk
<div class="w-row">
<div class="w-col w-col-6"><img alt="535f8441c078d64b690005e0_4217144639_83499060db_n.jpg" class="team-img" data-ix="appear-left-on-scroll" src="[[+member_image1]]" />
<div class="overlay">
<h3 class="h3-team">[[+member_name1]]</h3>
<h4 class="work-title">[[+member_role1]]</h4>
<p class="p-team">[[+member_text1]]</p>
<a class="w-inline-block" href="#"><img alt="535f8c42301137b76f000795_facebook.png" class="social-img" src="assets/templates/seen/images/facebook.png" /> </a> <a class="w-inline-block" href="#"> <img alt="535f8dd5af0f48b96f0006c1_twitter.png" class="social-img" src="assets/templates/seen/images/twitter.png" /> </a> <a class="w-inline-block" href="#"> <img alt="535f8de5301137b76f0007aa_linkedin.png" class="social-img" src="assets/templates/seen/images/linkedin.png" /> </a></div>
</div>
<div class="w-col w-col-6"><img alt="535f8441c078d64b690005e0_4217144639_83499060db_n.jpg" class="team-img" data-ix="appear-left-on-scroll" src="[[+member_image2]]" />
<div class="overlay">
<h3 class="h3-team">[[+member_name2]]</h3>
<h4 class="work-title">[[+member_role2]]</h4>
<p class="p-team">[[+member_text2]]</p>
<a class="w-inline-block" href="#"><img alt="535f8c42301137b76f000795_facebook.png" class="social-img" src="assets/templates/seen/images/facebook.png" /> </a> <a class="w-inline-block" href="#"> <img alt="535f8dd5af0f48b96f0006c1_twitter.png" class="social-img" src="assets/templates/seen/images/twitter.png" /> </a> <a class="w-inline-block" href="#"> <img alt="535f8de5301137b76f0007aa_linkedin.png" class="social-img" src="assets/templates/seen/images/linkedin.png" /> </a></div>
</div>
</div>
I think it's correct, but now, when i go to the resource and try to add a new item, the window open but i have , nothing in it, i tried to delete the tv and rebuild it, but it don't work
i already notice this problem when i was building the slider and modify the tv to add the image, but after finally it comes back normal
so i think there's a problem when we make a modification to a migx tv, but i don't know how to fix it
I hope i don't bother you to much with all that questions, i begin modx less than 2 weeks ago, and as i like to build sophisticated designs, i go the tricky way, even if i don't always need it (for the one page nav, i think it would be easier to have it manually than having each section in a resource etc...), but i believe that beginning with this exercise i will be able to do what i want when i begin with real production