Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Detailed Template Visibility after update not well

Status Resolved
Add-on / Version
Severity Trivial
EE Version 16

Natetronn

Jul 17, 2013

Hi,

EE v2.4.0 - Build: date 20120123

I just updated Blueprints from 2.0 to 2.0.6 (deleted and replaced folders and ran module updates and refreshed ext. page etc.)

When I create a new page and use the Structure tab to select a template my “Pages” channel isn’t respecting the previous “Detailed Template Visibility?” options which were set.

The templates are still selected in the select area as before though, said templates aren’t available in the options.

If I change “Enable Template Carousel?” to NO I get all my templates in the drop down but, if I change it to YES I only get 2 out of 6.

The two visible in carousel mode happen to be defined above “Detailed Template Visibility?”

I can use the drop down for now I hope* and why I didn’t set this to critical.

*I hope that change doesn’t effect any of the current options; I still need to verify.

Any thoughts on this by chance?

Thanks!

#1

BoldMinded (Brian)

Can you provide CP access?

#2

Natetronn

The “permission giver” is on vacation so we are trying to get permission and why I didn’t list the details to start with. Be in touch as soon as I have the go ahead or not.

Thanks!

#3

Natetronn

Okay, I added access details.

#4

BoldMinded (Brian)

New build emailed.

#5

Natetronn

Brian,

Just going through the new build and it’s still not showing the items from “Detailed Template Visibility.”

I just added a new template to the Pages channel and only the ones above are being set.

Would you mind taking another look?

#6

BoldMinded (Brian)

I can give it another look, but it’ll be a couple of days.

#7

BoldMinded (Brian)

Nate, try it now. Think its fixed.

#8

Natetronn

Hey Brian,

Do you know if what you did may have caused an issue with the site loading by chance:

http://reso.focuslabllc.com

I made a few small commits including adding a new template yesterday but, nothing major and not sure why the whole site isn’t loading.

I don’t want to take up more of your time than need be and I’m not sure your changes are the cause of course though, it was around the same time give or take.

I’d like to set blueprints back to see if it was the cause or not. Do you have a copy of the version 2.0.8 before I do?

Thanks!

#9

Natetronn

I can of course download it myself before I do. Be in touch.

#10

BoldMinded (Brian)

This is the change I made, not sure how that would stop the FE from loading though, this method is only called in the CP.

diff --git a/third_party/blueprints/helper.blueprints.php b/third_party/blueprints/helper.blueprints.php
index 04c14f340b090954c94081e64ffcbc60a8e21e83..5ebc64f9de5d51fa29a6232316013d8b18458d6d 100644
--- a/third_party/blueprints/helper.blueprints.php
+++ b/third_party/blueprints/helper.blueprints.php
@@ -167,12 +167,20 @@ class Blueprints_helper
             {
                 if ($layout_data['template_id'] == $setting_data['template'])
                 {
-                    $new_array[] = $layout_data;
+                    $new_array[$layout_data['template_id']] = $layout_data;
                 }
             }
         }
 
-        return $new_array;
+        foreach ($layouts as $template_data)
+        {
+            if ( !array_key_exists($template_data['template_id'], $new_array))
+            {
+                $new_array[$template_data['template_id']] = $template_data;
+            }
+        }
+
+        return array_values($new_array);
     }
     
     public function get_site_index()
#11

Natetronn

Yeah, I figured as much though, it was time wise conicidental is all.

I’m looking into other causes now.

Thanks for you time!

#12

Natetronn

I re-uploaded my local copy of the DB and it’s working fine now.

Your latest changes did in fact fix the issue. The extra templates are now showing up in the Carousel.

Will this be considered 2.0.7 going forward?

Thanks again Brian!

Login to reply