Is there an example of “Rules” for displaying Instant Views in a telegram?
https://instantview.telegram.org/
At the moment it turns out such a code for “Rules”. But it is also necessary to display the author, and how to unload images from galleries
?exists: //article
title: //article//header//h1
body: //article//div[has-class("td-post-content")]
#remove
?true
@remove: $body/*[has-class("essb_links")]
@remove: $body/*[has-class("yarpp-related")]
@remove: $body/*[has-class("essb_break_scroll")]
@remove: $body/*[has-class("td-a-rec")]
?true
@debug: $body/*
?true
@unsupported: $body//div[has-class("timely")]
Hello Aleksei Kopaev,
Unfortunately, the theme does not have any such an option for Instant Views Telegram, sorry! You should make some additional customizations if you want to make that plugin to work on your website, sorry! Notice that all of these should have to be done by yourself because we cannot provide this type of services at the moment, sorry!
Regarding on the second request, I do not exactly understand what you mean through unload images from the gallery, sorry! You should simply remove it if you do not want to be in your image gallery. If is not what you mean, please provide more details about this case, so I will be able to provide a more accurate response.
Thanks for the message!
Hello ShepardSR,
Unfortunately, the theme does not have any such an option that allows you to add the InstantVIew on Telegram, sorry! In the future, the update will be implemented this social network but only the option for sharing on this social network. So, if you want to add this feature, notice that you should try to find a plugin for this and check the results. Please refer here -> http://www.wpbeginner.com/plugins/how-to-integrate-your-wordpress-site-with-telegram/ Maybe this tutorial is useful for you.
Thanks for your understanding!
Excuse me I wanted to ask if you managed to complete the code for instant view
Thanks a lot for the answer. I asked the other user if he managed to write a complete code, because the example written by him works in part
From the part of yes, for simple publications, thanks to this code
See how it works here https://t.me/l34_news
?exists: //article
title: //article//header//h1
body: //article//div[has-class("td-post-content")]
$a: //article//header//div[has-class("td-post-author-name")]
@remove: $a//*[not(self::a)]
@append(", "): $a/*[./next-sibling::*]
channel: "@l34_news"
author: $a
author_url: $a/a/@href
#remove
?true
@remove: $body/*[has-class("essb_links")]
@remove: $body/*[has-class("yarpp-related")]
@remove: $body/*[has-class("essb_break_scroll")]
@remove: $body/*[has-class("td-a-rec")]
?true
<slideshow>: $body//div[@data-carousel-extra]
$gal: $@
<figure>: $gal//img[@data-orig-file]/../self::*
@append_to("./prev-sibling::figure"): $@/next-sibling::div[has-class("tiled-gallery-caption")]
<figcaption>: $@
@set_attr(src, @data-orig-file): $gal//img[@data-orig-file]
<slideshow>: $body//div[has-class("td-gallery")]
$s: //script[contains(text(), "td-backstretch not-parallax")]
@match("<img class=\\\\\\'td-backstretch not-parallax\\\\\\' src=\\\\\\'(.*)\\\\\\'", 1): $s
@set_attr(src, "./text()"): $s
: $s
cover: $@
?true
@unsupported: $body//div[has-class("timely")]
@unsupported: $body//input
