Jump to content

Roych

Members
  • Content Count

    117
  • Joined

  • Last visited

Community Reputation

24 Excellent

About Roych

  • Rank
    Sr. Member

Recent Profile Visitors

1,478 profile views
  1. Hello, My first time trying to add form to a modal box. I got it loaded, but after submitting or if there is an error my modal box closes. Is there any way to leave it open until it is succesfully submitted and the success text would also show in the same modal box until I close the modal box myself. Im using the FormTemplateProcessor module for forms. Right now my code is: <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#forma">Buy a Ticket</button> <div class="modal fade" id="forma" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">Buy a Ticket</h4> </div> <div class="modal-body"> <?php if ($page->koledar_obrazec) : ?> <?php echo $page->text_k_nakupu_kart ?> <br> <?php $form = $modules->get('FormTemplateProcessor');$form->template = $templates->get('Obrazec-karte-dogodki'); // required $form->requiredFields = array('obrazec_vstopnice_ime', 'obrazec_vstopnice_mail', 'obrazec_vstopnice_naslov', 'obrazec_vstopnice_telefon'); $form->email = 'info@povemodkrito.com'; // optional, sends form as email $form->parent = $page; // optional, saves form as page echo $form->render(); // draw form or process submitted form ?> <?php endif; ?></div> <div class="modal-footer"> <button type="button" class="btn btn-default inverted" data-dismiss="modal">Close</button> </div> </div> </div> </div> I tried to look on the forum, but not sure what to look for exactly as I have never done this before. Any help greatly appreciated. Thank you R
  2. Hello, any update on this or maybe any other module that works. I tried the opened issue above but there is no working solution there or am I missing something. Thank you R
  3. Hey, All the best in 2019! Thank you for answers, I will try to work something out and see what's going to come out Thank you R
  4. I have a button in header called "get a quote" , which is always seen. So when user clicks on it, one random quote opens up in modal window. I have expl. 30 quotes made in repeater. Im calling 1 random quote with the code in first post. It's working but only shows the same quote unless you refresh or go to another page in menu and then click the button again. I tried to look and read the links above but I have never realy worked with cache before so I don't realy understand it quite right. Thank you R
  5. thank you for answer Im trying to create a button like "get a quote" so you could click on it expl: 5 times and get different quote everytime. My php is not so good so Im not realy sure where to start here. Thank you R
  6. Hello, Im creating some quotes that will open in modal box when clicked and I need them to open randomly without refreshing the whole site. Is this possible somehow? Right now Im using this code to fetch reeater items in my modal box. <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">Launch demo modal</button> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <?php $quotes = $pages->get(1741)->quote_repeater->find("limit=1, sort=random"); ?> <?php foreach($quotes as $quote): ?> <h2><?= $quote->title; ?></h2> <p><?= $quote->body; ?></p> <?php endforeach; ?> <div class="modal-footer"> <button type="button" class="btn btn-default inverted" data-dismiss="modal">Close</button> </div> </div> </div> </div> But now it needs a refresh to cycle through. So what would be the best way to approach this? Thank you R
  7. The download link for the module is not available. Not in repository and not in Gitub - Prestashop module Does anyone still have this module please? Thank you R
  8. thank you for helping, but from written above I decided it is maybe really better if I go for pages, so I've changed my approach a little. Thank you very much R
  9. Hello I need some help oppening repeater item in another template. I tried to look on forum but couldn't find anything helpful for me. I have repeater items for expl. team on my about page. And I would like to show more info about a single team member like (read more ...) with something like <?=$team->url?> or ... I would create new template for team member. Im showing my repeater list with: <?php foreach($page->ostali_sodelujoci_team as $team): ?> <?php $image = $team->images->first;?> <li class="grid-item post format-standard"> <div class="team"> <a href="URL HERE?" > <img src="<?=$image->url; ?>" alt="<?=$image->description; ?>"> </a> <div class="grid-content"> <h3><a href="URL HERE?"><?=$team->title?></a></h3> <div class="naziv"><?=$team->team_naziv?></div> <nav class="social-icons"> <?php foreach ($team->team_social_repeater as $social): ?> <a href="<?=$social->URLassist; ?>" target="_blank"><i class="fa fa-<?=$social->home_info_blocks_icons; ?>"></i></a> <?php endforeach; ?> </nav> <?php $summary = truncateText($team->body); echo "$summary ...";?> <a href="URL HERE?">Read more</a> </div> </div> </li> <?php endforeach; ?> Can this be done somehow with repeaters? I would really like to stay with repeater here if possible ofc. Any help appreciated R
  10. Hello, how can I change the markup for my form from this: to this: Thank you R
  11. Hello, my first time using this module and need some help. I created a new list an setup everything in module settings. But not sure how to create a subscribe form on frontend of my site. Any help is appreciated Thank you R
  12. hello this is my first time using this module, work great but I'm not sure how should my year, month templates look like. My php is not so good, would appreciate some help here. I would like to post some articles from that "month, year", maybe a title an image and some short text. my year template name is blog-articlelist-year.php and month blog-articlelist-month.php Thank you very much R
  13. Yep, still using it on some sites and works great. love PW ...
×
×
  • Create New...