MODX Revo - ajax page reloads in modx - modx

In Formit, it seems to show the sent forms, the letters are in the mailings, but ajax does not work, the page is reloaded.
enter image description here
Code template:
enter image description here
Code chunk form_contacts:
enter image description here
Code chunk email_tpl:
![введите сюда описание изображения

Related

Best way to add a custom image to the Quick Links Filmstrip in a sharepoint page

I have a quick link with the filmstrip layout. Some of the items are MS Streams videos. The generic web icon shows for them in the filmstrip. I would like to add a custom image, or at least show an image in the video. If I try the custom image icon, here is no option to specify the image.
enter image description here
enter image description here
When I try custom image, there is no option to upload an image. I was expecting that feature.

Liferay: How to get rederer page meta description in content page

problem is getting meta description for twitter:description.
Currently portal-normal.ftl is handling rendering page metadata and opengraph-markup-section.ftl
is handling content page metadata. If both(render page/source page, and content page) have meta description, they are both displayed.
I can remove pageMetaDescription insertion in portal-normal.ftl file but then if content page does not contain pageMetaDescription, there is no description at all.
How can I achieve logic: if web content pageMetaDescription is empty -> then get renderer/source_page pageMetaDescription. Thank you.

Editing HTML of a page in Weebly

I have a page with:
title
image gallery
with code for title:
<h2 class="wsite-content-title" style="text-align:left;"><font color="#515151" size="5">​ External / Internal</font></h2>
and the code for image gallery.
I want to make a wrapper div for these both elements (title and image gallery, which are h2 and a div) with HTML. Is there a way to do that?
I found the code using Inspect in Chrome... but to change the code, I need to know where it is in the Weebly editor. I can't find it.
Note: the page is a "Standard Page" (as opposed to "Blog Page")

scrapy pagination without href

I created a spider that takes the information from the table below, but I can not change to the previous table because it does not have "href", how do I?
https://br.soccerway.com/teams/italy/as-roma/1241/
previous button without href
<a rel="previous" class="previous " id="page_team_1_block_team_matches_summary_7_previous">« anterior</a>
If you look at network inspector in your browser you can see an XHR request being made when you click next button:
That request return json response with html changes:
You need to reverse engineer how your page generated this url (from the first image):
https://br.soccerway.com/a/block_team_matches_summary?block_id=page_team_1_block_team_matches_summary_7&callback_params=%7B%22page%22%3A0%2C%22bookmaker_urls%22%3A%7B%2213%22%3A%5B%7B%22link%22%3A%22http%3A%2F%2Fwww.bet365.com%2Fhome%2F%3Faffiliate%3D365_371546%22%2C%22name%22%3A%22Bet%20365%22%7D%5D%7D%2C%22block_service_id%22%3A%22team_summary_block_teammatchessummary%22%2C%22team_id%22%3A1241%2C%22competition_id%22%3A0%2C%22filter%22%3A%22all%22%2C%22new_design%22%3Afalse%7D&action=changePage&params=%7B%22page%22%3A1%7D
And then you can use that to retrieve following pages.

MODx Revo. How to show the first image of a blog post on the main page?

I use MODx Revolution. On the home page we show some of the excerpt of the content (introtext).
<h2 class="title">[[+pagetitle]]</h2>
<p>[[+introtext]]</p>
<p class="postmeta">
read more
| <span class="date">[[+publishedon:strtotime:date=`%m/%d/%y`]]</span>
</p>
This is the guide I've used.
how display on the main page as the first image of the article?
You need to make a Template Variable eg 'BlogImage' of type 'Image' and assign that TV to your blog post template. Then upload your image to that field within each blog post and you can then access it with:
img src="[[+tv.BlogImage]]"
That will output your image from the TV.
To output this image on a different template EG your homepage template you need to do a GetResources or GetResourceField call, which requires the installation of packages through the Revo Package Manager.
hope that helps.

Resources