Jump to content



  • Posts

  • Joined

  • Last visited

About VarunAgw

VarunAgw's Achievements

  1. Suppose I have this code in a template file. {media="icons/select-1.svg"} I actually want to reuse it later and want to store the results to variable $a like {{$a={media="icons/select-1.svg"};}} How do I achieve this?
  2. {{$selectIcon = "icons/select-" . $selectLogoSize . ".svg";}} <img src="{media="{$selectIcon}"}" /> That's how my code looks like, but for some reason, second line doesn't work. But if I remove the variable and manually enter the path as static, it works. How do I fix it?
  3. @CodingJungle Sounds great. Is it available for download? Thanks for the twig tip 🙂
  4. Hello, are there plugins related to Invision Community which add some IDE support. Functionalities I am looking for are: 1. Reformatting 2. Understanding Invision template syntax 3. Autocompletion for Invision templates
  5. I am talking about /admin area. It keep expiring the login very fast. If I take a break, I will be already logged out, and then I have to refresh all pages and open all the sub-tabs inside them (like multiple HTML templates). Is it possible to increase to timeout to perhaps a day in local dev installation?
  6. @DawPi I am talking about this statement $rootPath = \IPS\Http\Url::external( \IPS\Settings::i()->base_url )->data['path'];
  7. In ips/system/Output/Output.php::buildMetaTags() There is this statement $rootPath = \IPS\Http\Url::external( \IPS\Settings::i()->base_url )->data['path']; which is executing for every row in \IPS\Db::i()->select( '*', 'core_seo_meta' ) Turns out, we have 8000+ rows in core_seo_meta rows in database, so this statement executes 8000 times, causing ~300ms delay in response It would be better if the statement is moved out of forloop and executed only once.
  8. Just want to report the issue. ips/dev/Whoops/Exception/Inspector.php This file has this statement "xdebug_is_enabled()" https://xdebug.org/docs/upgrade_guide According to the docs, the function is removed now. Would be nice if IPS also update it's code now.
  9. @bfarber I have tried that, but still JS resources doesn't load in production when upgraded.
  10. Here is my problem. sitemap generator task for IPS execute this function. ips/system/Sitemap/Sitemap.php:buildNextSitemap() This function has this statement $extension->getFilenames(). which points to applications\cms\extensions\core\Sitemap\Databases.php:getFilenames() But the problem is this function (Databases.php:getFilenames()) never executes (I tried adding breakpoint), and IPS instead returns a old cached result of the function. As soon as I turn on dev mode, this function start executing and uncached result returns. How do I clear all the caching or regenerate the cache so that returned output of the function is latest. IPS version: v4.5.4.2 Caching method: Filesystem only (I already deleted datastore directory as well as rebooting the system, and also clearing cache in support page several times)
  11. I have this file "applications\abc\dev\js\admin\controllers\configuration\ips.configuration.form.js" which I load via $form = new Form('form', 'save', NULL, array('data-controller' => 'abc.admin.configuration.form')); Now I face some problems: 1. When I turn off dev mode, the file doesn't load at all. 2. Sometime it loads, but it keep showing the old cached version. 3. I compile it and then create a new version. After that, I upgrade the production with the new archive. But production doesn't load the JS at all. I have to enable dev mode in production, compile JS, and clear cache in support page several times, and then it works. How to fix this strange behavior?
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy