Re: Field invisible
Muzaffer Tolga Ozses <[email protected]> Thu, 5 Feb 2015 14:12:11 +0200
| Newsgroups | gmane.comp.php.drupal.devel |
|---|---|
| Message-ID | <CAMAQ3nL47V1+Jhhm7Smgv0n35hxZ9eYDBvh+F7_Nv2nKuNvK8w@mail.gmail.com> |
--001a1134f0a2b8524b050e5636f9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Okay, I got the issue; it was #access. I must have mis-read API docs where I thought #access meant "hide it from those with no access". On 5 February 2015 at 14:02, Erik Stielstra <[email protected]> wrote: > As I said "I can not reproduce your problem=E2=80=9D and what I can=E2=80= =99t reproduce I > can not fix. > > I would go looking for working examples. You can try the examples module. > It has a.o. an entity- and a field example module. You can also try to ad= d > a field via the interface and then export its code using features. That > will give you some PHP-code that should almost be what you need to create= a > field programatically. > > Erik Stielstra > > > > > On 5 feb. 2015, at 12:51, Muzaffer Tolga Ozses <[email protected]> wrote: > > > > This is what happens when I re-install the module: > > > > > https://dl.dropboxusercontent.com/u/11918318/Screenshot%20from%202015-02-= 05%2013%3A47%3A42.png > > > > On 4 February 2015 at 13:16, Muzaffer Tolga Ozses <[email protected]> > wrote: > > Not the field label, field name. > > > > On 4 February 2015 at 13:15, Erik Stielstra <[email protected]> > wrote: > > > > > On 4 feb. 2015, at 10:15, Muzaffer Tolga Ozses <[email protected]> > wrote: > > > > > > Thank you Eric for replying, > > > > > > Like I said, this started happening after I renamed the field. Could > this be why? > > I don=E2=80=99t know. You should not rename a field (change machine nam= e) unless > you know exactly what you are doing. Just create a new one. Changing the > field label should not have this effect. > > > > > > Erik Stielstra > > > > > > > > > > > > > > -- > > mto > > > > > > > > -- > > mto > > --=20 mto --001a1134f0a2b8524b050e5636f9 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">Okay, I got the issue; it was #access. I must have mis-read = API docs where I thought #access meant "hide it from those with no acc= ess".</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_qu= ote">On 5 February 2015 at 14:02, Erik Stielstra <span dir=3D"ltr"><<a h= ref=3D"mailto:[email protected]" target=3D"_blank">[email protected]= l</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi= n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As I said "I= can not reproduce your problem=E2=80=9D and what I can=E2=80=99t reproduce= I can not fix.<br> <br> I would go looking for working examples. You can try the examples module. I= t has a.o. an entity- and a field example module. You can also try to add a= field via the interface and then export its code using features. That will= give you some PHP-code that should almost be what you need to create a fie= ld programatically.<br> <span class=3D"HOEnZb"><font color=3D"#888888"><br> Erik Stielstra<br> </font></span><div class=3D"HOEnZb"><div class=3D"h5"><br> <br> <br> > On 5 feb. 2015, at 12:51, Muzaffer Tolga Ozses <<a href=3D"mailto:t= [email protected]">[email protected]</a>> wrote:<br> ><br> > This is what happens when I re-install the module:<br> ><br> > <a href=3D"https://dl.dropboxusercontent.com/u/11918318/Screenshot%20f= rom%202015-02-05%2013%3A47%3A42.png" target=3D"_blank">https://dl.dropboxus= ercontent.com/u/11918318/Screenshot%20from%202015-02-05%2013%3A47%3A42.png<= /a><br> ><br> > On 4 February 2015 at 13:16, Muzaffer Tolga Ozses <<a href=3D"mailt= o:[email protected]">[email protected]</a>> wrote:<br> > Not the field label, field name.<br> ><br> > On 4 February 2015 at 13:15, Erik Stielstra <<a href=3D"mailto:info= @erikstielstra.nl">[email protected]</a>> wrote:<br> ><br> > > On 4 feb. 2015, at 10:15, Muzaffer Tolga Ozses <<a href=3D"mai= lto:[email protected]">[email protected]</a>> wrote:<br> > ><br> > > Thank you Eric for replying,<br> > ><br> > > Like I said, this started happening after I renamed the field. Co= uld this be why?<br> > I don=E2=80=99t know. You should not rename a field (change machine na= me) unless you know exactly what you are doing. Just create a new one. Chan= ging the field label should not have this effect.<br> ><br> ><br> > Erik Stielstra<br> ><br> ><br> ><br> ><br> ><br> ><br> > --<br> > mto<br> ><br> ><br> ><br> > --<br> > mto<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> --001a1134f0a2b8524b050e5636f9--