21489 Posts in 5783 Topics by 2622 members
| Go to End | ||
| Author | Topic: | 1796 Views |
-
Re: Checking for a dataobject that exists

3 November 2009 at 2:03am
That's fine, not too bothered about the 'hackyness' atleast it works!
Had to tweak it though, this is crrect line of code
if($this->Title != "New Page" && !DataObject::get_one('Group', "Title = '$this->Title'")){
Really happy that this works now. My main problem is that I am primarily a designer, not really a developer and I think I fall down with knowing the correct syntax. I've never used Saphire before, any recommended resources out there for this stuff?
Thanks again for your help, I'm on the right road now.
PS looking forward to the SS book arriving this week, good stuff
| 1796 Views | ||
| Go to Top |

