This forum is for assistance with theme development.

Twig performance

I'm just finishing up my first D8 development and looking to refine the performance of the site.

Surprisingly I'm seeing some pretty scary processing time of twig templates by webprofiler. An uncached page has >7000ms of twig processing which is mostly consumed by views-view.html.twig, views-view-unformatted.html.twig and a node template. The best cached performance still sees twig consuming 500ms and a page load is around 1300-1600ms.

With BigPipe turned on I can achieve 400ms twig, page load of 1000ms.

This is on an idle 4 core server.

Start location by Geolocation Module

Hello everyone,

is there an option to set the start location at Google Maps, using the Geolocation Module? I have already tried with the "Google Maps Additional Parameters" by "Web Services Settings" and the JSON styles by "Field->Widget settings". Noone shows any change at the behavior of the Map.

I am in Ecuador. Google Maps starts with some location at the cost of Africa!

Thanks in advance for your help.

Regards,
KAS

.

I solved my question. There is no way to delete a post?

Javascript library not loading CSS

Hi everyone. I'm new to Drupal and it's theme development. I am wanting to add in the Remodal jQuery library and have it active site wide, but I don't it to be a module. My questions are:

1) If I use drupal_add_library, do I need to create a module with the hook_library? I didnt' use this, just wondering.

2) Currently I have this in my template.php with the remodal library in my sites/all/libraries/remodal:

Excluding Node from search results

Hi,

We're developing a theme where the content the user can see is depending on a choice he made when visiting the site. The Search results alsoe need to be trimmed depending on that choice.

I created a function theme_preprocess_search_result(&$variables) that verifies that the user can see the node or not:

create category and subcategory menu on the left sidebar

I need a category, subcategory and subbactegory based solution for example

  • Project
    • Web project
      • Project 1
      • Project 2
    • Desktop project
      • Project 1
      • Project 2

Project 1 (when i click this then content appear on right side)
Project 2 (when i click this then content appear on right side)
Desktop project

Pages

Subscribe with RSS Subscribe to RSS - Theme development