Jump to content
bluecloud

Viewer plugin not working ok with [gallery] in template

Recommended Posts

bluecloud    3
bluecloud

I recently purchased the viewer plugin and it is really looking great. But I have problems to get working properly inside a template.

I use this now html/php inside my template:

<div class="tab-pane" id="tab2">

<?php echo do_shortcode('[gallery]'); ?>

</div>

All attached images are showed but it looks like the viewer plugin is not loaded.

You van see it here:

http://apsupport.nl/objecten/ruiterweg-29-castricum/

In first tab "Omschrijving" is it working ok; In this I have included [gallery] in the post editor.

In the 2nd tab "Foto's" is it not working and this one is included in the template.

  • Like 1

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

Hi!

Seems to be working ok for me? Also, it's only going to load on the page it's used on. So because Tabber pulls in content with the_content, Viewer thinks it's not being used there.

 

http://screencast.com/t/tg04y1jc

 

You also have an undefined index from your maintenance plugin.

  • Like 1

Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
bluecloud    3
bluecloud

I have included it twice:

 

1) In the tab "Omschrijving".  This is the post-content and I have added the shortcode [gallery] manually to the post content. This is working ok.

 

2) The shortcode [gallery] in the 2nd tab "Foto's" is included in the template with the code <?php echo do_shortcode('[gallery]'); ?> and in this tab it is not working ok

 

btw: I do not use the Tabber section on this site.

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

Right on, looked like it sorry. But yeah Viewer is only going to work on the pages that actually have a gallery, otherwise your [gallery] shortcode has no idea what gallery to load. So in other words, it's only going to work on pages that have [gallery], as it loads the attachments from that specific page/post.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
bluecloud    3
bluecloud

Hmmm.. I still don't get it.

All images shown in this gallery are attachements from this specific post.  Here is another example:

http://apsupport.nl/objecten/den-burglaan-18-limmen/

 

And as you can see in the html-source from this page are all images inside <div class="viewer-wrapper"> 

Share this post


Link to post
Share on other sites
bluecloud    3
bluecloud

Added the post ID, but this doesn't change anything

 

<?php echo do_shortcode('[gallery id="'.$post->ID.'"]'); ?>

Share this post


Link to post
Share on other sites
bluecloud    3
bluecloud

Is there another way to add a gallery to a specific page? But not manually in the post editor, because my posts are automatically generated.

Share this post


Link to post
Share on other sites
bluecloud    3
bluecloud

Sorry to bother you again, Nick. 

But why is the featured image not shown in the Viewer gallery?  With the plugin is disabled, the featured image is shown in the gallery.

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

Hi, 

It's designed to excluded the featured image, as most folks will have a certain cropped size, and that size is too small to be displayed in the plugin.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
bluecloud    3
bluecloud

...... would have been better to let the user decide to include it or not (through an option in the dashboard).

Share this post


Link to post
Share on other sites
bluecloud    3
bluecloud

I'm a huge fan of your products Nick, but I think you should change this is the Viewer plugin. 

There is no way to get the image included in the Viewer gallery. Even when the image ID is specified in the IDs option, is it not shown, In my opinion is that not correct.

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

You are the only person out of hundreds that have asked for this. If the majority of users start asking for features, that's when things get added. I can't accommodate everyone's requests.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Similar Content

    • suerama
      By suerama+
      Hi, I recently updated wordpress and plugins and now changes simply do not register at all in the DMS interface. At first I can type in a textbox field, but I don't see that affecting the type on my page. Then I publish, see no effect. After that I can no longer even type in a text box interface field. 
       
      Wordpress interface works normally, it's just the DMS that isn't functioning.
       
      I'm setting up a dev site to troubleshoot this by disabling plugins, or reverting to a saved backup, etc. But I thought before I go to all the trouble someone might have a tip for me.
       
      Thanks in advance!
    • JimP
      By JimP
      For some reason, I can't install this theme, as per below "missing style.css stylesheet" ...any ideas? thank you. Jim Installing Theme from uploaded file: Viewer_v1.0.1.zip Unpacking the package…
      Installing the theme…
      The package could not be installed. The theme is missing the style.css stylesheet.
      Theme install failed.
    • suerama
      By suerama+
      My quotes section often has black lines appearing in it. Sometimes it's 1 thin black rule that sits under the quote, other times, in some browsers the lines appear as you switch slides, and are of varying width.  
       
      At one point I tried to change the color of the slider background color to black as a quick fix, but that change did not register (though it appears correctly in the UI.)
       
      I found a forum answer that said that the quotes slider uses the background color of the site, so I thought that was an issue, but the background color for my site is white, not black.
       
      I have Quotes sliders on these pages, and the black lines often appear on one of these sliders and not the other, in unpredictable ways. 
       
      http://ramacommunications.net/
      http://ramacommunications.net/websites/
    • kmpeter
      By kmpeter
      Any manual for;
       
      Video & Photo Gallery Full-Width Quotes Section Featured Shelf Custom Post Type SuperGrid Social Bar with 20+ Icons Flexible List Area ShoutBox Projects section with taxonomy filter and other custom settings
    • arno
      By arno+
      DMS2 has introduced a lot of great capabilities and features.
      Viewer provides its own set of features, mostly meant to complement DMS1.
       
      With DMS2, how much overlap and redundancy does the Viewer theme have?
      Does still make sense to use it at a child theme? Are there even some potential conflicts?
      Is there now a better starter theme for DMS2?
       
      Btw, I wish all developers of sections, plugins, and themes for DMS1 would make a statement about the compatibility and fit with DMS2.
       
      Thanks!
×