2 of 6
2
Plugin: Reeposition [Was MoveIt]
Posted: 08 September 2006 08:15 PM   [ Ignore ]   [ # 19 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

Are you running Reeposition 1.1?

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 09 September 2006 04:14 AM   [ Ignore ]   [ # 20 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  226
Joined  01-20-2006

yep

 Signature 

buro taggetig: web design & event photography from Belgium.

(call me bob!)

Profile
 
 
Posted: 09 September 2006 07:59 AM   [ Ignore ]   [ # 21 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

Well fiddle faddle. Let me explore the code a bit…

[time passes]

Dang bugs. Let’s give Reeposition 1.1.1 a try.

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 09 September 2006 10:57 AM   [ Ignore ]   [ # 22 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  226
Joined  01-20-2006

ok it works now. thanks for this great plugin.

oh I just noticed I can move stuff above item tags. and have multiple instances of the put_item… oh joy!

 Signature 

buro taggetig: web design & event photography from Belgium.

(call me bob!)

Profile
 
 
Posted: 12 September 2006 09:24 AM   [ Ignore ]   [ # 23 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  226
Joined  01-20-2006

mr wilson, why doesn’t this code work?:

{exp:gallery:categories gallery="gallery" category="[b]{reeposition:put_item}[/b]"}
{category_row}{row}
<a href="{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?

 Signature 

buro taggetig: web design & event photography from Belgium.

(call me bob!)

Profile
 
 
Posted: 12 September 2006 09:38 AM   [ Ignore ]   [ # 24 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

mr wilson, why doesn’t this code work?

Well, it isn’t complete for one thing grin It doesn’t contain any {reeposition:item} pairs, or the {exp:reeposition} tags, for that matter. Can you post a more complete code segment, and a description of what you want to achieve?

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 12 September 2006 10:03 AM   [ Ignore ]   [ # 25 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  226
Joined  01-20-2006

um yeah, I left out all the code that precedes the put_item tags. as I said before, it works nicely, but I also want it to work within tags like exp:gallery:categories or exp:gallery:entries and so on.

 Signature 

buro taggetig: web design & event photography from Belgium.

(call me bob!)

Profile
 
 
Posted: 12 September 2006 10:13 AM   [ Ignore ]   [ # 26 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

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="{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}

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 11 December 2006 09:43 AM   [ Ignore ]   [ # 27 ]  
Grad Student
Rank
Total Posts:  70
Joined  11-04-2006

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.

 Signature 

maurymccown.commy photos

Profile
 
 
Posted: 11 December 2006 09:46 AM   [ Ignore ]   [ # 28 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

In the code you posted you are missing the opening tag:

{exp:reeposition}

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 11 December 2006 09:59 AM   [ Ignore ]   [ # 29 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

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.

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 11 December 2006 02:50 PM   [ Ignore ]   [ # 30 ]  
Grad Student
Rank
Total Posts:  70
Joined  11-04-2006

Sweet! That worked. Thanks!

smile

 Signature 

maurymccown.commy photos

Profile
 
 
Posted: 21 January 2007 12:01 PM   [ Ignore ]   [ # 31 ]  
Grad Student
Rank
Total Posts:  58
Joined  05-12-2006

Please see test site where it says “Caption and Title go here” thats what I would like, the main image caption and title in that position. I have tried the reeposition plugin numerous ways and all I get is the plugin code under the main image.

Thank You
Frank

Profile
 
 
Posted: 21 January 2007 01:20 PM   [ Ignore ]   [ # 32 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

What have you tried? It’s difficult to say where the problem lies without seeing some samples of what hasn’t worked for you. You might also try setting up a very simple demo demonstrating what you want to do with most of the extraneous stuff stripped out. For example, something like:

<body>
{exp:reeposition}

{exp:gallery:categories gallery=”{gallery_name}”}

stuff stuff stuff

<div id=“leftbottominsert”>{reeposition:put_item}</div>
{/exp:gallery:categories}

{exp:gallery:entries gallery=”{gallery_name}” dynamic=“on” entry_id=“8”}
{reeposition:item}Title: {title}, Caption: {caption}{/reeposition:item}
{/exp:gallery:entries}

{/exp:reeposition}
</body>

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 22 January 2007 01:39 PM   [ Ignore ]   [ # 33 ]  
Grad Student
Rank
Total Posts:  58
Joined  05-12-2006

Thank you for your reply Mr Wilson, I have taken a bit of time to try a few things out.
The best I can come up with is to get the Title: {title}, Caption: to show in the correct position but without the title changing for each image.
What I have done is leave the original title in place under the main image to show what the title should be. Please forget the caption for the moment (they do not yet exist).
This original title changes as the images change but the reepositioned one does not.
Example site test site . Small explanation the {if segment_3 ==”“} section operates only on first load the {if:else} section after first load.
Perhaps I am expecting it to do something it was not designed for ie move dynamic tags?

Thank you
Frank

<body>
{exp:reeposition}

lots of stuff

<div id="leftbottominsert">{reeposition:put_item}</div>
        
{/exp:gallery:categories}

more stuff

<div id="rightcolumn">
{if segment_3 ==""}
  {exp
:gallery:entries gallery="{gallery_name}" dynamic="on" entry_id="8"}
    
<a href="{image_url}" rel="lightbox" ><span id="edge"></span> <span id="container"><img src="{medium_url}" alt=""/></span></a>
    
<
p> {title} </p>
    
{reeposition:item}Title: {title}, Caption: {caption}{/reeposition:item}

  {
/exp:gallery:entries}

{if
:else}

{exp
:gallery:entries gallery="{gallery_name}" dynamic="on"}
     
<a href="{image_url}" rel="lightbox" ><span id="edge"></span> <span id="container"><img src="{medium_url}" alt="" /></span></a>

      <
p> {title} </p>
     
{reeposition:item}Title: {title}, Caption: {caption}{/reeposition:item}

{
/exp:gallery:entries}

{
/if}    

{
/exp:reeposition}
</body>

Profile
 
 
Posted: 22 January 2007 01:49 PM   [ Ignore ]   [ # 34 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

I think I see the problem, Frank. Just to verify that I’m right, could you replace

{if:else}

with

{/if}{if segment_3>""}

I suspect a problem with the advanced conditionals…

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 22 January 2007 02:54 PM   [ Ignore ]   [ # 35 ]  
Grad Student
Rank
Total Posts:  58
Joined  05-12-2006

That does it, I do not have a clue why but thank you very much.
Maybe you could expand my knowledge a bit with a short explanation
if it’s not too much trouble.

Frank

Profile
 
 
Posted: 22 January 2007 03:29 PM   [ Ignore ]   [ # 36 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  750
Joined  08-16-2003

For some reason*, EE parses advanced conditionals (conditionals that include if:else or if:elseif blocks) differently than simple {if}{/if} blocks. The latter’s contents are parsed if and only if the condition is true; the former’s contents are parsed no matter what, and the decision to display or not display those contents is made very, very late in the template parsing process.

So how did that affect your situation? Basically Reeposition saw TWO {reeposition:item} tags, whereas you assumed it was only seeing one. (One if segment_3==”“, the other if not.) Since Reeposition doesn’t know what to do with multiple {reeposition:item} tags, it just chose one of them to deal with—the first one it came across.

There are two ways to deal with the problem. One is to do what I had you do and use simple conditionals. It makes your template code a little uglier, but it’s more efficient (EE only parses the content of one of the blocks instead of both of them), and it helps out Reeposition in this case. The other option is to use assign each of the reeposition:item tags a unique ID (i.e. {reeposition:item id=“hello”} and {reeposition:item id=“world”}) ... but I don’t think that’s ideal in your situation.

I’m not sure how good of an explanation that was. Let me know if I can clarify.

* I don’t say “for some reason” to be snarky. I really don’t know. I’ve never looked into the reasons behind the decision to have two different behaviors.

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
   
2 of 6
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64905 Total Logged-in Users: 52
Total Topics: 81844 Total Anonymous Users: 35
Total Replies: 440034 Total Guests: 263
Total Posts: 521878    
Members ( View Memberlist )