onepage popup

stryjek-www
156 Posts
stryjek-www posted this 05 March 2016

witam znalazłem na forum kod poniżej. Kod działa jako popup ale nie wiem jak zrobić aby w tym popupie były wyświetlane artykuły z joomla po ID artykułu

<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">En savoir +</button>


<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog modal-lg">


</div></div>    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h4 class="modal-title">Votre site pas à pas</h4>
      </div>
      <div class="modal-body">
        <p> {article 297}{text}{/article}</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>

witam znalazłem na forum kod poniżej. Kod działa jako popup ale nie wiem jak zrobić aby w tym popupie były wyświetlane artykuły z joomla po ID artykułu <!-- Trigger the modal with a button --> <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">En savoir +</button> <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog modal-lg"> </div></div> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Votre site pas à pas</h4> </div> <div class="modal-body"> <p> {article 297}{text}{/article}</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div>

Last edited 11 March 2016 by Alexs

Vote to pay developers attention to this features or issue.
1 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 10 March 2016

Hi,

Sorry for the delay,
As far as I know Joomla does not have native article shortcode.

Please try the following solution:

  1. Add the following line to Themler Settings >> Additional HEAD html:
    <?php JHTML::_('behavior.modal', 'a.user-modal'); ?>

  2. use the following link to open article:
    <a href="PATH_TO_ARTICLE&tmpl=component" class="user-modal" rel="{size: {x: 1000, y: 600}, handler:'iframe'}">Title of article</a>
    You can add this code directly in Joomla into the article or module.

Thank you,
Olivia

Hi, Sorry for the delay, As far as I know Joomla does not have native article shortcode. Please try the following solution: 1. Add the following line to Themler Settings >> Additional HEAD html: `<?php JHTML::_('behavior.modal', 'a.user-modal'); ?>` 2. use the following link to open article: `<a href="PATH_TO_ARTICLE&tmpl=component" class="user-modal" rel="{size: {x: 1000, y: 600}, handler:'iframe'}">Title of article</a>` You can add this code directly in Joomla into the article or module. Thank you, Olivia
You must log in or register to leave comments