Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-01-14 21:23:26

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#14 2015-07-30 10:57:41

gilibaus
Member
From: Milan, Italy
Registered: 2013-08-14
Posts: 73
Website

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

#15 2015-08-01 12:12:07

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#16 2021-03-27 11:37:51

gaekwad
Multi-hyphenate
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,529
GitHub

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

#17 2021-03-27 12:04:37

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#18 2021-03-27 12:07:58

gaekwad
Multi-hyphenate
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,529
GitHub

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

#19 2021-03-27 15:12:07

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,429
Website Mastodon

Re: soo_if_frontpage: is this a section front page?

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.


Gud One Blog
Wondrous Healing Wondrous ways to a healthy old age

Offline

#20 2021-03-27 16:50:38

gaekwad
Multi-hyphenate
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,529
GitHub

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

Board footer

Powered by FluxBB