Boolean (Igaz/hamis) értékek kezelése cck-val

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Leírás

Egy tartalom két állapotának jelöléséhez legjobb a flag modul, de van, amikor cck-val kell megoldani, mert az kevésbé praktikus. Elég furcsa, de ha egyszerűen a tartalom beküldő node-nál két állapotot akarunk jelölni, akkor kell egy Igaz, és egy Hamis érték is.

Ezzel semmi baj nem lenne, de például views listában kaphatunk fals adatot, illetve nekünk nem tetszőt.

Mert mi van, ha a views-szal ki szeretnénk iratni egy mezőben, ha igaz, de nem szeretnénk semmit sem látni, ha hamis? Különféle előfeldolgozókkal ezt kikupálhatjuk, de mégsem az igazi, jobb lenne, ha az adatbázisba sem kerülne semmilyen adat, ha nincs bepipálva semmi.

Ezt írja nekünk a how-to, a cck mező beállításoknál: Az „egyszerű jelölőnégyzet” felületi elemnél először a „ki”, majd a „be” állapothoz tartozó értéket kell megadni az Engedélyezett értékek részben. A jelölőnégyzet címkéje a „be” állapothoz tartozó érték címkéje lesz.

Szóval előbb a Ki értéke kell.. Ha csapsz egy entert, azt simán kiszűri, és a Ki értéke a következő sor lesz.. Olvassunk tovább: Egy sorban egy értéket lehet megadni kulcs|címke formában. És íme a titok; a ki értékének ennyit kell megadni: | Ezt már értelmezi a szűrő, tehát az előtte lévő értéket veszi alapul, ami ugye = semmi, pont ez kerül az adatbázisba is, a:

Tehát a Megengedett értékek mezőbe ez legyen:

|

true|Címke, amit a jelölőnégyzet mögött akarunk látni.

Máris szaladhatunk neki a views-nak, és kedvünkre listázhatjuk, vagy akár felül is írhatjuk az értékkel rendelkező tartalmakat, hogy mire kellhet egy ilyen, íme a példa: http://mjksz.hu/tenyesztok

Lesz itt viszont egy kis bibi.. Ha kiterjesztett szűrőt akarunk erre a mezőre, akkor meglepi lesz: Lesz legfelelül egy - Any -, alatta lyuk, majd 'true' a legördülő listában. Namármost abból kiindulva, hogy a legkevésbé user friendly egy ilyen listában a - Bármely - és az igaz szöveg, pláne a lyuk, túrjuk szét kicsit a formot.

Ehhez kell pici modulka, annak is lészen hook_form_altere:

 

[geshifilter-drupal6]function MODULNEVE_form_alter($form, $form_state, $form_id) { if ($form_id == 'views_exposed_form' && &form['views_exposed_filter_szűrő_azonosítója']) { $form['views_exposed_filter_szűrő_azonosítója']['#options'] = array ( 'All' => t('mindent megjelenítő szöveg '), 'true' => t('szűrés szövege'), ); return $form; }[/geshifilter-drupal6]

Hozzászólások

Hey, I think your site might

Hey, I think your site might be having browser compatibility issues. When I look at your blog site in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, wonderful blog!|

Your style is unique in

Your style is unique in comparison to other folks I've read stuff from. Thanks for posting when you've got the opportunity, Guess I will just bookmark this site.|

Aw, this was a very nice

Aw, this was a very nice post. Finding the time and actual effort to produce a very good article… but what can I say… I procrastinate a whole lot and don't manage to get nearly anything done.|

Fascinating blog! Is your

Fascinating blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog stand out. Please let me know where you got your theme. Bless you|

Hello, i read your blog

Hello, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam feedback? If so how do you stop it, any plugin or anything you can recommend? I get so much lately it's driving me crazy so any support is very much appreciated.|

What's up colleagues, how is

What's up colleagues, how is all, and what you wish for to say regarding this piece of writing, in my view its genuinely awesome in support of me.|

Wonderful article! That is

Wonderful article! That is the type of information that should be shared across the net. Disgrace on Google for no longer positioning this submit upper! Come on over and talk over with my site . Thank you =)|

Awesome! Its really amazing

Awesome! Its really amazing article, I have got much clear idea on the topic of from this piece of writing.|

It's a pity you don't have a

It's a pity you don't have a donate button! I'd certainly donate to this superb blog! I guess for now i'll settle for bookmarking and adding your RSS feed to my Google account. I look forward to brand new updates and will talk about this website with my Facebook group. Chat soon!|

Do you have any video of

Do you have any video of that? I'd want to find out more details.|

I have read several excellent

I have read several excellent stuff here. Definitely
worth bookmarking for revisiting. I wonder how a lot effort you place to make any such magnificent informative website.

Fantastic beat ! I wish to

Fantastic beat ! I wish to apprentice at the same time as you amend your site, how could i subscribe for a blog website? The account aided me a applicable deal. I had been tiny bit familiar of this your broadcast offered brilliant clear concept|

What's up friends, its

What's up friends, its impressive post regarding tutoringand fully defined, keep it up all the time.|

Quality posts is the secret

Quality posts is the secret to interest the viewers to go to see
the web page, that's what this website is providing.

Hello, after reading this

Hello, after reading this amazing article i am as well cheerful to share my familiarity here with mates.|

Wow that was unusual. I just

Wow that was unusual. I just wrote an incredibly long comment but after I
clicked submit my comment didn't show up. Grrrr... well I'm not writing all that over again. Anyway, just
wanted to say great blog!

Hello there, I do think your

