Autoload JS

Component type

module

Maintenance status

Development status

Downloads

3448

Component created

Component changed

Sponsored and developed by TrestleMedia

Autload JS automatically loads javascript files found in your theme's "js" subfolder.

Which files it loads depends on which page the user is viewing and where you put the files. It will load all files in the 'all' folder on every page, or all files in the 'front' folder on the front page. Options for page path, node type, first component of the URL, and more exist.

For example, as soon as it's turned on, your javascript files are loaded automatically just by naming them right:

path/to/theme/js/all.js - Loaded on all pages
path/to/theme/js/front/file1.js - Loaded on front page
path/to/theme/js/front/file2.js - Also loaded on front page
path/to/theme/js/nodetype--blog.js - Loaded on blog nodes
etc.



Search Term And Count

Component type

module

Maintenance status

Development status

Component created

Component changed

I created this module because across multiple projects I had to do the same customization to the search page and I would rather a plug an play module for the next time I get the request.

What it does:

If the search has results then it returns a title with "## search results for "search term". Otherwise if 0 are found, or there is no search then the page returns with a title of "Search".

All work was sponsored by, Knectar Design