headley-hfFO4poyKT6Ypkr5+xe8Uw@public.gmane.org a écrit :
[I'll try this again, without piggybacking to another thread. Sorry for the spam.]
so am I (I didn't pay attention to the thread your were posting in)
Just sending this back to the list, since I didn't get a response earlier. Anyone have any ideas on how I can check to see if a specific article exists that isn't the currecnt article? I want to change the class used in the link, and possibly send them directly to the edit page.
the hard way (I'm sure a more elegant and simpler solution exists) :
$articlename = Title::newFromText("namespace:titleofarticle");
if($articlename->exists()){ echo "it does exist"; } else{ echo "it does not exist"; }