Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[META] Layout Followup Issues #345

Closed
34 tasks done
quicksketch opened this issue Oct 9, 2014 · 19 comments
Closed
34 tasks done

[META] Layout Followup Issues #345

quicksketch opened this issue Oct 9, 2014 · 19 comments

Comments

@quicksketch
Copy link
Member

quicksketch commented Oct 9, 2014

In #86, we're working on completing the initial introduction of Layouts into Backdrop. That issue took us far, including introducing Layout module, simplifying Block module, providing contexts, access rules, and an expanded block API. However, there are many, many followups to be done. This issue serves as a listing of sub-issues, which may or may not yet have their own dedicated issues.

edit: I have created a GitHub "Project" for all the Layout related issues that were not completed as part of this meta. To view them all see: https://github.com/backdrop/backdrop-issues/projects/13

Completed and merged

Postponed/not doing

More issues are likely necessary. Let's expand this list as we find more suggestions for the module...

@klonos
Copy link
Member

klonos commented Oct 9, 2014

Mentioning the addition of TouchPunch makes me want to shamelessly "promote" #159

@duckzland
Copy link

Some suggestion that most site builder or themer will need:

  1. Somekind of grid system, bootstrap?
  2. Ability to inject css id and class
  3. Ability to change background, fonts, margins, padding, text alignment etc

I would suggest to take a peek at wp visual composer plugin, although it is not the best coding but their gui served the purpose to help designer create custom layouting with no coding at all.

@ghost
Copy link

ghost commented Dec 5, 2014

As far as I can tell, the only way now to see what blocks are available on a site is via the 'Add block' button when editing a layout. I think a nice feature would be to add a listing of available blocks (a sub-page of admin/reports seems appropriate) to allow users to see what modules are providing what blocks.

@docwilmot
Copy link
Contributor

Few issues I uncovered this weekend:

  • Layout 'content' panel does not populate with "main page content" block if I override an exisiting node path (eg node/50). I've tried, it doesnt happen. Node/% works.
  • Should disable the "Create Layout" button till context ajax process is complete. After youve finished typing in the path, the natural reaction is to immediately click the "Create Layout" button because there is no other action to perform on this page. But if you click the button while the ajax is running you sometimes get ajax error about it being terminated (dont recall the exact error message but its the same one you get if you save a view while its generating a preview).
  • Just one time I got a Undefined index: layout in layout_settings_form_validate() error when saving a custom Layout. Its in my logs together with Trying to get property of non-object in layout_settings_form_validate() (line 448 of C:\wamp\www\backdrop\backdropsite\core\modules\layout\includes\layout.admin.inc).. I imagined it was related to the previous issue re ajax, but not sure, and couldnt replicate it. Hadnt done anything different.
  • There should be a link to add a custom block from Layouts "add block" panel. Currently you have to leave the Layouts interface, go to custom blocks in the menu, then return to Layouts and click add block to find your new block. Better UX I think if there was a link right there.
  • Again in the create layout interface, if you type in the path before you select a Layout or a name for the Layout, when you're done writing the path, ajax runs and gives you an error about the name and field being required. Which is annoying. The validation should ideally be on final submit not on typing the path surely.

@quicksketch
Copy link
Member Author

Again in the create layout interface, if you type in the path before you select a Layout or a name for the Layout, when you're done writing the path, ajax runs and gives you an error about the name and field being required. Which is annoying. The validation should ideally be on final submit not on typing the path surely.

This is actually a much harder problem to solve than it appears. Layout module requires a name before it can start doing anything. The tempstore entry is saved by name, so we can't start doing anything until it is entered. Views has the same problem but gets around it by asking for the name of the view before you are dropped into the main views interface. I don't think introducing a new screen is a good idea for this. We could potentially hide the path option until the name is entered, but I feel like that's misleading the user into thinking the form is shorter than it really is, and would likely cause other UX problems.

Should disable the "Create Layout" button till context ajax process is complete.

Layout 'content' panel does not populate with "main page content" block if I override an exisiting node path (eg node/50). I've tried, it doesnt happen. Node/% works.

Both of these problems are being addressed in #535.

@docwilmot
Copy link
Contributor

Add a custom text block (with token support) for non-reusable blocks (reusable blocks already are provided by Block module, but cannot be exported with the Layout config, as they are entities).

Hadnt noticed this before. This is going to be confusing then, to have three different types of block? Here's a Big Bad Idea: get rid of the current "Custom Blocks" functionality and just have instances of one "Custom Block" block thats added through Layout builder's "Add block" UI.

@quicksketch
Copy link
Member Author

@docwilmot Yeah that's actually pretty much exactly what I was thinking. Only we can't just get rid of all custom blocks in the 1.x cycle, Custom Blocks already a stand-alone module that you can easily disable.

@quicksketch
Copy link
Member Author

Add a custom text block (with token support) for non-reusable blocks (reusable blocks already are provided by Block module, but cannot be exported with the Layout config, as they are entities).

This has now changed. Blocks are in configuration in 1.3.0+ and are going to stick around. See #1428 and #1099.

@mikemccaffrey
Copy link

Does #1528 (Allow a layout to be selected on multiple paths) seem like something we can add to this meta list?

@docwilmot
Copy link
Contributor

I've gone through the remaining issues and made a bunch of PRs. The remaining ones: #943, #1020 and #1022 are all related and awaiting some decision on how to proceed. I dont think I agree with #1025 either, so will wait for some further discussion. And I agree with @quicksketch #1021 is going to be very difficult to accomplish given how the BlockAccess class works.

#1300 should propbably use Region Styles but thats not fully implemented yet.

@docwilmot
Copy link
Contributor

@klonos please test https://github.com/docwilmot/backdrop/tree/conditions. Fixes #943 and #1020. Still in-progress, was hoping to finish this morning, but out of time. And will add #1022 in final PR. Thanks.

@klonos
Copy link
Member

klonos commented Feb 17, 2016

I will do so, but most likely I'll be able to allocate time over this coming weekend. This one is + backdrop/backdrop#1234 is on my list.

...And will add #1022 in final PR.

...while at it, can you tackle #1622 too that is related to the "dirty" flag not firing?

@docwilmot
Copy link
Contributor

Now have #943, #1020 and #1022 done and working in that PR, needs a nojs fallback so I can fix tests. Otherwise looks good.

@Graham-72
Copy link

@docwilmot Great progress! Thanks for all the effort you are putting into this.

@docwilmot
Copy link
Contributor

Thx. These have been lingering too long. Just hope they get reviewed in time to get in 1.4.0.

@mikemccaffrey
Copy link

@docwilmot Sorry, I've been busy finding a place to rent in Portland, but will try to review things soon. Luckily, we still have a bit of time before the 1.4.0 release in May.

@docwilmot
Copy link
Contributor

@mikemccaffrey no worries.

And I'm done. The last remaining two I'm not sure if we should. Leaving them there.

The "long term followups" are higher level stuff and will leave to the experts.

@klonos
Copy link
Member

klonos commented Mar 2, 2016

...I need to find some time to go through the list of issues in the issue summary. Some of the issues I placed there are under the "Has PR" section while there's no PR for them.

@jenlampton
Copy link
Member

Closing this issue since we now have the project https://github.com/backdrop/backdrop-issues/projects/13#card-21014976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants