I created a views slideshow of the products in our store. The products are viewable by anonymous users. I placed the slideshow in a block, but the block isn't viewable by anonymous users. I've got all views viewable in permissions. What else could I look at?

CommentFileSizeAuthor
#9 from_scratch.txt6.42 KBwrd
#9 cloned.txt6.42 KBwrd
#6 Products_Views.txt4.44 KBiharley

Comments

redndahead’s picture

Status: Active » Postponed (maintainer needs more info)

It could be a problem with the block caching. Can you try the latest development version or wait until tomorrow when 2.1 is released and tell me if it fixes your issue?

redndahead’s picture

New version is released please check it out.

iharley’s picture

Hi there. Just installed the latest version (2.1) and I'm still having the problem. If you want to have a look at it, it's at www.starlightjournal.com. On the right sidebar, under the search you'll see the titled Block with nothing in it. Now, I have this same module (2.0) working on a different site without any problems. Where do I control block cacheing?

redndahead’s picture

It looks like whataver field you are trying to show is not printing. Can you export your view and attach it here?

redndahead’s picture

Make sure that if you have field permissions enabled the user has the right to view the field.

iharley’s picture

StatusFileSize
new4.44 KB

Here's my exported View

redndahead’s picture

What's going on with the text of your field being:

.views_slideshow_singleframe_slide {
left:50% !important;
margin-left:-465px;/**Half of the total desired width of the div**/
text-align:center;
width:930px !important;/**The total desired width of the div**/
}

This should be setup inside your css file.

iharley’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I'm not sure where, or how that bit of code got in, so I just rebuilt the views (without cloning, which I tried once before) and it's now showing up just fine. Thanks a lot for your help, really appreciate it!

wrd’s picture

StatusFileSize
new6.42 KB
new6.42 KB

I'm having a similar problem, with a pretty bizarre twist.

I started with Views Cycle, and had trouble getting it to display correctly (the initial slide always displayed with the list item bullet, messing with the layout, correcting itself only when it rotated to the second slide). So I tried Slideshow, and had no such problems.

When I switched to slideshow, I cloned the view I had created for Views Cycle and then changed the display from Cycle to Slideshow. This worked fine while I was logged in -- however, similarly to the original poster, anonymous users get no content from the view. They get all the markup to support the seven results that the view should be returning, but none of the field content.

Like the original poster, I tried rebuilding my view from scratch. The result: anonymous users still couldn't see the content, the slideshow didn't work at all and the pager didn't display. Cloning a Views Cycle view again produced a working slideshow, but anonymous users still couldn't view it.

I am using the new 2.1 release. I've attached an export from both the cloned view and the view I built from scratch. The diff is trivial, though:

--- C:\Documents and Settings\DicksB\Desktop\from_scratch.txt 
+++ C:\Documents and Settings\DicksB\Desktop\cloned.txt 
@@ -1,5 +1,5 @@
 $view = new view;
-$view->name = 'Features';
+$view->name = 'Features_rotator';
 $view->description = 'Features view with slideshow';
 $view->tag = '';
 $view->view_php = '';

Clearing the cache has no effect. Neither version is visible to anonymous users. Only the cloned version actually rotates (and is visible only if logged into the site).

Any thoughts? I'm pretty stumped, but I'm new to this.

wrd’s picture

Status: Closed (fixed) » Active
wrd’s picture

Status: Active » Closed (fixed)

My apologies; I did not fully understand how many places view permissions can be set. Some experimentation cleared up the problem with the anonymous users.

The problem with views built from scratch remains, but I'll submit that as a separate issue.

rwilson0429’s picture

Issue summary: View changes

Disabling SQL query rewriting under the Query settings under the Advanced section of the view fixed it for me. This issue seems to be related to View set to "Slideshow" format does not display for anonymous users, https://www.drupal.org/node/1822422.

brtamas’s picture

Hi,

For me it helped when I switched off the rendered output caching on the views slideshow block. I have left the query result caching on, it was no problem.

(Maybe the code puts some js and css to the html during the rendering through some hook...)