Jump to content

Fran

Members
  • Posts

    19
  • Joined

  • Last visited

Community Answers

  1. Fran's post in Form Template Processor success message in different languages was marked as the answer   
    I've just realized that it works if we use the path instead of the ID, which was not working:
    // message output upon successful completion of the form $this->set('successMessage', '<h2>' . wire('pages')->get('contact')->message_sent . '</h2>');
  2. Fran's post in First Paragraph Limiter was marked as the answer   
    Thanks Diogo
    I tried this:
    <?php $lotes = $pages->get(1025)->children(); function getFirstPara($string) { $string = substr($string,0, strpos($string, "</p>")+4); return $string; } foreach ($lotes as $lote) { echo getFirstPara($lote->body); } ?> And it worked great !!!
×
×
  • Create New...