We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Checkboxes

Development and Programming

David Webb's avatar
David Webb
62 posts
18 years ago
David Webb's avatar David Webb

Hey James.

I’d need to look into some php to do that. But it is a possiblity. If Mark can do request 1) I’m happy to take a bash at request 2) myself.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

DavidJaymz, unfortunately selecting a ‘title’ field is out of my control. This is the way the EE Drop-down list behaves by default, and since the checkbox extension piggybacks on that field it would take some considerable development time to implement this. Also, if you’re looking for relating entries by title, try the Relationship field type or my Multi-Relationship field type.

is there a way to (for lack of a better word) separate the info back out when we parse it in the weblog entries tag?

how are you looking to separate this out?

       
David Webb's avatar
David Webb
62 posts
18 years ago
David Webb's avatar David Webb

Cheers Mark for the reply mark.

I’m currently using the checkbox extension to select keywords from a keywords blog. Maybe thats making it too complex and I should just type the info in in your extension. There shouldn’t be that many keywords….

The reason I’d like to separate the data is to use it as a auto search terms. so ideally I’d like each “keyword” to be wrapped in a {keyword} tag.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Hum. I see your problem. It may be possible to get the titles into there, however as a quicker fix I would just include another field in the keyword weblog and make it required, then just enter your tag into the title and the custom field. Then, assuming they are the same value you can use the auto search.

       
David Webb's avatar
David Webb
62 posts
18 years ago
David Webb's avatar David Webb

Ok. So making the keywords into urls would be possible?

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

I would think so, but I’m not positive, I haven’t used auto search all that often. Do you have a link that I could do some research at?

       
David Webb's avatar
David Webb
62 posts
18 years ago
David Webb's avatar David Webb

I basically took the information from here.

I think the type of keywording i want to do is perfect for this. Its just getting it to work in a dynamic manner :lol:

Thanks for the help and all the excellent extensions.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Hum, well I don’t see any reason why you wouldn’t be able to get that to work. I think the one custom field to mirror the keywords “title” should do it, and then create the checkboxes to link up to that mirrored field.

       
Shane Robinson's avatar
Shane Robinson
55 posts
18 years ago
Shane Robinson's avatar Shane Robinson

Thank you! Thank you! Thank you!!!

This works perfectly in the CP. Has anyone got this working in a Stand Alone Entry Form?

I’ve only tried the following and it doesn’t output anything. I didn’t really expect it to but don’t know what may be needed to loop through and display the values as needed:

{if checkbox}
<input type="checkbox" name="{field_name}" value="{field_data}" />
{/if}

Another donation coming your way, Mark! Your extensions are exactly what we’re needing on this project!

       
Ryan M.'s avatar
Ryan M.
1,511 posts
18 years ago
Ryan M.'s avatar Ryan M.

I have successfully installed this on past 1.5.2 installs - but today it’s not working! I downloaded 1.0.2 (which still says 1.0.1 when installed, by the way…) and I applied it to a custom field (just a bunch of sizes like XS, S, M, L , XL, etc) and I’m getting this error: Notice: Undefined variable: field_type in /Users/me/Sites/mysite/system/cp/cp.publish_ad.php on line 5465 I don’t have a lot of other plugins or extensions installed (this is a new site, only adding things as I need them) and those things I have added are mostly Mark’s (no surprise there…) so I’m not sure what could be conflicting.

I haven’t seen this conflict yet. So I not really have v 1.0.2 installed?

I am on this page when the error shows at the top: CP Home › Admin › Weblog Administration › Field Groups › Custom Fields

       
seth.aldridge's avatar
seth.aldridge
68 posts
18 years ago
seth.aldridge's avatar seth.aldridge

I decided to re-write this entire post to make it more accurate.

This is what I need to do and I’m not sure the current Extension does it.

I need to be able to assign a value to each check box:

Example:

Web Design == http://www.re-volvemedia.com/services/development/web-design/

This way when writing a Case Study we can list the services we performed for each client and have a check box associated with each service we provide. Currently I’m not sure that is an option, however, I was curious as to if the text from the Check Box is static text or if it has a variable name associated with it.

Example:

Label: Web Design Form ID: web_design

I’m not sure that it would work, but I need to try and figure out a solution that would do what we need it to.

If this can be done, can someone help point me in the right direction?

Edit:

I figured out a work around

{if development == "Website Design"}<li><a href="http://www.re-volvemedia.com/services/development/web-design/">Web Design</a></li>{/if}

This has worked but it is not printing the results accurately yet. I have it twice in one page and it is only showing up once…looking into it.

Edit(2):

I made an attachment so you could see what it was doing. I also included the custom tags so you could see they both had the same box checked, but only the bottom one was showing the {if} statement.

Edit(3):

Okay, I figured out what the problem is. I currently have 5 check box groups.

“development” has 6 items to check.

Web Design E-Commerce Content Management MOD RE-writes Application Development Hosting

So my statement:

{if development == "Website Design"}<li><a href="http://www.re-volvemedia.com/services/development/web-design/">Web Design</a></li>{/if}

Works as long as it is the only 1 of the 6 checked, however, if you have more then 1 checked it would become.

“Web Design, E-Commerce” or something similar.

Is there a way to fix this so each one outputs a unique string? I’m not sure how to break this down further?

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Seth, I might do this with PHP, since your correct in saying that the EE tag’s can’t handle searching within a string. Something like this should work:

<?php ob_start(); ?>{development}<?php if(strpos(ob_get_contents(), "Web Design")!==false): ?>... do stuff here ...<?php endif; ob_end_clean(); ?>

Oh, and for this your PHP will have to be on “output”.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

medsign: check this out: http://ellislab.com/forums/viewthread/38843/#181791

       
seth.aldridge's avatar
seth.aldridge
68 posts
18 years ago
seth.aldridge's avatar seth.aldridge

Mark,

I used the code you sent and this is what it output.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

seth, can you post a snippet of the EE code generating the linked image?

       
1 2 3 4 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.