Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2019-01-11 22:33:37
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
A question of blogs
I’ve got away with it for years … but now a client is asking for a blog.
Is there any “Textpattern Blogs for Dummies” documentation anywhere? Specifically talking about the comments functionality?
What’s the best/preferred way for users to subscribe to the blog? For example, I use a newsreader to check various feeds on a daily basis, but is there a reliable way of pushing new blog articles to users – email, Twitter, Facebook etc? I recall plugins such as mem_twitter etc for this sort of thing.
Thanks
Offline
Re: A question of blogs
Hi Adi.
A kind of starting point:
<txp:hide>
A comma separated list of section names to protect against shares:
</txp:hide>
<txp:variable name="avoid" value="about,contact" />
<a href="https://twitter.com/share?url=<txp:if_section name='<txp:variable name="avoid" />'><txp:site_url /><txp:else /><txp:if_article_list><txp:section url="1" /><txp:else /><txp:php>echo urlencode(permlink(array()));</txp:php>&text=<txp:php>echo urlencode(title(array('no_widow'=>0)));</txp:php></txp:if_article_list></txp:if_section>" target="_blank" class="social-links" title="Twitter" rel="noopener noreferrer">Twitter</a>
<a href="http://www.facebook.com/sharer/sharer.php?u=<txp:if_section name='<txp:variable name="avoid" />'><txp:site_url /><txp:else /><txp:if_article_list><txp:section url="1" /><txp:else /><txp:php>echo urlencode(permlink(array()));</txp:php>&t=<txp:php>echo urlencode(title(array('no_widow'=>0)));</txp:php></txp:if_article_list></txp:if_section>" target="_blank" class="social-links" title="Facebook" rel="noopener noreferrer">Facebook</a>
<a href="fb-messenger://share/?link=<txp:if_section name='<txp:variable name="avoid" />'><txp:site_url /><txp:else /><txp:if_article_list><txp:section url="1" /><txp:else /><txp:php>echo urlencode(permlink(array()));</txp:php>&app_id=123456789</txp:if_article_list></txp:if_section>" target="_blank" class="social-links" title="Messenger" rel="noopener noreferrer">Messenger</a>
<txp:if_section name'<txp:variable name="avoid" />'><txp:else /><a href="mailto:?subject=<txp:if_individual_article><txp:php>echo urlencode(permlink(array()));</txp:php><txp:else /><txp:php>echo urlencode(section(array('url'=>1)));</txp:php></txp:if_individual_article>" class="social-links" title="Email" rel="noopener noreferrer">Email</a></txp:if_section>
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Pages: 1