Re: New content type

Muzaffer Tolga Ozses <[email protected]> Thu, 5 Feb 2015 13:08:32 +0200
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CAMAQ3nK-JpHbYfxBjP0NDeZJ6qqaY+7u=q+gERrcWGTM3GXPmw@mail.gmail.com>
--047d7b33d9741b559d050e55538f
Content-Type: text/plain; charset=UTF-8

Sutharsan++

On 5 February 2015 at 12:25, Erik Stielstra <[email protected]> wrote:

> >  But I really think some api must not be used.
> You are of course free to use or not to use the API. However if you do use
> the API and follow the common practices in Drupal (to use entities + field
> API) you get all the integration that comes with it for free. If you decide
> to go you own route, you have to take care of all the integrations
> yourselves.
>
> > 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 ?
> 150 tables for a small site, 300 tables for a medium sized site is no
> exception. Fields will be responsible for 25 - 40% of the number of tables.
> But how many tables will you be able to save, and how much coding effort do
> you want to put into it? Working around Drupal is not easier than working
> with Drupal. Both have their learning curve.
>
>
> Erik Stielstra
>
>
>
> > On 5 feb. 2015, at 10:34, Nicolas <[email protected]> wrote:
> >
> > 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
> >
>
>


-- 
mto

--047d7b33d9741b559d050e55538f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:courier =
new,monospace">Sutharsan++</div></div><div class=3D"gmail_extra"><br><div c=
lass=3D"gmail_quote">On 5 February 2015 at 12:25, Erik Stielstra <span dir=
=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">inf=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">=
<span class=3D"">&gt;=C2=A0 But I really think some api must not be used.<b=
r>
</span>You are of course free to use or not to use the API. However if you =
do use the API and follow the common practices in Drupal (to use entities +=
 field API) you get all the integration that comes with it for free. If you=
 decide to go you own route, you have to take care of all the integrations =
yourselves.<br>
<span class=3D""><br>
&gt; I have to maintain a large site and there&#39;s severals hundred of ta=
bles 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 ?<br>
</span>150 tables for a small site, 300 tables for a medium sized site is n=
o exception. Fields will be responsible for 25 - 40% of the number of table=
s. But how many tables will you be able to save, and how much coding effort=
 do you want to put into it? Working around Drupal is not easier than worki=
ng with Drupal. Both have their learning curve.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
<br>
Erik Stielstra<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
<br>
&gt; On 5 feb. 2015, at 10:34, Nicolas &lt;<a href=3D"mailto:nikrou77@gmail=
.com">[email protected]</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; thanks for your answer. I will read that article carrefully.<br>
&gt;<br>
&gt; But I should have been more precise in my question. I want to create n=
ew 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&#39;t want to use field=
 api. I don&#39;t want to have as many tables as fields in my new content. =
I cannot understand how someone can have to that strange stuff.<br>
&gt;<br>
&gt; Manage data in a database is a hard work and for sure field api is a g=
reat work but it&#39;s also a bloatware and a nightmare with a large site. =
I have to maintain a large site and there&#39;s severals hundred of tables =
but with contents no so different. So even simple pages have severals hundr=
ed of queries. My site is not so complicated. Did developers who made the s=
ite missed something ?<br>
&gt;<br>
&gt; Don&#39;t misunderstand me, I like drupal. I hope drupal 8 comming soo=
n. But I really think some api must not be used.<br>
&gt;<br>
&gt; Nicolas<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2015-02-05 8:18 GMT+01:00 Muzaffer Tolga Ozses &lt;<a href=3D"mailto:t=
[email protected]">[email protected]</a>&gt;:<br>
&gt; Hi Nicolas,<br>
&gt;<br>
&gt; You may read the following: <a href=3D"http://www.thecarneyeffect.co.u=
k/creating-custom-content-type-adding-fields-programmatically-drupal-7" tar=
get=3D"_blank">http://www.thecarneyeffect.co.uk/creating-custom-content-typ=
e-adding-fields-programmatically-drupal-7</a><br>
&gt;<br>
&gt; On 5 February 2015 at 09:11, Nicolas &lt;<a href=3D"mailto:nikrou77@gm=
ail.com">[email protected]</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I used to make website with drupal 6 and I defined new content type us=
ing new node type.<br>
&gt; I tried to do the same thing with drupal 7... But after some readings =
I discover it could not be the right way.<br>
&gt;<br>
&gt; Must I used entity ? I want to access my new type as it was node with =
?q=3Dnode/add/my-new-type<br>
&gt;<br>
&gt; I search for goods tutorials but didn&#39;t find somes.<br>
&gt;<br>
&gt; Thanks in advance for any help or any advice.<br>
&gt;<br>
&gt; Nicolas<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; mto<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
<div class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr">mto</=
div></div></div></div>
</div>

--047d7b33d9741b559d050e55538f--