Hello there, I do think your website could possibly be having web browser compatibility problems. When I look at your blog in Safari, it looks fine however when opening in Internet Explorer, it has some overlapping issues. I simply wanted to give you a quick heads up! Aside from that, great site!|

Its like you read my mind!

Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or
something. I think that you could do with a few pics
to drive the message home a bit, but instead of that, this is excellent
blog. A great read. I will definitely be back.

Please let me know if you're

Please let me know if you're looking for a writer for your blog. You have some really good articles and I believe I would be a good asset. If you ever want to take some of the load off, I'd love to write some articles for your blog in exchange for a link back to mine. Please blast me an e-mail if interested. Thank you!|

What's up, the whole thing is

What's up, the whole thing is going perfectly here and ofcourse every one is sharing information, that's actually excellent,
keep up writing.

This article will help the

This article will help the internet users for setting up new website or even a weblog from start to end.

Your style is very unique

Your style is very unique compared to other people I've read stuff from. I appreciate you for posting when you have the opportunity, Guess I'll just bookmark this web site.|

It's difficult to find

It's difficult to find knowledgeable people in this particular subject, however, you
seem like you know what you're talking about!

Thanks
OutOfSight Hayward Junk Removal Pros
1366 Homestead Ln, Hayward, CA 94545
510-621-6379
joeyedmonds38572 [at] gmail [dot] com

Hello there! I could have

Hello there! I could have sworn I've been to this site before
but after browsing through some of the post I
realized it's new to me. Anyhow, I'm definitely delighted I found it and
I'll be book-marking and checking back frequently!

Hello, of course this post is

Hello, of course this post is genuinely good and I have learned lot of things from it concerning blogging. thanks.|

Willie G youllied Hello very

Willie G youllied

Hello very nice website!! Man .. Beautiful ..
Wonderful .. I will bookmark your blog and take the feeds additionally?
I'm satisfied to find so many helpful information here in the put up, we want
develop more strategies in this regard, thanks for sharing.
. . . . .

My developer is trying to

My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he's tryiong none the less. I've been using Movable-type on several websites for about a year and am concerned about switching to another platform. I have heard excellent things about blogengine.net. Is there a way I can import all my wordpress content into it? Any kind of help would be really appreciated!|

Taxi moto line 128 Rue la

Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712  

Taxi moto paris

you're in point of fact a just right webmaster. The website loading velocity is incredible.
It sort of feels that you are doing any unique trick.
Also, The contents are masterpiece. you've done a excellent process in this subject!

Hi there, You've done a

Hi there, You've done a fantastic job. I'll definitely digg it and personally suggest to my friends. I'm sure they'll be benefited from this site.|

Saved as a favorite, I like

Saved as a favorite, I like your web site!|

I'm not sure exactly why but

I'm not sure exactly why but this weblog is loading incredibly slow for me. Is anyone else having this issue or is it a problem on my end? I'll check back later on and see if the problem still exists.|

Someone necessarily assist to

Someone necessarily assist to make critically articles I'd state.
That is the first time I frequented your web page and up to now?

I surprised with the analysis you made to make this particular post
extraordinary. Wonderful process!

It's really a great and

It's really a great and helpful piece of information. I am satisfied that you simply shared this helpful information with us. Please keep us up to date like this. Thank you for sharing.|

If you wish for to increase

If you wish for to increase your know-how only keep visiting this web
page and be updated with the most up-to-date gossip posted
here.

I visited many websites

I visited many websites except the audio feature for audio songs present at this site is genuinely excellent.|

It's an remarkable piece of

It's an remarkable piece of writing in favor of all
the web viewers; they will obtain benefit from it I am sure.

{

{

Good post. I learn something

Good post. I learn something totally new and challenging on blogs I stumbleupon on a daily basis. It will always be interesting to read through articles from other writers and use a little something from their sites. |

I like the helpful

I like the helpful information you provide in your articles. I'll bookmark your weblog and check again here frequently. I am quite certain I'll learn many new stuff right here! Best of luck for the next!|

Please let me know if you're

Please let me know if you're looking for a article writer for your site.
You have some really good articles and I feel I would be a good asset.
If you ever want to take some of the load off, I'd absolutely love to write some material
for your blog in exchange for a link back to mine. Please send me an email if interested.

Cheers!

Howdy! This is my first visit

Howdy! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us beneficial information to work on. You have done a extraordinary job!|

Very good info. Lucky me I

Very good info. Lucky me I came across your site by chance (stumbleupon).
I have saved it for later!

Hello i am kavin, its my

Hello i am kavin, its my first occasion to commenting anyplace, when i read this post i thought i could also make comment due to this good post.|

It's really very difficult in

It's really very difficult in this busy life to listen news on TV, thus I just use the web for
that purpose, and get the latest news.

Excellent blog you have here

Excellent blog you have here but I was curious if you knew of any forums that cover the same topics discussed in this article? I'd really love to be a part of community where I can get advice from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Cheers!|

I do not even know how I

I do not even know how I ended up here, but I thought this
post was great. I don't know who you are but certainly you
are going to a famous blogger if you are not already ;) Cheers!

Write more, thats all I have

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?|

Great blog right here! Also

Great blog right here! Also your web site quite a bit up
fast! What host are you using? Can I get your affiliate link to your host?
I wish my site loaded up as fast as yours lol

The other day, while I was at

The other day, while I was at work, my sister stole my apple ipad and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views. I know this is entirely off topic but I had to share it with someone!|

Thank you for sharing your

Thank you for sharing your info. I truly appreciate your efforts
and I am waiting for your further write ups thanks once again.

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.