Redirect user when batch ajax encounters an error

I have a batch and when the operation is running and encountered

"An AJAX HTTP error occurred."

I want to redirect the user to another page and display the errors nicely. How can I do that with D8 batch? 

Thanks in advance!

New to D8 and Twig, need local dev suggestions

Howdy all...

I've got a local environment with MAMP, Codekit and using Visual Studio Code. I've got my Pantheon site running locally, but whenever I edit a twig file, I can't get the changes to show up on the live reload. I have to commit and push and clear caches on the dev server. 

What am I missing so I can do local dev? I want my edits to the twig file to show up locally on live reload.

Thanks in advance, y'all!!

Issues with views and blocks

Hi,

I have some problems displaying some view blocks. As the admin, I can see the blocks no problem, yet when non-authenticated the blocks do not appear. At first, I thought it could have something to do with the permissions and the roles, however, when using Microsoft Edge and Opera browser (as a non-authenticated user) I can see the blocks. The problem only seems to appear in Mozilla Firefox and Google chrome.

Display article field image in custom header block

I'm building my first custom theme, and I'm a big stuck on a custom function. I'm trying to program my article pages to pull field images (associated with that specific article) into the header. I'm new to PHP and not sure if that's where I'm going wrong.

**FYI I've edited the actual theme name to "THEME" in the function below.

Views creation question - Today in history

How do I create a view that shows all the website's entries from today, but 1, 2, 3 etc. years ago? I'd like to build a 'today in history' feature on my website, because I have a LOT of pages with the field Date.

I've tried several tips that I found online but they apply to Drupal 7 and I have a Drupal 8 site. I'm sure this must be possible, but I just don't know how to make it work.

Ubercart Created User And Fields

I have added address and a text field for phone number (don't want/need the "phone field type") to the profile of a new site I'm working on.  It is a "live" site with a small user population.  It is an ubercart site and of course a purchase will create an account.  What I want is the address and phone number from the order to auto-populate on the newly created profile, otherwise new members (it is a membership club and the item to purchase is membership dues) will need to update their profile manually.

Is there a simple rules based way to accomplish this?

Stuart

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x