A
A
Alexey Usov2016-04-05 14:28:52
MODX
Alexey Usov, 2016-04-05 14:28:52

How to implement favorites in ModX?

There is an entry as a child document of the collection. How can I implement adding this entry to favorites so that I can then display a list of favorite entries in the user's account? (using " Login " add-on (not ads))
Tried an extension like " Tickets " (not ads). But there were difficulties and nothing works.
Who has options? If there is anyone who worked with Tickets, I will be glad to hear from you regarding the implementation of the task.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2016-04-05
@alekseenka

Here is my build on Tickets. You can see how it's done. All code is stored in files.

A
Alexey Usov, 2016-04-06
@alekseenka

The problem hasn't been resolved yet.
I call Ticket.Meta in the ticket like this:
Ticket template (I tried with the standard template, the problem remains):

<div class="post_info" data-id="194782">
  <ul>
    <li><i class="fa fa-user"></i><a href="#"></a></li>
    <li><i class="fa fa-calendar"></i><a href="#">18.05.2022.</a></li>
    <li><i class="fa fa-eye"></i><a href="#"></a></li>
    <li>
      <span class="ticket-star">
         
        <span class="ticket-star-count" style="margin:0 4px">
          
        </span>
      </span>
    </li>
    <li><i class="fa fa-comment"></i><a href="#"></a></li>
  </ul>
  <div class="clear"></div>
</div>
<!--tickets_can_vote <span class="vote rating" title="ticket_refrain"><i class="fa fa-minus"></i></span>-->
<!--tickets_cant_vote <span class="rating" title="ticket_rating_total : ↑ ticket_rating_and ↓"></span>-->
<!--tickets_active  active-->
<!--tickets_inactive  inactive-->
<!--tickets_voted_plus  voted-->
<!--tickets_voted_minus  voted-->
<!--tickets_rating_positive  positive-->
<!--tickets_rating_negative  negative-->
<!--tickets_has_files
<ul class="ticket-files">
  <strong>ticket_uploaded_files:</strong>
  
</ul>-->
<!--tickets_can_star  active-->
<!--tickets_stared <i class="fa fa-star stared star"></i>-->
<!--tickets_unstared <i class="fa fa-star unstared star"></i>-->

I set the path to css manually (checked, styles are connected):
Path to js (checked, processing code included):
The path to jquery (checked, I have implemented the main tasks on it):
But still nothing happens when you click on the star.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question