I am also commenting to make you know what a outstanding experience my wife's princess went through reading your webblog. She picked up a lot of issues, not to mention how it is like to have a marvelous coaching style to make other people quite simply know nettoyage bureau various extremely tough issues. You really exceeded her desires. I appreciate you for giving the productive, trusted, explanatory and in addition cool tips on this topic to Tanya.
This item is not operating when I include this value in the operate.php computer file. Please help me in getting me out of problems. As I am new to Drupal, and I really want this “join this group” web page to my web page.
You can attach js to dialog elements just like you do it for any form. http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#attached
Hi Anton Sidashin, my modal opens and i can process the form as you explained..
I have one problem though.. i just can find a way of including javascript on the dialog.. for example i have field email address.. the field has a default text "write your email". My requirement is when the field clicked ...the default text to dissapear..
simply,i want to use this jquery plugin to my input forms http://digitalbush.com/projects/watermark-input-plugin/
how can i do this?
This piece is not working when I embed this code in the function.php file. Please help me in getting me out of trouble. As I am new to Drupal, and I really want this “join this group” page to my website.
Binary options’ investing is actually a very interesting and reasonably new monetary location to acquire associated with. No matter whether you're investing binary options guide occasionally for entertaining or in case you choose it much more seriously you’ll have to be sure you’re picking out the very best binary choices brokers to fit your requires.
Fantastic post! I was ready completely change how form errors were to be displayed before reading this. Thank you for saving me from my own impatience. :)
Thanks for this post, Anton, it was very useful. I'm quite new to Drupal, actually I've just started learning things. I used to dwell upon PHP a lot so now I have lots of questions about Drupal :) I'm now working on pasting [url=http://easyphotoeditor.org/]free photo edit[/url] option to my Drupal site, and that's easier said than done...
Thanks a lot for sharing, I had the same issue now I'll follow your post to configure file attachment.
I have a doubt?
Every product will have a file attached as ubercart feature but not as file attached with the respective node. So I am not sure how far this could help me in fixing my issue.
I've never thought of having to change anything to $teaser. I mean, the designer I usually work with, will place $teaser in his .tpl files, and if it doesn't display the way he wanted it to, he'll complain to me and I'll have to make sure he receives a $teaser variable he can just place in his HTML. That is a HTML coder that knows some PHP and does add it to his tpl files now and then. He mainly wants to focus on the frontend dev. though, not on data processing.
Another HTML coder I've worked with, doesn't know any PHP at all. Even working with PHP variables she could place anywhere, was alot to take in. She's a very good designer, though, and has no problems with HTML and CSS. I did my best to help and guide her, but she felt as if Drupal was for developers and that it didn't offer what she wanted: something where she can just change some HTML and CSS to make her site look the way she wants. She ended up tossing out all my dev. work and going with Smugmug instead. Ever since then, I've tried to take as much logic to my side, so I can offer designers bite-sized vars they can just place into their HTML.
Yet another designer I've worked with, does HTML and CSS, but gave me raw HTML / CSS files which I had to turn into tpls (hurray! Like I didn't have enough to do already!). I could then pretty much do whatever I wanted. That designer was also intimidated by writing logic and minor PHP code, but couldn't say no to using Drupal cause the entire company was based on using it.
If you got designers in your team that prefer to work with bools and such, so much the better for you. To my experience, though, you should present them with as little programming as possible, so they can focus on what they know and do best.
Oh, and... I don't even know $is_front. Never used it, never seen it being used, never heard of it before, yet I've worked on some pretty damn complex far too real-world websites in Drupal and have done plenty of theming myself :P
so, do you think that $teaser or $is_front bool variables are bad practice? :)
they make tpl files much more readable sometimes, isn’t it?
regarding designers - that is a long story :)
I guess, you mean html coders (frontend devs), since regular designer will get buried in Drupal tpls - Photoshop and .psd is the area where he usually works.
I never saw html coder without PHP knowledge, who was happy looking into Drupal tpl files! no matter if bool variables are there or not, there are still a lot of “if” conditions in tpls, if you create complex real-world website in Drupal. Trying to move this logic to programmatic conditions in node_view makes the maintenance even more difficult and the theming process slows down.
Oh, crap... I should read the entire article before wondering why you didn't do it the proper (and MVC :P ) way!
Btw, why don't you generate the things you want to render depending on the bool variables during node_view? That way, you can pass only renderable things to your templates, making your designer / designers all the happier. It also keeps all data processing in one spot, instead of spread out over node_view and hook_preprocess_*. That creates some happy maintainers ;)
I’ve used it - after the _preprocess approach failed :)
but the preprocess approach is more flexible, e.g. you can set some bool variables there (node_view is not good for such type of things - you should generate only renderable things there)
I am looking for some help writing a price handler that would change the price based on overall volume of the product sold. Similar to volume pricing, but the pricing would be based the total number sold of a product, rather than the total number sold to one user.
So if I had an item that has a sell price on $1.00 with price breaks if the total number sold is greater than or equal to x (entered via a cck field) the price would be x (entered via a cck field)
If I sold 1000 total piece to all users the price would drop to the associated volume price amount.
Let me know if you are interested. You can email me at krista@peacelovejava.com. I can compensate you for the work.
I am also commenting to make you know what a outstanding experience my wife's princess went through reading your webblog. She picked up a lot of issues, not to mention how it is like to have a marvelous coaching style to make other people quite simply know nettoyage bureau various extremely tough issues. You really exceeded her desires. I appreciate you for giving the productive, trusted, explanatory and in addition cool tips on this topic to Tanya.
This is really good to see articles in this topic...
Students must work as part time.. It will improve their kwledge as well as their confident...
physical fitness
This item is not operating when I include this value in the operate.php computer file. Please help me in getting me out of problems. As I am new to Drupal, and I really want this “join this group” web page to my web page.
iPhone App Development
You can attach js to dialog elements just like you do it for any form.
http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#attached
Hi Anton Sidashin, my modal opens and i can process the form as you explained..
I have one problem though.. i just can find a way of including javascript on the dialog.. for example i have field email address.. the field has a default text "write your email". My requirement is when the field clicked ...the default text to dissapear..
simply,i want to use this jquery plugin to my input forms http://digitalbush.com/projects/watermark-input-plugin/
how can i do this?
This piece is not working when I embed this code in the function.php file. Please help me in getting me out of trouble. As I am new to Drupal, and I really want this “join this group” page to my website.
Hi, I am working with commerce and was asking myself if there was any way we could help in the shaping of the UI.
if there is anything we can do, let us know.
you’re welcome ;)
Fantastic post! I was ready completely change how form errors were to be displayed before reading this. Thank you for saving me from my own impatience. :)
hello just tell me what size you require contact above
c d
The line:
$form['submit']['#weight'] = 100;was causing my Drupal 7.12 install to throw an
Unsupported operand types error in forms.inc.
I think forms.inc expects the value to be provided in an array (haven't tested).
Anyhow, hopefully that might save someone out there some trouble.
Thanks for this post, Anton, it was very useful. I'm quite new to Drupal, actually I've just started learning things. I used to dwell upon PHP a lot so now I have lots of questions about Drupal :) I'm now working on pasting [url=http://easyphotoeditor.org/]free photo edit[/url] option to my Drupal site, and that's easier said than done...
Hi Anton,
Thanks a lot for sharing, I had the same issue now I'll follow your post to configure file attachment.
I have a doubt?
Every product will have a file attached as ubercart feature but not as file attached with the respective node. So I am not sure how far this could help me in fixing my issue.
AnAnD
sure it rocks guys
Aah I see, makes sense then.
You're welcome! But I'm only proving how super cool keeping to the MVC principle is, super cool to everybody involved in the project!
You're so super cool, Raf! Thanks for proving how super cool you are. I was starting to think you were only really cool.
I've never thought of having to change anything to $teaser. I mean, the designer I usually work with, will place $teaser in his .tpl files, and if it doesn't display the way he wanted it to, he'll complain to me and I'll have to make sure he receives a $teaser variable he can just place in his HTML. That is a HTML coder that knows some PHP and does add it to his tpl files now and then. He mainly wants to focus on the frontend dev. though, not on data processing.
Another HTML coder I've worked with, doesn't know any PHP at all. Even working with PHP variables she could place anywhere, was alot to take in. She's a very good designer, though, and has no problems with HTML and CSS. I did my best to help and guide her, but she felt as if Drupal was for developers and that it didn't offer what she wanted: something where she can just change some HTML and CSS to make her site look the way she wants. She ended up tossing out all my dev. work and going with Smugmug instead. Ever since then, I've tried to take as much logic to my side, so I can offer designers bite-sized vars they can just place into their HTML.
Yet another designer I've worked with, does HTML and CSS, but gave me raw HTML / CSS files which I had to turn into tpls (hurray! Like I didn't have enough to do already!). I could then pretty much do whatever I wanted. That designer was also intimidated by writing logic and minor PHP code, but couldn't say no to using Drupal cause the entire company was based on using it.
If you got designers in your team that prefer to work with bools and such, so much the better for you. To my experience, though, you should present them with as little programming as possible, so they can focus on what they know and do best.
Oh, and... I don't even know $is_front. Never used it, never seen it being used, never heard of it before, yet I've worked on some pretty damn complex far too real-world websites in Drupal and have done plenty of theming myself :P
so, do you think that $teaser or $is_front bool variables are bad practice? :)
they make tpl files much more readable sometimes, isn’t it?
regarding designers - that is a long story :)
I guess, you mean html coders (frontend devs), since regular designer will get buried in Drupal tpls - Photoshop and .psd is the area where he usually works.
I never saw html coder without PHP knowledge, who was happy looking into Drupal tpl files! no matter if bool variables are there or not, there are still a lot of “if” conditions in tpls, if you create complex real-world website in Drupal. Trying to move this logic to programmatic conditions in node_view makes the maintenance even more difficult and the theming process slows down.
Oh, crap... I should read the entire article before wondering why you didn't do it the proper (and MVC :P ) way!
Btw, why don't you generate the things you want to render depending on the bool variables during node_view? That way, you can pass only renderable things to your templates, making your designer / designers all the happier. It also keeps all data processing in one spot, instead of spread out over node_view and hook_preprocess_*. That creates some happy maintainers ;)
I’ve used it - after the _preprocess approach failed :)
but the preprocess approach is more flexible, e.g. you can set some bool variables there (node_view is not good for such type of things - you should generate only renderable things there)
Why didn't you use hook_node_view()?
Hi Vikky,
we needed form as part of node.tpl.php, so having separate menu callback won’t help, I think.
Hi,
I would like to know why did you not use drupal_get_form via a callback inside hook_menu? Is there is a specific use case?
Thanks
I am looking for some help writing a price handler that would change the price based on overall volume of the product sold. Similar to volume pricing, but the pricing would be based the total number sold of a product, rather than the total number sold to one user.
So if I had an item that has a sell price on $1.00 with price breaks if the total number sold is greater than or equal to x (entered via a cck field) the price would be x (entered via a cck field)
If I sold 1000 total piece to all users the price would drop to the associated volume price amount.
Let me know if you are interested. You can email me at krista@peacelovejava.com. I can compensate you for the work.