Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: soo_if_frontpage: is this a section front page?
Version 0.1.8 available
Added check for global image context (i.e., the p
parameter in the query string).
Code is topiary
Offline
Re: soo_if_frontpage: is this a section front page?
In my website http://www.mindfulnessbergamo.net I would like to insert Open Graph tags in the homepage head section, and different Open Graph tags in the head section of individual article pages. I am using clean URLs. Is this plugin the right one? Thanks.
Offline
Re: soo_if_frontpage: is this a section front page?
Hi there, sounds like what you need is:
<txp:if_section name="default">...Homepage tags...</txp:if_section>
and:
<txp:if_individual_article>...Individual article tags</txp:if_individual_article>
That is, if I’m understanding you correctly: you only want Open Graph tags on the homepage, and when an individual article is showing. My plugin only distinguishes between ordinary (i.e., not search, category, etc.) article lists (whether on the homepage or a section front page) and everything else.
Last edited by jsoo (2015-08-01 12:17:25)
Code is topiary
Offline
Re: soo_if_frontpage: is this a section front page?
How does soo_if_frontpage
play with Textpattern 4.8? Who’s using it in production?
Follow up question…
How does soo_if_frontpage
play with older Textpattern’s?
Any field reports most welcome – I’m adding it to the plugins site and this would be useful information.
Thanks!
Offline
Re: soo_if_frontpage: is this a section front page?
gaekwad wrote #329504:
How does
soo_if_frontpage
play with Textpattern 4.8? Who’s using it in production?Follow up question…
How does
soo_if_frontpage
play with older Textpattern’s?
It’s a really simple plugin, also a fairly old one, so should be fine with older versions. I’ll admit I haven’t tested it thoroughly against each release, but it still works on the sites where I use it. Let me know if there are any particular tests you’d like me to make.
Code is topiary
Offline
Re: soo_if_frontpage: is this a section front page?
jsoo wrote #329509:
It’s a really simple plugin, also a fairly old one, so should be fine with older versions. I’ll admit I haven’t tested it thoroughly against each release, but it still works on the sites where I use it. Let me know if there are any particular tests you’d like me to make.
Hi Jeff – thank you. All I really need – high level stuff – is whether it works on Textpattern 4.8, 4.7, and then 4.6 for bonus points. It’s probably less work all round if users can report back with a Y or N, but anything you can do would be appreciated.
I’m working my way through the backlog issue on the curated plugins repo, specifically this one: github.com/textpattern/textpattern-curated-plugins-list/issues/9
Offline
Offline
Re: soo_if_frontpage: is this a section front page?
zero wrote #329519:
I’ve used it on 4.8 and other older versions. In the 4.8 I discovered I no longer needed it because core tags could now do the same job, which was very simple in my case.
Excellent – just what I need – thank you!
Offline