sugestion: own template file for new site_configs

God morgon @fivefilters,

could you consider to have a template file for self-hosters for new site-configs, please?

Currently the templated is stored in a single line in edit-pattern.php

if (empty($matched)) {
        $contents = "# No matching files found, you can write yours here\n\n# body: //div[@id='body']\n\n...

But I wish, I could have a template, where I already have my standard things in, which would be toooo long for that line, e.g.:

#http_header(User-Agent): Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
#http_header(User-Agent): Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
#http_header(User-Agent): Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)
#http_header(User-Agent): Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)
#http_header(User-Agent): curl/7.83.1
#http_header(User-Agent): curl/7.54.0
#http_header(User-Agent): PHP/8.4
#http_header(User-Agent): PHP/7.4

#http_header(referer): https://google.com
#http_header(cookie): key=value

insert_detected_image: no #testing, to get sure, wallabag also get's the lead image.
#prune: no
#tidy: no

#body: //article[1]
#body: //div[contains(concat(' ',normalize-space(@class),' '),' item ')]
#title: //meta[@property='og:title']/@content
#author: //meta[@name='author']/@content
#date: //time/@datetime

#strip_attr: //h2[contains(@class,'wp-block-heading')]/@class
#strip_attr: //h3[contains(@class,'wp-block-heading')]/@class

#test_url: https//

Hi @HolgerAusB, sorry for the slow reply. This is a great idea. Will do this in the next release.

We’re planning to combine Feed Creator and Full-Text RSS in to one product soon, and improving the usability of both is high on the priority list. Thanks for the suggestion.

1 Like