MoveIt is now dead. In its place rises Reeposition 1.1. The documentation, such as it is, now reads:
This is a pretty simple plugin. Simply wrap the stuff you want to move like so:
{exp:reeposition}
{exp:weblog:entries limit="1" weblog="weblog"}
<h1>{title}</h1>
{body}
{reeposition:item}thing_you_want_to_move{/reeposition:item}
{/exp:weblog:entries}
... Other stuff in your web page ...
<div class="movedStuff">
{reeposition:put_item}
</div>
{/exp:reeposition}
If you want to move more than one item:
{exp:reeposition}
{reeposition:item id="unique_id"}thing_you_want_to_move{/reeposition:item}
{reeposition:item id="another_id"}another_thing_you_want_to_move{/reeposition:item}
... Other stuff in your web page ...
<div class="movedStuff">
{reeposition:put_item id="another_id"}
{reeposition:put_item id="unique_id"}
</div>
{/exp:reeposition}
Shoot, there was a typo in the version I just posted that caused some variables not to be replaced. We’ll just call that one a beta version, how ‘bout that? Anyway, it’s fixed now.
I think something’s wrong here. when ever I move something, the {reeposition:item} tags are still there. fe:
{exp:reeposition}
{exp:weblog:entries weblog="reports"}
{title}
{reeposition:item}slurp{/reeposition:item}
{/exp:weblog:entries}
{reeposition:put_item}
{/exp:reeposition}
outputs as:
pagination test {reeposition:item}slurp{/reeposition:item} slurp
I’m never gonna get that damned pagination moved now 😊
Well fiddle faddle. Let me explore the code a bit…
[time passes]
Dang bugs. Let’s give Reeposition 1.1.1 a try.
mr wilson, why doesn’t this code work?:
{exp:gallery:categories gallery="gallery" category="[b]{reeposition:put_item}[/b]"}
{category_row}{row}<a href="http://{category_path=gallery/thumbs}">See all pictures in this gallery.</a>{/row}{/category_row}
{/exp:gallery:categories}{/exp:weblog:entries}
is there any chance of creating this functionality in the nearby future?
That’s just a parse order thing. By default, plugins parse from the inside out. That is, plugins and modules inside the {exp:reeposition} tags will be parsed, then Reeposition will do its magic. What you want is the parse=”inward” parameter (an underutilized parameter, in my opinion). Like so:
{exp:reeposition parse="inward"}
{exp:gallery:categories gallery="gallery" category="{reeposition:put_item}"}
{category_row}{row}<a href="http://{category_path=gallery/thumbs}">See all pictures in this gallery.</a>{/row}{/category_row}
{/exp:gallery:categories}
{reeposition:item}my_category_name{/reeposition:item}
{/exp:reeposition}
It’s not doing anything for me. :(
I’m trying to move my Pagination links to a table along the bottom of my site:
{reeposition:item}
{paginate}
<div class="paginate">
<span class="pagecount">Previous posts: {current_page} of {total_pages} pages</span>{pagination_links}
</div>
{/paginate}
{/reeposition:item}
</div>
{/exp:weblog:entries}
And inside my table, I have:
{reeposition:put_item}
{/exp:reeposition}
Any ideas? My Pagination links are in the same place they always are, like nothing even happened.
Switch your code to this:
{paginate}
{reeposition:item}
<div class="paginate">
<span class="pagecount">Previous posts: {current_page} of {total_pages} pages</span>{pagination_links}
</div>
{/reeposition:item}
{/paginate}
</div>
{/exp:weblog:entries}
The Weblog module moves the pagination stuff before Reeposition does anything. That means that in your current setup your {reeposition:item} tags are empty by the time Reeposition runs. Make the change as noted above, and you should be golden.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.