No Entries Displaying
Posted: 21 September 2010 02:20 AM   [ Ignore ]
Wallflower
Rank
Total Posts:  17
Joined  2010-08-24

At first I couldn’t get any fields in my matrix to show up (Inside my matrix tags, I had data that would display that wasn’t from the matrix; outside of my matrix, I had a SafeCracker File, and some text inputs showing fine).

I discovered my paths were set incorrectly in my File Upload Preferences, so I fixed them and the images are uploading now, but nothing within my channel entries tag is rendered. I didn’t touch the template.

EE 2.1.0 | Build: 20100810

Profile
 
 
Posted: 21 September 2010 02:22 AM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

How do things look in the CP? Does it look like all your data is there? Are there thumbnails shown there?

And your channel entries tag, is this a separate template from your safecracker entry form template?

Profile
 
 
Posted: 21 September 2010 02:37 AM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  17
Joined  2010-08-24

Yeah, my data’s all there except for a photo that was larger than the allowed dimensions. Though the other two I uploaded were larger than the allowed file-size… does SafeCracker File not display errors for either of those? The post just went through both in the front-end and the CP.

The channel entries tag is in a separate template.

{!-- index.html --}
{embed
="site/.header"}


    
<h2>Welcome to the Green Roof Blocks Community!</h2>
    <
p>Take a look at our community photos and <a href="{path='community/share'}">share</asome of your own.</p>

    <
h2>Community Photos</h2>
    
{exp:channel:entries
     channel
="community"
     
disable="categories|member_data"
     
limit="25"
     
paginate="bottom"}

        
<div class="community-entry">
            <
h3><a href="{url_title_path='community/project'}">{title}</a></h3>
            <
div class="community-member">
                
{if community-member-avatar != ""}
                    {exp
:imgsizer:size class="avatar" src="{community-member-avatar}" alt="{community-member-name}'s Avatar" width="100" height="100"}
                {if
:else}
                    
<img src="/images/no-avatar.jpg" alt="No avatar" width="100" height="100" />
                
{/if}
                
<class="community-member-meta">{community-member-name} <span class="location">{community-member-location}</span></p>
            </
div>
            
            
{community-member-gallery}
                
<a href="{member-photo}" rel="shadowbox[{community-member-name}-photos]" title="{member-photo-title}">
                    
{exp:imgsizer:size src="{member-photo}" alt="{member-photo-title}" width="196"}
                
</a>
            
{/community-member-gallery}
        
</div><!--community-entry-->

        
{paginate}
            {if {total_pages} 
1}
                
<div class="clear"></div>
                <
p>Page {current_page} of {total_pages} pages {pagination_links}</p>
            
{/if}
        {
/paginate}

    {
/exp:channel:entries}


{embed
="site/.footer"}





{
!-- share.html --}
{embed
="site/.header"}

    
<link href="{path=css/_ee_saef_css}" type="text/css" rel="stylesheet" media="screen" />
    
    <
h2>Share Your Project Photos with the Green Roof Blocks Community</h2>
    <
p>Fields marked with an asterisk (*) are required.</p>

    
{exp:safecracker
     channel
="community"
     
datepicker="no"
     
id="community-entry"
     
logged_out_member_id="12"
     
return="community"
     
status="Open"
     
url_title="{segment_3}"}

        
<label for="title">Project Title*</label>
        <
input type="text" name="title" id="title" value="{title}" size="50" maxlength="100">

        <
label class="display-none" for="url_title">URL Title</label>
        <
input class="display-none" type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50" />

        
{!-- Custom Fields --}
        
<label for="community-member-name">Name*</label>
        <
input type="text" name="community-member-name" id="community-member-name" value="{community-member-name}" />

        <
label for="community-member-email">email* <span class="field-instructions">Will not be shared.</span></label>
        <
input type="text" name="community-member-email" id="community-member-email" value="{community-member-email}" />
        
        <
label for="community-member-location">Location
        <
span class="field-instructions">FormatCityState and/or Country (ex. <em>StLouisMO USA</em> or <em>PortoPortugal</em>)</span></label>
        <
input type="text" name="community-member-location" id="community-member-location" value="{community-member-location}" />

        <
