Answer the question
In order to leave comments, you need to log in
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
Here is my build on Tickets. You can see how it's done. All code is stored in files.
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>-->
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question