Re: New content type

Muzaffer Tolga Ozses <[email protected]> Thu, 5 Feb 2015 11:37:19 +0200
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CAMAQ3nJv0FCbda6PF026sV3p=66q-Zf2XeK14ih4c1Dv-fMoVw@mail.gmail.com>
--001a1141bdc6e5bae9050e540cc1
Content-Type: text/plain; charset=UTF-8

If you don't want fields in your content type, feel free to leave related
parts out :) About entity, I don't know what you mean with that. Nodes are
also entities.

On 5 February 2015 at 11: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

--001a1141bdc6e5bae9050e540cc1
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">If you don&#39;t want fields in your content type, feel free=
 to leave related parts out :) About entity, I don&#39;t know what you mean=
 with that. Nodes are also entities.</div></div><div class=3D"gmail_extra">=
<br><div class=3D"gmail_quote">On 5 February 2015 at 11:34, Nicolas <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">nikr=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div=
 dir=3D"ltr">Hi,<div><br></div><div>thanks for your answer. I will read tha=
t article carrefully.</div><div><br></div><div>But I should have been more =
precise in my question. I want to create new content in the right way (if t=
here is at least one) in drupal 7. I think I must use entity if I understan=
d 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 c=
an have to that strange stuff.</div><div><br></div><div>Manage data in a da=
tabase is a hard work and for sure field api is a great work but it&#39;s a=
lso a bloatware and a nightmare with a large site. I have to maintain a lar=
ge site and there&#39;s severals hundred of tables but with contents no so =
different. So even simple pages have severals hundred of queries. My site i=
s not so complicated. Did developers who made the site missed something ?</=
div><div><br></div><div>Don&#39;t misunderstand me, I like drupal. I hope d=
rupal 8 comming soon. But I really think some api must not be used.</div><s=
pan class=3D"HOEnZb"><font color=3D"#888888"><div><br></div><div>Nicolas</d=
iv><div><br></div><div><br></div></font></span></div><div class=3D"HOEnZb">=
<div class=3D"h5"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"=
>2015-02-05 8:18 GMT+01:00 Muzaffer Tolga Ozses <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt;</sp=
an>:<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"><div class=3D"gmail=
_default" style=3D"font-family:&#39;courier new&#39;,monospace">Hi Nicolas,=
</div><div class=3D"gmail_default" style=3D"font-family:&#39;courier new&#3=
9;,monospace"><br></div><div class=3D"gmail_default" style=3D"font-family:&=
#39;courier new&#39;,monospace">You may read the following:=C2=A0<a href=3D=
"http://www.thecarneyeffect.co.uk/creating-custom-content-type-adding-field=
s-programmatically-drupal-7" target=3D"_blank">http://www.thecarneyeffect.c=
o.uk/creating-custom-content-type-adding-fields-programmatically-drupal-7</=
a></div></div><div class=3D"gmail_extra"><div><div><br><div class=3D"gmail_=
quote">On 5 February 2015 at 09:11, Nicolas <span dir=3D"ltr">&lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt;=
</span> wrote:<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,<d=
iv><br></div><div>I used to make website with drupal 6 and I defined new co=
ntent type using new node type.=C2=A0</div><div>I tried to do the same thin=
g with drupal 7... But after some readings I discover it could not be the r=
ight way.=C2=A0</div><div><br></div><div>Must I used entity ? I want to acc=
ess my new type as it was node with ?q=3Dnode/add/my-new-type</div><div><br=
></div><div>I search for goods tutorials but didn&#39;t find somes.</div><d=
iv><br></div><div>Thanks in advance for any help or any advice.</div><span>=
<font color=3D"#888888"><div><br></div><div>Nicolas=C2=A0</div></font></spa=
n></div>
</blockquote></div><br><br clear=3D"all"><div><br></div></div></div><span><=
font color=3D"#888888">-- <br><div><div dir=3D"ltr"><div><div dir=3D"ltr">m=
to</div></div></div></div>
</font></span></div>
</blockquote></div><br></div>
</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>

--001a1141bdc6e5bae9050e540cc1--