Matthew Fay Posted January 4 Share Posted January 4 Maybe I'm a bit stupid but... Am I missing something, even after whiping my cache changes are not showing up on particular files when syncing designers mode? Link to comment Share on other sites More sharing options...
Marc Stridgen Posted January 4 Share Posted January 4 Do you have a simple example? Also, are they actually showing while you are in designer mode? Link to comment Share on other sites More sharing options...
Matthew Fay Posted January 4 Author Share Posted January 4 (edited) The template that has been modified is the one that is in use, in themes/2/ Here's an image of what mobileNavBar.phtml has been modified to on cpanel and also in the advanced editor:Â This is what was added:Â <li class='elMobileNav__discuss'> Â Â Â Â Â Â <a href="https://starkest.net/forums/"><i class="fa fa-comments" aria-hidden="true" style="transform: translateY(-1px);"></i></a> Â Â Â </li> Â <ips:template parameters=" " /> <ul id='elMobileNav' class='ipsResponsive_hideDesktop' data-controller='core.front.core.mobileNav'> {{if \count( \IPS\Output::i()->breadcrumb )}} {{if \count( \IPS\Output::i()->breadcrumb ) == 1}} <li id='elMobileBreadcrumb'> <a href='{setting="base_url"}'> <span>{lang="home"}</span> </a> </li> {{else}} {{$i = 0;}} {{foreach \IPS\Output::i()->breadcrumb as $k => $b}} {{if $i + 2 == \count( \IPS\Output::i()->breadcrumb )}} <li id='elMobileBreadcrumb'> <a href='{$b[0]}'> <span>{$b[1]}</span> </a> </li> {{endif}} {{$i++;}} {{endforeach}} {{endif}} {{endif}} <li class='elMobileNav__home'> <a href='{setting="base_url"}'><i class="fa fa-home" aria-hidden="true"></i></a> </li> <li class='elMobileNav__discuss'> <a href="https://starkest.net/forums/"><i class="fa fa-comments" aria-hidden="true" style="transform: translateY(-1px);"></i></a> </li> {{$defaultStream = \IPS\core\Stream::defaultStream();}} <li {{if !\IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'discover' ) ) }}class='ipsHide'{{endif}}> <a data-action="defaultStream" href='{{if $defaultStream}}{$defaultStream->url()}{{else}}{url="app=core&module=discover&controller=streams" seoTemplate="discover_all"}{{endif}}'><i class="fa fa-newspaper-o" data-item="newspaper" aria-hidden="true"></i></a> </li> {{if !\IPS\Member::loggedIn()->restrict_post and \count( \IPS\Member::loggedIn()->createMenu() )}} <li data-ipsDrawer data-ipsDrawer-drawerElem='#elMobileCreateMenuDrawer'> <a href='#'><i class='fa fa-plus'></i></a> </li> {{endif}} {{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'search' ) )}} <li class='ipsJS_show'> <a href='{url="app=core&module=search&controller=search" seoTemplate="search"}' data-class='display--focus-mobile-search'><i class='fa fa-search'></i></a> </li> {{endif}} {template="mobileNavBarLinks" app="core" group="ipsfocus" location="front"} {template="mobileNavigationIcon" app="core" group="global" params=""} </ul> In the attached photo's it shows the before and after when designer mode is disabled / enabled with the new button there when designer mode is enabled vs not enabled. Edit: As you can see it doesnt save the changes. Sorry if this is not a simple example. I'm just trying to show how it doesnt apply the changes made in the code after the mode has synced changes. Edited January 4 by Matthew Fay Link to comment Share on other sites More sharing options...
Marc Stridgen Posted January 4 Share Posted January 4 We would need a simple example. By this, I mean is it actually showing in the template editor in the admin CP after sync? Link to comment Share on other sites More sharing options...
Matthew Fay Posted January 4 Author Share Posted January 4 If you mean this then yeah? Link to comment Share on other sites More sharing options...
Marc Stridgen Posted January 4 Share Posted January 4 This is then likely related to cache unfortunately. Have you disabled caching entirely on your development instance? Link to comment Share on other sites More sharing options...
Matthew Fay Posted January 4 Author Share Posted January 4 (edited) Oh damn and interesting, no I have not and how would I go about disabling it? Or is it a feature of my web hosting? Here's a picture of my cache in data storage not actually being enabled Edit: I just disabled "Enable template disk caching" and it not shows up changes. Edited January 4 by Matthew Fay Link to comment Share on other sites More sharing options...
Matthew Fay Posted January 4 Author Share Posted January 4 (edited) Also I wanted to add that I still wanted template disk caching to be turned on to save in website performance. Is there a particular way to still have this enabled but have the changes show up like delete the files in the cache directory featured next to "Enable template disk caching"? Edit: Could I theoretically delete recent template php files in /uploads/ the cache directory and that would prevent this happening? Edited January 4 by Matthew Fay Link to comment Share on other sites More sharing options...
Jim M Posted January 4 Share Posted January 4 Just a heads up, Designer's Mode should not be ran on a production installation. You should do this on a test installation and then export your theme to your live installation. Link to comment Share on other sites More sharing options...
Matthew Fay Posted January 4 Author Share Posted January 4 34 minutes ago, Jim M said: Just a heads up, Designer's Mode should not be ran on a production installation. You should do this on a test installation and then export your theme to your live installation. Thanks for the heads up, also I resolved my problem. I deleted those files in /uploads/ and it fixed it with this problem. Jim M 1 Link to comment Share on other sites More sharing options...
Solution Mark H Posted January 4 Solution Share Posted January 4 Thanks for updating the topic. We're glad to hear the issue is resolved. 🙂  Link to comment Share on other sites More sharing options...
Recommended Posts