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: Switching layouts changes Structure Page URL

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

M Zalm

Jul 11, 2012

Hello again,

I’m experiencing another bug in Blueprints v2 that is a bit of a doozie:

When I select a new layout and click “Load Layout,” the Publish screen refreshes and the layout changes as it should, but the information in the Structure Page URL field gets changed somehow.

On my dev site (the access I gave you earlier this week should still work), it seems to wipe the Structure Page URL clean.

On my local dev site (which has a lot more pages in Structure) it actually repopulates the field with the Structure Page URL from another page!

Since this isn’t a live site and since I’m the only one working with this site at the moment, it won’t keep me from continuing my site development, but I can imagine it being a bigger deal for others.

As always, let me know if you have questions or if you need me to tweak anything or load a new version.

#1

Megan Jane D-S

I’m experiencing this too and it’s HELL critical for me that it changing the Structure URL! Clients are not going to like fixing the Structure URL if they change the layout.

Can we have a fix on this ASAP?

#2

BoldMinded (Brian)

Zalm, I’m not able to login to the CP with the info you provided.

#3

BoldMinded (Brian)

Guys, this is actually an issue with Structure and its because it is setting a hard string override on the field value when it isn’t actually needed. You can edit the tab.structure.php file to fix it:

ln 131 - Remove the string_override row from the array.

$settings[] = array(
   'field_id'    => 'uri',
   'field_label'   => $listing_parent ? lang('tab_listing_url') : lang('tab_page_url'),
   'field_required'   => 'n',
   'field_data'   => $slug,
   'field_list_items'  => $uri,
   'field_fmt'    => '',
   'field_instructions'  => '',
   'field_show_fmt'  => 'n',
   'field_fmt_options'  => array(),
   'field_pre_populate' => 'n',
   'field_text_direction' => 'ltr',
   'field_type'    => 'text',
   'field_maxl'   => 100,
   // 'string_override'  => $uri_override
  );

ExpressionEngine does not know how to handle string_override values when loading autosave data… there basically is no way to know what the dev wants to override with.

Login to reply