It appears Google has somehow managed to crawl and index the /user/password page (according to Google Search Console) - is it possible to set it to "noindex" (without using Node noindex)?
Open your theme folder,
the mytheme.info file lists the scripts (and CSS) connected to the theme:
scripts[] = myscript.js
(see docs https://docs.backdropcms.org/creating-themes)
If there are no scripts, add this line,
create myscript.js, paste the code into it:
$(document).ready(function() {
console.log('This message will be displayed in the console if the script is connected correctly');
// Any code will be here
});
Clear cache.
For an example, see the structure
/core/themes/basis/basis.info
Under Form Settings > Advanced settings
Yes, for Authenticated users only. Though I wonder (I haven't had need so haven't tested) if the other option to automatically save as draft...
Posted2 hours 39 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
A fix was put into 1.29.3 which should enable you to do an in place upgrade, and so no need to use FTP. It fixed a problem we found with upgrading at civihosting.com
Open your theme folder,
the mytheme.info file lists the scripts (and CSS) connected to the theme:
scripts[] = myscript.js
(see docs https://docs.backdropcms.org/creating-themes...
I think you have this problem https://tinyl.io/Bwne or https://tinyl.io/Bwo6
Solution: add to your Views page /hirek Contextual filter "Global: Null".
And use a...
Comments
I`m use JS:
var path = window.location.pathname.substring(1);
var noindex = ['user','search'];
noindex.forEach(el => {
if (path.indexOf(el) > -1) {
setNoindex();
return;
}
});
function setNoindex() {
var meta = document.createElement('meta');
meta.name = 'robots';
meta.setAttribute('content', 'noindex');
document.getElementsByTagName('head')[0].appendChild(meta);
}
Thanks for the suggestion, but I don't know where to put that.
This should be placed in your default theme script.js file.
https://docs.backdropcms.org/creating-themes
Since I'm using a sub-theme of Snazzy, it would go in the sub-theme as a new file?
Neither Snazzy or snazzytoys currently have this file - snazzytoys is set as the default theme in Backdrop.
Open your theme folder,
the mytheme.info file lists the scripts (and CSS) connected to the theme:
scripts[] = myscript.js
(see docs https://docs.backdropcms.org/creating-themes)
If there are no scripts, add this line,
create myscript.js, paste the code into it:
$(document).ready(function() {
console.log('This message will be displayed in the console if the script is connected correctly');
// Any code will be here
});
Clear cache.
For an example, see the structure
/core/themes/basis/basis.info