help with reeposition
Posted: 03 September 2008 05:25 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  226
Joined  01-20-2006

I’m building a single entry page photoblog and I need to grab the url title of the previous entry and use it as an anchor for the photo. I’m using reeposition but it’s not working for me. Here’s my template setup:

{exp:reeposition}
    {exp
:weblog:entries weblog="{my_weblog}" limit="1" disable="member_data|categories|trackbacks"}
    
<div id="wrap-{if ratio =="Landscape"}landscape{if:else}portrait{/if}">
        <
h1>{title}</h1>
        <
h2>{entry_date format="%d.%m.%Y"}</h2>
        <
div id="photographer">drieduizendvijfhonderd {if photo-original-location}<a href="{photo-original-location}"><span>{photographer-name}</span></a>{if:else}<span>{photographer-name}</span>{/if}</div>
        <
div id="photo"><a href="{reeposition:put_item}"><img src="{photo-url}" alt="{title} &copy;{photographer-name}" border="0" /></a></div>
        
{if caption}<div id="caption">{caption}</div>{/if}
    {
/exp:weblog:entries}
        
    {exp
:weblog:entries weblog="{my_weblog}" limit="1" offset="1" disable="member_data|categories|trackbacks"}
        {reeposition
:item}{homepage}{url_title}/{/reeposition:item}
    {
/exp:weblog:entries}
    
    
    {if segment_1
== ""}
        {exp
:weblog:entries weblog="{my_weblog}" orderby="date" limit="1" offset="1" disable="member_data|categories|trackbacks"}
        
<div class="prev-next"><a href="{homepage}{url_title}/">&larr;</a></div>
        <
div class="prev-next">&rarr;</div>
        
{/exp:weblog:entries}
    {if
:else}
        {embed
="embeds/prevnext"}
    {
/if}
    
</div>
{/exp:reeposition}

This approach is working but only on the first page. On all other entry pages {reeposition:put_item} isn’t rendered.

 Signature 

buro taggetig: web design & event photography from Belgium.

(call me bob!)

Profile
 
 
Posted: 04 September 2008 07:31 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  226
Joined  01-20-2006

after some extra testing it turns out reeposition has nothing to do with this. feel free to close

 Signature 

buro taggetig: web design & event photography from Belgium.

(call me bob!)

Profile
 
 
   
 
 
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: 64912 Total Logged-in Users: 26
Total Topics: 81864 Total Anonymous Users: 12
Total Replies: 440102 Total Guests: 169
Total Posts: 521966    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb