-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 bugs found, with one solved => Multilangual site, Trailing spaces in replacement term removed #8
Comments
I also editted the Search query to limit searches to selecture culture/language variation only. Also found out that the where clause on path was wrong supose your contentid = 111 it would also hit on 9111 or 1119. Anyway this is what I ended up with: ` [HttpGet]
And on the client site: ` function searchForPhrase(phrase, contentId) {
Hope this helps anybody, despite my points for improved I like the plugin and it was a huge timesaver for me to have this example available. |
Hi @onlinegroeicoach, |
@onlinegroeicoach we're having issues with the multi culture setup with the code provided in this issue. Any idea what could cause this? |
@onlinegroeicoach For some reason if I look for 'WORD' first time -> Query doesn't find any results Also - We're using Umbraco Blocklists, we noticed that all our language variants are always saved in the database on each language. Query:
Result: After publishing DE and using the above query again, DE is also added to this list. This results in issues using the find and replace script. Any idea how we could update the sql query so we only retrieve textValues from the correct language? |
Found the problem! Issue was in the sql query ... |
I've added the 8.x package to my Umbracxo 8.5.3. site, I've updated the source solution to 8.5.3. as well and ran into two issues.
The first is that in the FindAndReplaceApiController->content.SetValue(command.PropertyAlias, command.Value); is called without providing the culture which causes issues on amultilingual site (not sure if this still works if you site has 1 language.
Solution is ease:
In UpdateCommand add -> public string Culture { get; set; }
In FindAndReplaceApiController use -> content.SetValue(command.PropertyAlias, command.Value, command.Culture);
In FindAndReplaceservice.js you need to fill this value (it's supplied on the querystring):
FindAndReplaceService.$inject = ['$http', '$routeParams', 'umbRequestHelper'];
function setValue(contentId, propertyAlias, valueField, value) {
The issue I had which I couldn't solve is that if the replacement terms ends with spaces, they are stripped off. There no trim() in the code so I suspect that this is something that AngularJS does unwanted. Any solution to this is also much appreciated ...
The text was updated successfully, but these errors were encountered: