i am using rich review plugin to create a rating system.what i want is to rate the different categories of a single product like looks,hair and teeth of a person for example,what i did was created a form in rich review and i want to use this code snippet [RICH_REVIEWS_FORM category="person"] with in a single page,it enables me to use this code snippet and even displays a three different forms,the problem is i can supply input through only one form,even if i change the category of the forms to different name,i can only supply input to only one of the form?
This requires a patch from the plugin author, both for the JS that handles the form elements, and the $_POST submission of the form data.
Essentially the patch allows you to have independent forms on the same page by using a shortcode parameter for a unique key. So for instance two forms on the same page might look like this.
[RICH_REVIEWS_FORM category="something" unique_key="one"]
[RICH_REVIEWS_FORM category="something_else" unique_key="two"]
See this thread
Related
I have a campaign in Sendgrid, using the Marketing (Legacy) version. I'm trying to use Handlebars to evaluate a custom field (GC_Bounceback_Code1). If it contains a static dummy value (i.e. zzz-aaa), I want it to display nothing. If it contains anything else, I want it to display the contents. The #equals helper I've used is below. I've used it in a Campaign Code Module and in a Template Code Module. It just displays the code as HTML text.
{{#equals GC_Bounceback_Code1 "zzz-aaa"}}
""
{{else}}
[%GC_Bounceback_Code1%]
{{/equals}}
Thanks for any help you can provide.
i asked support about this very question. they responded with this:
Unfortunately, conditional statements are not supported by legacy Marketing Campaigns templates. Rather than utilize conditionals, you could achieve your use-case by creating two separate templates and using a Custom Field within your contacts to create segments based on that custom field. You could then create a segment to utilize with template 1 and a separate segment to utilize with template 2 based on the criteria within the custom field and send each respective segment the proper content within the template.
Is there a Drupal module that will let a user edit some profile fields or a field collection on a specific page. For example, assume I have a page that talks about the benefits of different levels of college degree and a Field collection that captures degree level and school name. I would like to have those profile fields editable on that page.
Is this possible?
Assuming you mean profile2, you can write a custom module containing a block, a good example of a custom blok is included on https://drupal.org/project/examples.
Then you can use hook_form_profile2_form_alter to call the individual fields making up your form.
I'm using Umbraco 4.7 to develop a website. There are certain common elements across some pages like 'Contact Details', 'Latest News', 'Latest Products', etc. For example, one page can have contact details while other may have news. I want to create some sort of macros (HTML or Razor) and want to add these on the required pages. But I also want this content to be editable by content editor. How shall I create such editable macros?
I will assume that you are familiar with Razor and creating macros. If not, there is a reasonable article here.
There are several ways to do this, but each depend on the type of content you wish to display. For example, a 'Latest news' macro can be created with only code by just specifying in the razor to select the top 3 news articles, ordered by date descending. Likewise, if the contact details data already exists on another page (e.g. About us or Contact us), then you can just use the Razor to locate the page and pull the field values you wish to display in your macro.
However, as soon as you want to have some control over which items are displayed in your macro, you will need to create some additional means of controlling this. In the case of your products, you will probably want to select which are displayed in the macro, and therefore across the site. Therefore, you can:
Add a yes/no field to each product (e.g. called 'Display in side bar') and this can then be used the macro to filter the products display; or
Create a new document type called 'Side bar products' that contains a uComponents multi-node picker that will allow you to select products. You can then create a node from this document type and in your macro you will use Razor to query the products in this node. (You will obviously have to ensure that this node is not displayed in the navigation of the site!)
This second option is by far the better option as it is easier to maintain, provides a little scalability and also allows you to potentially have multiple 'Side bar products' nodes, so you could have differing sets of products in different sections of the sites. The first option is certainly easier to implement, but can get difficult to maintain since you have to remember which product is ticked.
I've been doing some reading and I'm still not sure which module to use to get the results I want. I'm looking to build a Patient form and when the form is submitted the results show up in a layout. Here's an image example of what I'm looking to accomplish: http://mjyes.com/images/form-example.jpg
If the Patient information needs updating, then I can visit the form again and update any given field and re-submit for updating.
I'll probably need to access the Patient's information through out the web application.
Based on what you've described, you probably want to use CCK. CCK will allow you to create a patient content type, customized with the fields you need.
Webform is primarily for things like contact forms or surveys where the submissions don't become part of the content on the site.
I need help on how to create a 'custom form' using the same fields provided by cck.
Drupal gives you the ability to add fields to 'nodes' and how to theme their output. But I would like to be able to post a data from my own form (that pops-up) and sends data to the drupal database using the same drupal cck.
How do I access the specific form inputs to add data to my content types ? because the default form is kind of 'ugly' and loads on different page(without ajax).
Help would be much appreciated
There are several routes you could go down.
The easier option is to use the Webforms module. While this gives you similar fields to cck, they are not exactly the same, and if you have a module that implements a specific cck field type, it won't be available to webforms.
The second choice is to write your own module using the forms api. This can mean a lot of learning, add it takes time to get up to speed, but ultimately you have total control over how your form will look and behave. The forms api doesn't give you exactly the same fields, but all the tools are there to create them. Sometimes you need to hack open a module to find out haw a specific field is implemented.
A third option would be to use cck itself. You could create a content type and add the field types you want on your form. You would them give users permission to create but not view or edit the content type. The form submissions would them be nodes on your website. This would make me slightly nervous, so make sure all your permissions are correct!
The second part of your question: you can use a theme file to override the appearance of most forms and make them pretty.
James