Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2006-03-18 02:28:51

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

But what version of TXP are you using? I’m not sure you need this plug-in. Check out the existing “if_comments” native TXP tags.

Last edited by thebombsite (2006-03-18 02:29:11)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#86 2006-03-18 19:42:35

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

I’m currently using version Textpattern · 4.0.3.

Offline

#87 2006-03-18 21:46:29

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Did you look at the “if_comments” conditionals in the link I gave above?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#88 2006-04-01 10:39:39

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Can anyone explain how <code>glx_if_section_frontpage</code> and <code>glx_if_not_section_frontpage</code> differ from <code><txp:if_individual_article></code> and <code><txp:if_article_list></code>?

I ask because the rss_suparchive plugin generates root/section/year archive pages within a section and I’d like to distinguish these pages in my page template from the section frontpage. I thought this plugin might do that, but the root/section/year URLs still display as if they were the section frontpage.

Can anyone suggest a way to use/hack glx_if to get that result?

Offline

#89 2006-04-01 18:20:58

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Hmm, it seems that this plugin doesn’t recognise /section/?c=categoryname urls as being different from the section frontpage either.

Can anyone confirm that being the case, or does it suggest I’m using it wrong somehow?

Offline

#90 2006-04-01 20:33:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Well <code><txp:if_individual_article></code> and <code><txp:if_article_list></code> can be used in any section not just the “default” section which means they don’t necessarily indicate THE front-page, but they would point to the front or back page of the section they were being used in. On the other hand the <code><txp:if_section name=”“></txp:if_section></code> tags would target the default section so we are half-way there. If you combined that with the other tags like so:-

<code>
<txp:if_section name=”“>
<txp:if_article_list>
This is THE front-page
<txp:else />
This is the comment page of the default section
</txp:if_article_list>
</txp:if_section></code>
<br />

you can target THE front-page specifically. Did that make any sense?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#91 2006-04-01 20:45:10

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

errrr, I wish it did ;)
but maybe I didn’t explain myself too well in the first place
I understand how <code><if_section name=”“></code> could be useful, but what I’m really after is being able to diiferentiate in my template between these two URLs

  • root/section aka the section frontpage (?)
  • root/section/year this is still a list page (generated by rss_suparchive) but its not the section frontpage, so I was hoping the glx_if plugin could spot the difference.

does that make any more sense?

Offline

#92 2006-04-01 21:04:44

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Is there any reason why you can’t send the year list from the plug-in to it’s own section and template?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#93 2006-04-01 21:13:55

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

It’s possible to do that without rss_suparchive, but I understood the point of the plugin (or at least it’s main strength that I could see) was that you could create (yearly & monthly) archives within each section with nice semantic URLs.

In a site with many different sections – each with different content types – which all need archiving, I think its a bit clunky to have to stuff lots of different content within a single distinct ‘archive’ section. But maybe I’m on my own there, cos this is becoming a bit of a goose chase for me ;)

Offline

#94 2006-04-01 22:03:20

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

You just be careful those geese aren’t sneezing. ;) It’s been a while since I stopped using rss_suparchive but I’m sure there would be a way to create a link to the archive which only showed a specific /section/year listing. I know it could be done for months. Would something like that suit?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#95 2006-04-01 22:09:48

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

oh yep, you can create those URLs easy enough, but as they generate list pages they have to use the same template as the default section page. My dream is that one day I will be able to give each scenario a different layout! – hence I’ve wandered hopefully into the glx plugin thread

Offline

#96 2006-04-01 22:17:35

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Well as you said earlier, as they are both lists, I don’t think this plug-in can tell the difference. So explain to me why you need the segregation. Is it because you don’t want them both appearing at the same time or is it because you want to apply a different style/format?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB