Re: New content type
Nicolas <[email protected]> Thu, 5 Feb 2015 10:34:26 +0100
| Newsgroups | gmane.comp.php.drupal.devel |
|---|---|
| Message-ID | <CALYYOOAZObjTwfetrt8yKG=PSQNvpNtHLRMHHoTMxijUxVxOhQ@mail.gmail.com> |
--001a1142767a927964050e54029c Content-Type: text/plain; charset=UTF-8 Hi, thanks for your answer. I will read that article carrefully. But I should have been more precise in my question. I want to create new content in the right way (if there is at least one) in drupal 7. I think I must use entity if I understand right. But I don't want to use field api. I don't want to have as many tables as fields in my new content. I cannot understand how someone can have to that strange stuff. Manage data in a database is a hard work and for sure field api is a great work but it's also a bloatware and a nightmare with a large site. I have to maintain a large site and there's severals hundred of tables but with contents no so different. So even simple pages have severals hundred of queries. My site is not so complicated. Did developers who made the site missed something ? Don't misunderstand me, I like drupal. I hope drupal 8 comming soon. But I really think some api must not be used. Nicolas 2015-02-05 8:18 GMT+01:00 Muzaffer Tolga Ozses <[email protected]>: > Hi Nicolas, > > You may read the following: > http://www.thecarneyeffect.co.uk/creating-custom-content-type-adding-fields-programmatically-drupal-7 > > On 5 February 2015 at 09:11, Nicolas <[email protected]> wrote: > >> Hi all, >> >> I used to make website with drupal 6 and I defined new content type using >> new node type. >> I tried to do the same thing with drupal 7... But after some readings I >> discover it could not be the right way. >> >> Must I used entity ? I want to access my new type as it was node with >> ?q=node/add/my-new-type >> >> I search for goods tutorials but didn't find somes. >> >> Thanks in advance for any help or any advice. >> >> Nicolas >> > > > > -- > mto > --001a1142767a927964050e54029c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>thanks for your answer. I will read= that article carrefully.</div><div><br></div><div>But I should have been m= ore precise in my question. I want to create new content in the right way (= if there is at least one) in drupal 7. I think I must use entity if I under= stand right. But I don't want to use field api. I don't want to hav= e as many tables as fields in my new content. I cannot understand how someo= ne can have to that strange stuff.</div><div><br></div><div>Manage data in = a database is a hard work and for sure field api is a great work but it'= ;s also a bloatware and a nightmare with a large site. I have to maintain a= large site and there's severals hundred of tables but with contents no= so different. So even simple pages have severals hundred of queries. My si= te is not so complicated. Did developers who made the site missed something= ?</div><div><br></div><div>Don't misunderstand me, I like drupal. I ho= pe drupal 8 comming soon. But I really think some api must not be used.</di= v><div><br></div><div>Nicolas</div><div><br></div><div><br></div></div><div= class=3D"gmail_extra"><br><div class=3D"gmail_quote">2015-02-05 8:18 GMT+0= 1:00 Muzaffer Tolga Ozses <span dir=3D"ltr"><<a href=3D"mailto:tolga@ozs= es.net" target=3D"_blank">[email protected]</a>></span>:<br><blockquote cl= ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p= adding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:'courier new',monospace">Hi Nicolas,</div><div class=3D"gm= ail_default" style=3D"font-family:'courier new',monospace"><br></di= v><div class=3D"gmail_default" style=3D"font-family:'courier new',m= onospace">You may read the following:=C2=A0<a href=3D"http://www.thecarneye= ffect.co.uk/creating-custom-content-type-adding-fields-programmatically-dru= pal-7" target=3D"_blank">http://www.thecarneyeffect.co.uk/creating-custom-c= ontent-type-adding-fields-programmatically-drupal-7</a></div></div><div cla= ss=3D"gmail_extra"><div><div class=3D"h5"><br><div class=3D"gmail_quote">On= 5 February 2015 at 09:11, Nicolas <span dir=3D"ltr"><<a href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]</a>></span> wro= te:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-= left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hi all,<div><br></di= v><div>I used to make website with drupal 6 and I defined new content type = using new node type.=C2=A0</div><div>I tried to do the same thing with drup= al 7... But after some readings I discover it could not be the right way.= =C2=A0</div><div><br></div><div>Must I used entity ? I want to access my ne= w type as it was node with ?q=3Dnode/add/my-new-type</div><div><br></div><d= iv>I search for goods tutorials but didn't find somes.</div><div><br></= div><div>Thanks in advance for any help or any advice.</div><span><font col= or=3D"#888888"><div><br></div><div>Nicolas=C2=A0</div></font></span></div> </blockquote></div><br><br clear=3D"all"><div><br></div></div></div><span c= lass=3D"HOEnZb"><font color=3D"#888888">-- <br><div><div dir=3D"ltr"><div><= div dir=3D"ltr">mto</div></div></div></div> </font></span></div> </blockquote></div><br></div> --001a1142767a927964050e54029c--