
Paragraph formatting when submitting from front-end
By
gRegor, in API & Templates
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By Fran
Is there any way to limit the text just to the first paragraph of the body lets say? Thanks very much guys.
-
By hellomoto
I have a Pages field with a PageListSelectMultiple input fieldtype, and I cannot limit it through the "custom PHP code" filter in its settings. I don't want hidden pages to be selectable, because the field is supposed to be to select pages to be included in a frontend menu. How can I do this? and it would be nice to be able to use the custom php code way to filter...
Also, I cannot install, or activate, rather, TinyMCE. It's claimed to be compatible with 2.5... I install it, and when I try to activate it, without fail, it "activates" CKEditor, which is already activated by default, and installs its files into the /site/modules/ directory. TinyMCE is still in there, just inactivated and useless, being that there's no workaround to activating modules besides from the admin (that I know of, and it should work via the admin anyway). I also tried using BatchChildEditor (supposed to work with 2.5) -- don't seem to do anything when activated. I selected some settings and nada.
Does anybody have any idea why I might be having these problems? I got all green for all the install compatibility checks...
-
By Thomas108
Hi everybody,
I am trying for a while now to display the alt tags as captions from images inserted via tinymce.
I read this (and a few other) threads: https://processwire.com/talk/topic/1344-captions-for-images-in-tinymce/
... and I installed Adrian's tinymce-image-caption,
but it didn't work at all for me.
Then I installed Teppo's TextformatterImageWrapper,
again no change in the frontend.
Finally I tried Ryan's approach which is also mentioned in the linked thread above.
https://github.com/ryancramerdesign/FoundationSiteProfile/blob/master/templates/scripts/main.js
and again no change in the frontend output.
The last days I felt like I fell in love with processwire, everything went very smooth, but today seems to be not my day.
I have no clue what's wrong, maybe some pw (2.4.7) or php (5.4.32) version problem? My template is valid html5.
I just made a fiddle with ryans approach: http://jsfiddle.net/wqo4fk8o/10/
Maybe someone can have a look and point me in the right direction?
Thanks in advance,
Thomas
-
By enricob
Hi all,
I am building a page that contains a quite complex request form.
To do this, I created a page based on a "contact-form" template, and inside this template I put all the code needed to display the form and manage the results.
The form is built using PW API, the code is inspired from some examples I found here on the forum.
My problem is that I don't know how to insert a text paragraph between the fields, anyone has idea on how to do this?
Here's a very simplified version of my code (only two fields displayed), in this case I would like to append a custom paragraph (simple html) between Company and Name fields.
The only solution I found is to use an additional field of Fieldset type, without content, and on the label I set the text I need to output. However in the label field I am not able to insert html tags...
Any help is very appreciated... Thank you!
// create a text input $field = $modules->get("InputfieldText"); $field->label = "Company"; $field->attr('id+name','company'); $field->required = 1; $form_fields[] = $field; // create a text input $field = $modules->get("InputfieldText"); $field->label = "Name"; $field->attr('id+name','name'); $field->required = 1; $form_fields[] = $field; // submit button $submit = $modules->get("InputfieldSubmit"); $submit->attr("value","Send"); $submit->attr("id+name","submit2"); $submit->skipLabel = '4'; // create the form field (also field wrapper) $form = $modules->get("InputfieldForm"); $form->action = "./"; $form->method = "post"; $form->attr("id+name",'contact-form'); foreach ($form_fields as $field) { $form->append($field); } $form->append($submit); // append the form in $out variable $out .= $form->render(); -
By Kae
Hey, guys!!!
I'm having a very big problem with Tinymce in processwire. I feel so stupid about it, but can't find the solution. Hope someone can help me.
When I change to html and paste html tags inside a <code> tag, they get converted and disapear. How can I avoid this?
All Iwanted was to show some code examples. I feel so noob right now '-'
Thank you =)
-