Re: New content type

Erik Stielstra <[email protected]> Thu, 5 Feb 2015 11:25:14 +0100
Newsgroups gmane.comp.php.drupal.devel
Message-ID <[email protected]>
>  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:
>=20
> Hi,
>=20
> thanks for your answer. I will read that article carrefully.
>=20
> 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.
>=20
> 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 ?
>=20
> Don't misunderstand me, I like drupal. I hope drupal 8 comming soon. =
But I really think some api must not be used.
>=20
> Nicolas
>=20
>=20
>=20
> 2015-02-05 8:18 GMT+01:00 Muzaffer Tolga Ozses <[email protected]>:
> Hi Nicolas,
>=20
> You may read the following: =
http://www.thecarneyeffect.co.uk/creating-custom-content-type-adding-field=
s-programmatically-drupal-7
>=20
> On 5 February 2015 at 09:11, Nicolas <[email protected]> wrote:
> Hi all,
>=20
> I used to make website with drupal 6 and I defined new content type =
using new node type.=20
> I tried to do the same thing with drupal 7... But after some readings =
I discover it could not be the right way.=20
>=20
> Must I used entity ? I want to access my new type as it was node with =
?q=3Dnode/add/my-new-type
>=20
> I search for goods tutorials but didn't find somes.
>=20
> Thanks in advance for any help or any advice.
>=20
> Nicolas=20
>=20
>=20
>=20
> --=20
> mto
>=20