Hi there, I'm new to DS and it looks great, but due to some unrelated reasons I need to disable it. Unfortunately, I'm unable to disable DS by using the "select a layout" feature and choosing "none". See here: http://i.imgur.com/KKOBO.png

So basically I want to go back to the form layout from before I enabled DS - just the basic panel override. But the option in the DS UI isn't presenting itself to me and disabling the DS module didn't have any affect.

Thanks for your time.

EDIT: To be fair, since I'm new to DS I'm not 100% sure what the problem is. It might also be that when I switch back to "layout: none" no changes take effect.

CommentFileSizeAuthor
#19 1421908-19.patch16.98 KBswentel

Comments

Anonymous’s picture

have you tried flushing caches after making the change. I dont seem to be able to recreate this issue

damontgomery’s picture

I am also having the same issue.

Turning off devel and devel_themer seemed to help a bit. After disabling them, I could revert to -none- for one content type but not the one I wanted. Our Page content type is using DS, but in a useless form (1 column) and I want to turn it off. Nothing seems to work so far. This was set months ago though. The one I just tested on, Article, which wasn't previously using DS, can enable and revert no matter what.

Very frustrating since DS seems to have taken all control of our template files for specific fields away from me. I can probably use pre-processing functions, but I'd like to keep some consistency on our site. It's not like I can delete all of our Page files either and make a new content type.

I'll keep trying.

Set-up:
Drupal 7.12
DS 7.x-1.4

damontgomery’s picture

Update: Disabling and re-enabling DS seems to allow me to select -none- from the layouts. Not sure if this will trash all your DS settings. My guess is that it won't but I haven't tested.

Seems my issues with using devel_themer may be because we are using workbench which seems to be confusing things.

Will check out things more, but give the above try on a test copy and see if it fixes your problems.

mortendk’s picture

i have the same exact problem :(
besides of that i dont have workbench or theme devel etc installed - it seems like the only option is to disable DS ... which hardly is the plan i guess?

swentel’s picture

Weird, can't you just simply select 'None' and hit 'Save' ? That should remove any chosen layout.

swentel’s picture

Status: Active » Closed (cannot reproduce)

I honestly still can't reproduce this, so not sure what might be wrong.

gfdickinson’s picture

I am experiencing the same behavior. The button to apply is greyed out and disabled which makes it impossible to submit the form with a value of none once you have chosen a custom layout.

librarychik’s picture

I am also experiencing the same issue. subscribing...

milesw’s picture

Same issue here, and I've tracked down my issue to exportables.

All my ds view modes are exported as features. When removing the active layout (selecting "- None -" and hitting Save), it will remove that active layout from the database, but the exported version remains. Unfortunately I don't see an easy way to fix this, apart from making "None" some kind of dummy layout, which is an ugly solution.

I suspect others experiencing this issue also have exported ds configuration, and @swentel and @bukem were testing with config stored in the database. If those watching this issue could chime in and confirm, that would be helpful.

dsbrianwebster’s picture

Subscribing

my-family’s picture

The same problem if using ds layouts inside features. I have to disable the feature first, then change the layout to "None" (it works if the propper feature is disabled) and create the feature again.

joelcollinsdc’s picture

Priority: Normal » Major
Status: Closed (cannot reproduce) » Active

Confirmed with the dev branch. This is a pretty major issue. Basically this means DS can't be used in a distribution as users wouldn't be able to disable DS on a view mode provided by the distribution.

joelcollinsdc’s picture

Version: 7.x-1.4 » 7.x-2.x-dev

changing version

joelcollinsdc’s picture

Title: Unable to "select a layout: none" » Exported display suite settings are unable to be disabled

changing title

swentel’s picture

Title: Exported display suite settings are unable to be disabled » Allow exported display suite settings to be disabled
Category: support » feature
Priority: Major » Normal

Aha, could reproduce this with exported settings as well, that's probably what's happening in the original request as well.

I know CTools has support for disabled/enabled objects which should be possible to use as well. It will involve some UI changes on the layout settings form.
Not sure when I have time for this, maybe during DrupalCon where we'll be doing a sprint.

joelcollinsdc’s picture

if you point me in the right direction i'd be happy to make an attempt at it. what module does something similar?

swentel’s picture

On top of my head:

You'll have to change to 2 functions in DS

- ds_get_field_settings()
- _ds_entity_info_alter()

Both functions load their settings via ctools_export_crud_load_all(). On every object there should be a disabled state so you can just skip that object.

As for CTools functions, ctools_export_set_object_status() in export.inc is the main function we'll need to use.
We'll probably need an extra page callback to passes the object that needs to be disabled and enabled.

As to make this available in the UI, you'll have to look at ds.field_ui.inc around line 1469 to check on the export_type key on the object.

I'll add more info in case I think of more.

swentel’s picture

Assigned: Unassigned » swentel
Category: feature » bug

Moving to bug report, will fix first in 7.x-2.x branch.

swentel’s picture

Version: 7.x-2.x-dev » 8.x-2.x-dev
Status: Active » Patch (to be ported)
StatusFileSize
new16.98 KB

Fixed in 7.x-2.x branch, moving to 8.x-2.x

swentel’s picture

Version: 8.x-2.x-dev » 7.x-2.x-dev
Status: Patch (to be ported) » Closed (fixed)

Actually, D8 doesn't have the concept of 'default' configuration and packages and such, so this is good.

swentel’s picture

Issue summary: View changes

Just adding more information.