label for="community-member-avatar">Avatar <span class="field-instructions">No larger than 3 KBWill be displayed at 100px x 100px.</span></label>
        
{field:community-member-avatar}

        
<label for="community-member-gallery">Project Photos*
        <
span class="field-instructions">Click on the to add more photos
        
Remove photos by hovering over the row numberclicking the dropdown, and choosing "Remove row."</span></label>
        
{field:community-member-gallery}

        
<label for="project-description">Project Description</label>
        
{field:project-description}
    
        {if captcha}
            
<label for="captcha">Please enter the word you see in the image below*</label
            {captcha}
            
><input type="text" name="captcha" value="{captcha_word}" maxlength="20" />
        
{/if}

        
<input type="submit" name="submit" value="" />

    
{/exp:safecracker}

{embed
="site/.footer"
Profile
 
 
Posted: 21 September 2010 02:39 AM   [ Ignore ]   [ # 3 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Do you get anything if you remove the imgsizer tags? I am not sure that SC File honors your max file upload size, I have to check in to that.

Profile
 
 
Posted: 21 September 2010 02:42 AM   [ Ignore ]   [ # 4 ]
Wallflower
Rank
Total Posts:  17
Joined  2010-08-24

No change. Those were in there earlier too and weren’t causing the things outside of the matrix to not display.

Profile
 
 
Posted: 21 September 2010 02:43 AM   [ Ignore ]   [ # 5 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Try one (or all) of the following in your entries tag:

show_future_entries="yes"
status="not closed"
dynamic="no" 
Profile
 
 
Posted: 21 September 2010 02:54 AM   [ Ignore ]   [ # 6 ]
Wallflower
Rank
Total Posts:  17
Joined  2010-08-24

Blerg. It’ll have to wait until tomorrow. My computer is misbehaving and it’s quitting time.

Thanks for all your quick replies.

Profile
 
 
Posted: 21 September 2010 07:33 PM   [ Ignore ]   [ # 7 ]
Wallflower
Rank
Total Posts:  17
Joined  2010-08-24

Came back this morning and it’s working fine without trying that last suggestion.

Thanks for your help.

Profile
 
 
Posted: 21 September 2010 07:34 PM   [ Ignore ]   [ # 8 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

I bet it was the entry_date was a bit into the future, might be a bug.

Profile
 
 
Posted: 21 September 2010 07:36 PM   [ Ignore ]   [ # 9 ]
Wallflower
Rank
Total Posts:  17
Joined  2010-08-24

I don’t think that was it, because I checked the date column on the Edit Entries page yesterday since I had that problem before the last update of EE.

Profile
 
 
Posted: 21 September 2010 07:36 PM   [ Ignore ]   [ # 10 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Weird. Well, let us know if it happens again smile

Profile
 
 
Posted: 21 September 2010 08:12 PM   [ Ignore ]   [ # 11 ]
Wallflower
Rank
Total Posts:  17
Joined  2010-08-24

Just had the problem again, but it’s resolved with:

show_future_entries="yes" 

Checked the date in the Edit Entries page and it is the time of publish.

Profile
 
 
Posted: 21 September 2010 08:13 PM   [ Ignore ]   [ # 12 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

So it displays the time of the post correctly, but EE thinks it’s in the future? Hmm.

Profile
 
 
Posted: 10 October 2010 06:26 PM   [ Ignore ]   [ # 13 ]
Wallflower
Rank
Total Posts:  7
Joined  2010-10-08

Hi there

I’m getting a related problem.

If I create an entry via Safecracker it’s fine.
If I create an entry via EE CP and then edit it via Safecracker it’s fine.

But if I create an entry via Safecracker and then edit it via Safecracker - it disappears, unless I add show_future_entries=“yes”

Nevertheless the entry date is displayed correctly (and not in the future) at all times.

Thanks
Clifford

Profile
 
 
Posted: 10 October 2010 06:36 PM   [ Ignore ]   [ # 14 ]
Wallflower
Rank
Total Posts:  7
Joined  2010-10-08

PS Fixed by adding

<input type=“hidden” name=“entry_date” value=”{entry_date}” />

- found in another post on this forum.

Profile