This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

maxDubovsky
maxDubovsky

Hi,

I'm working with responsiv-flat theme and I'm trying to use some custom Js scripts within sertain pages. I have several Plugins in my project and each of them uses some Javascript. Today I descovered one issue: I have made plugin named Max.Products, it has component addNewProduct, and there I'm using

$this->addJs('/plugins/max/products/assets/js/max.addnewproduct.js');

I descovered that this script is included in layout/default.htm into {% scripts %} even if my component is not presented on the page or partial. How can this happen? Sorry if the question is Lame ))

maxDubovsky
maxDubovsky

Sorry, component was included in footer.htm Topic is closed

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.