2
votes

I'm having an issues with two repeaters, both using the same Selected Item Transformation. Each repeater is fed by a separate Page Data Source, since i also have pagination.

When an item from repeater 1 is selected, i see the memo data, but also repeater 1 table header, and all of repeater 2's table. Is it possible to set up a new page template for this, and have the memo detail show there?

Here is the memo landing page: Memo Landing And here is the detail page: Memo Detail

Here's the tranformation code:

<section id="memoDetail">
  <h1>Memorandum</h1>
  <ul id="memoHeader">
    <li><span class="headerLabel">To:</span> {% To %}</li>
    <li><span class="headerLabel">From:</span> {% From %}</li>
    <li><span class="headerLabel">Subject:</span> {% Subject %}</li>
    <li><span class="headerLabel">Date:</span> {% Date %}</li>
  </ul>
  <div id="memoDetails">{% Details %}</div>
</section>
2
What does your transformation code look like? Also, I think you've told us the problem, but I'm not sure you've told us what your desired effect is. - Jerreck

2 Answers

2
votes

I believe you're using the same page template for items listing as well as details pages. The answer is yes, you can have different templates for those pages. You'll have to update each page shown in the repeater with new template in this case. However this is not necessary: you may try to hide second repeater, e.g. base on page type, if repeaters show pages of different type, or put some visibility macro there. I'm not sure why does header shows up on the second screenshot - there should be something wrong with repeater setting.

0
votes

Mark, there is a way to force all the content for a page type to be display using a dedicated template. Go to Page Types app > select the page type > General > New page settings > Default page template, and set it there. This way, it doesn't matter where the items are listed by whatever repeaters, they will be displayed with the same template.