Closed liar666 closed 8 years ago
The default value is for when there are no match with the selector. In your case there are matches so that is why you do not see the default value.
Remember the dom elements are independent from each other. Sample in ticket #28 shows how what I think you want to accomplish can sometimes be done, if you can first isolate each group of HTML code as distinct elements (storing each in a multi-value field), then your logic could be applied to each.
Oooops... you're right, my CSS selectors are wrong, as the second one will match everytime...
I've corrected them (and a few things since the code an the website is quite strange - the enclosing div matches twice, one of the instances being empty) and now it works.
Thanks for pointing my error.
Hi,
I'm trying to use the new feature to assign a new value in case no match is found, But I can seems to get it to work.
I've got a general tagger that extract the part of the page with members of an organization:
The another tagger that extracts information for each member:
Unfortunately, in the .meta file I get: EXP_IMAGE=https://d1qb2nb5cznatu.cloudfront.net/users/89122-medium_jpg?1405520924^|~https://d1qb2nb5cznatu.cloudfront.net/users/1512896-medium_jpg?1441125521 ... EXP_NAME=Krishnan Menon^|~Christian Sutardi^|~Marshall Utoyo^|~Srinivas Sista^|~Filippo Lombardi
So there are 5 names, but only 2 images... None of which is "no-image". Did I make a mistake in my code or is there a bug in the DOMTagger?
FYI, I've just updated the libs to the last ones available on the website, but my code still does not work...
PS: the source page is: http://500.co/startup/fabelio-2/