I have an exported view with a display that overrides the "more link" settings:
$handler = $view->new_display('block', 'About page block', 'block_1');
...
$handler->display->display_options['defaults']['use_more'] = FALSE;
$handler->display->display_options['use_more'] = TRUE;
$handler->display->display_options['use_more_always'] = TRUE;
$handler->display->display_options['use_more_text'] = 'View all news';
This view has been exported to a feature, but the overridden use_more_always and use_more_text are ignored both when viewing the actual block and when editing the view on the site where the feature has been enabled.
Comments
Comment #1
longwavePerhaps this is because the "more link" setting is not available on any of the other (page) displays in the view? I guess maybe I don't need to override anything here..
Comment #2
longwaveI don't think this is the problem but a quick look in views_plugin_display.inc and I noticed in defaultable_sections():
I think that second bool maybe should be TRUE?
Comment #3
longwaveConfirmed #1, in that if I don't use an override, it works as expected. So it seems that if you override a setting that doesn't have a corresponding setting in the master display, the override is ignored and the defaults are used instead.
Comment #4
randallknutson commentedI just ran into this issue with features exported to views not respecting the more text settings.
What I found though was by setting the Link Display under advanced fixed it. Even though it shows the page in the view, you have to click in and actually select it for the settings to be exported. Once I did this the More text worked properly.
Comment #5
randallknutson commentedI take that back. Still not working.
Comment #6
duaelfrSame issue for me : #1470204: [More] links and Features (closed as duplicate)
Let's check and manually fix all views one by one waiting this bug to be fixed :/
Comment #7
westbywest commentedI confirm this problem exists with my setup too:
Drupal 7.12
Views 7.x-3.1
Features 7.x-1.0-beta6
The work-around suggested in #3, i.e. to apply a default setting "More Link: Yes" all displays, and then to apply overridden "More Link: Yes/No" settings to each display as needed, appears to work. Although tedious.
Comment #8
couturier commentedIt could be that this issue would help: http://drupal.org/node/564106
Comment #9
randallknutson commentedWhile the linked issue may eventually fix this bug, it is a feature request, not a duplicate of this bug.