Changes not showing in front end when modifying .twig file? - twig

I am trying to stop the auto-scrolling of the carousel on my page. I navigated to /catalog/view/theme/default/template/extension/module and deleted the autoPlay function off of carousel.twig. However, when I go to my website, the carousel still moves as usual.
I've tried resetting my cache, and even visited the website with other devices.
My host doesn't seem to use any sort of caching. And I doubt it's because of that as all other changes usually show instantly.
I also have the same problem with the stylesheet.css; when I change the .body color attribute, the background color of the site doesn't change from white.
Can someone tell me what I'm doing wrong?
Thank you!

I got same issue. Please check your storage folder path and ensure storage folder path is correctly define in upload->config.php and upload->admin->config.php. Then disable cache using admin dashboard controls..

The reason could be from twig caching
system/library/template/Twig/Environment.php
set this value $this->debug to (bool) true
$this->debug = (bool) true;
it will disable caching during development
this helped me solve caching problem,
https://twig.symfony.com/doc/2.x/api.html#environment-options

I assume that your carousel is made by javascript code (and the mention about the css file supports my assumption) and both of there files are cached in your browser for sure. If you're using Chrome then you can disable caching in developer console (F12) -> Network tab -> Disable cache checkbox.

Try deleting everything in system/storage/cache/ to clear the cache. That is what worked for me.

you must disable caching theme
]1

Related

Rotating banner images are displayed one below the other

When I try to implement rotating banner (RotatingImagesComponent)images are getting displayed one below the other in hybris 1905 on Any quick help is appreciated. I have tried SimpleResponsiveBannerComponent, but same effect.
I assume you're trying to add a slider/carousel to your storefront.
The RotatingImagesComponent is a container used to render multiple BannerComponent components in a carousel.
Try adding BannerComponent type of components inside the banners section of RotatingImagesComponent.
faced a similar issue in past, in my case it was because of conflict between different versions of the bootstrap file(stand-alone file and CDN). If no problem with the hybris, please check the UI side.
That looks like your static files (js, CSS, etc) were not loaded properly.
Check first the console and network in the browser's developer tools for the particular page. to identify the errors that might be there

Auto Save or Prompt before navigating away from text editors in Kentico CMSDesk not working

Auto Save or Prompt before navigating away from text editors in Kentico CMSDesk not working. I already set the Settings -> Content Management -> Prompt to save changes on exit to checked, but didn't work. Can somebody help me.
-Thanks in advance
What I would suggest is to enable the developer tools in chrome or firebug in firefox and check, if there are any javascript errors in your pages. it's possible that some custom javascript interferes with this check. Check for any errors and try to resolve them. Or, as a test, try creating a completely blank page in the content tree, with only an editable region and disable any master page inheritance so there won't be any custom code used on your page and test, if it works there. If it does, then keep adding your scripts and test to see which component or script is causing the issue. Also make sure your settings are enabled on a site level in the settings application.
Which version and hotfix do you use? I suppose you are using v7 (or less - because of CMSDesk). Please note there were some bug fixes related to prompt in CMSDesk (eg. in 7.0.80).
Content editing - The ‘Prompt to save changes on exit’ setting didn’t work correctly
You can find more information about hotfixes and fixed bugs here.
edit: after additional info (screen from your console) I think you have registered your own jquery and you don`t have registered it in no conflict mode. Can you agree? Could you register your jquery in nonconflict mode and try the prompt behavior again?

why is the javascript and css unaltered on the web browser?

I just ran into a problem, While I was updating the js and css files for my website on a server, I do not see the immediate change. However, if I were to edit these files on a local computer or go on incognito mode on chrome, I see the change right away.
let's say I have:
div{width:100px}
after I change it to div{width:200px}, when I pop open the developer tool, it still reads div{width:100px}.
I feel like I need to clear something for the broswer, any explanation for this?
Check the caching headers you are using for static resources. The browser is likely using a cached version.

The entity's form doesn't get updated

I have a HTML file, which I've uploaded as a web resource and linked to via an activity's form designer in an IFRAME. So far, so good.
Then, when I edited the source file locally and uploaded it (browse-save-publish, of course), I got no difference in the appearance on the screen. Here's the weird part. When I open the uploaded file in the editor, I can see the changes to my source code. On the RTF tab I can also see the change in colors of the background.
However, reloading the "create new"-form doesn't bring those changes to the client! I've tried restarting the window, restarting IE, clearing the cache. Nothing helps.
When I entered the very same page from a different client, I got to see the updated version. But after that, the subsequent changes are not updated either. It's like if IE thinks "oh, matey, ya wanna cache that for life, I see". Well, I don't. I'd like to see my edition in action pretty much directly and without creating a new account with a new client. :)
After a while, the update seems to go through and I get to see a new version but not in all browsers.
What is causing it?! How do I kill it?
(Win8/IE10/CRM11OL)
I have seen CRM do some weird IIS Caching. I'd assume this is a server side issue, but your using crm online, they won't let you run an IIS reset now will they? :) Have you tried running it on a new client in private browsing mode, deploying your change, and opening a new private browser to test if it is a client caching issue or a server caching issue?

Website renders differently on server vs locally

I'm having a very bizarre issue. I have been building a website locally on my linux box and all was well until I uploaded the site files to a place where i have some hosted space. Everything renders exactly the same except one element in my footer which i think is affecting some jquery animation i am using. I thought maybe I was missing files or hadn't uploaded the latest versions of everything, so I deleted the server directory and re-uploaded everything exactly as is from my local copy. And yet, the problem remains. I'm not sure how this is happening. Has anyone seen this before, or does anyone have an idea what could cause this? I'm baffled! Thanks everyone!!! I am attaching screen shots.
Seems to be a cache problem. Try to force a refresh with F5 or CTRL+F5.
Try clear your cache in your browser settings.
If that don't work, use Firebug (an Firefox browser addon) to check actual css at your footer. This will show the problem.
BTW: don't use spaces in your URL if you can. Don't use spaces in your filenames/folders.

Resources