<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
D6: Not really. You can node_load (with reset=1) on all of the
nodes<br>
and check them. Or use a view object, that feels like an overkill,
but<br>
its way more configurable.<br>
<br>
<br>
On 11-03-22 09:40 AM, Lluís Forns wrote:<br>
<span style="white-space: pre;">> I want to load a node using
cck fields instead of nid or core <br>
> fields.<br>
> <br>
> Is there a "no-sql" way of doing this? I have read that
maybe I <br>
> could achieve it using views, but I think it would be an
overkill.<br>
> <br>
> What I want to achieve is something like this:<br>
> <br>
> $inscripcio = node_load(array( 'type' => 'inscripcio', <br>
> 'field_alumne' => $nid_alumne, 'field_convocatoria'
=> <br>
> $nid_convocatoria, ));<br>
> <br>
> any hint?<br>
> <br>
> If I could get which tables use a cck type and how to join
them, <br>
> maybe I could code a "generic" way to do this, so if
cck-type is <br>
> changed, there is no problem.<br>
> </span><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>
<br>
iQIcBAEBCAAGBQJNiNKjAAoJEIudqlYAGRshkYwQALRZDpQbLdcjqc50gDw/b2jB<br>
r6LWyV2zJuNAkPNlwd1iDn2d7ahazUWYAfANRuJh0fzk01uTySxn9T2JmxCmMnbA<br>
BFRHtAUloAWeRug0IZP3I2wIfLJGhQBBheyjbOe3Cjd+IKT76NiXI7kr/a6glf2k<br>
Zo9rwO6jYZZVc66nkfH1zYQBEqaYYH8pKYB8m0VRH3VTpFJ/k75KdPzX3Q0yXSIT<br>
WvZfRqnRkgr2CFvDacFRgk+ICEsB8V/ZkfPNr67wcEHjG/ETVSnatzquBhsxThgO<br>
m93sgh7eIuIj5cg6knUPUmht68ETJD0i8N5Zu35JPZpoOLwzkzYU7hQt3YEohpvS<br>
bdOZ99Kd4ePlekCpr2xz/qcTl1WuixHcAirgL64QwnGCmzzISTaUWtJdQzOHsNVx<br>
oEAWpagHhECVJqZ8dXB96u2jkRtpz3XA0nIGRiZPTP+pQfEOPpH9pOYBnxd5qiL3<br>
nA7fXjcPwaskOoHRhwUbvxzb3Df+bCpYUXGHOHNcpc61uqGKo+wVz7PmqikjZx1p<br>
myITa2htRAzp0kK7IsIMOdxmJL0dk6y3HjJRdyYsyFjgVMwP4KhhhHlRaEDvOzgG<br>
RKwqOaKNSjs1ZlT984WHA65nqdW4L7rmW4N6cu6Pf4Ej76TdC157e0D/3t46I8zm<br>
gErz+Uo5zL6jOEII/ioO<br>
=JxdM<br>
-----END PGP SIGNATURE-----<br>
<br>
</body>
</html>