Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] glx_if: some conditional tags
ahh, that is just some notes to myself, i remove it later on…
Chris, hmm havent really looked at his code, sorry. Right now i dont have much time to build in what you are asking for into glx_if but i do have it in my thoughts.
Johan Nilsson
Offline
#38 2004-12-21 19:53:44
- Chris
- Member
- Registered: 2004-02-26
- Posts: 22
Re: [plugin] [ORPHAN] glx_if: some conditional tags
Thanks Johan. I’m gonna tinker with some php to see if I can get something working.
Offline
Re: [plugin] [ORPHAN] glx_if: some conditional tags
I just modified everything to work with clean URLs, but now the glx_if_section_frontpage does not work. Is this known?
Offline
Re: [plugin] [ORPHAN] glx_if: some conditional tags
I’ve never had a problem with glx_if_section_frontpage, and I use the default clean URL method.
Code is topiary
Offline
Re: [plugin] [ORPHAN] glx_if: some conditional tags
That’s weird because it completely skips over the if statement on the section frontpage. Here’s what I’m doing on the page:
< txp:glx_if_section_frontpage>
< div id=“content”>< div class=“padding”>
< div class=“third”>< div class=“padding”>
< h5>Browse by Date< /h5>
< txp:rss_suparchive section=“photos” limit=“25” />
< /div>< /div>
< div class=“twoThirds”><div class=“padding”>
< h1>Photos Archive< /h1>
< txp:rss_suparchive_bycat section=“photos” />
< /div>< /div>
< /txp:glx_if_section_frontpage>
< txp:if_individual_article>
< div id=“content”>< div class=“padding textCenter”>
< div class=“whole”>
< div class=“breadcrumbs”>< txp:tcm_crumbs hometitle=“Home” />< /div>
< txp:low_article_no_discuss form=“photos” />
< /div>
< /txp:if_individual_article>
Offline
Re: [plugin] [ORPHAN] glx_if: some conditional tags
At the moment the only place I’m using glx_if_section_frontpage is in a form. But, a quick test on a page template shows that it works there too. I have no idea why your isn’t working.
Code is topiary
Offline
Re: [plugin] [ORPHAN] glx_if: some conditional tags
doesn’t work in forms either. i know that my hacked suparchive works because if I take of the glx_if statement everything shows up correctly. Come to think of it, none of the glx_if statements are working.
PS: I’m using ramanan’s clean url’s with mod_rewrite.
Offline
Re: [plugin] [ORPHAN] glx_if: some conditional tags
Really dumb question, but are you sure glx_if is installed and set to on?
Code is topiary
Offline
Re: [plugin] [ORPHAN] glx_if: some conditional tags
paularms, mod_rewrite shouldnt have anything with this todo. But try to change so you have <code>if_individual_article</code> before <code>glx_if_section_frontpage</code> and see if that maybe could help.
Johan Nilsson
Offline
Re: [plugin] [ORPHAN] glx_if: some conditional tags
jsoo: yes, it is on. I reinstalled it and yes, it is on again.
osei: still the same thing with it in either order.
Offline
#47 2005-01-23 20:48:52
- hurben
- Member
- Registered: 2005-01-17
- Posts: 11
Re: [plugin] [ORPHAN] glx_if: some conditional tags
Using this technique I only get ‘if section frontpage’ to work..
When I click on a link to view an article within that section it does nothing.. just stays the same..
http://hurben.net/index.php?s=texts
—————————————————————————————————————
< txp:glx_if_not_section_frontpage >
< txp:article limit=“1” / >not front
< /txp:glx_if_not_section_frontpage >
< txp:glx_if_section_frontpage >
< txp:article_custom limit=“1” category=“Texts” section=“Texts” form=“Section” / >front
< /txp:glx_if_section_frontpage >
—————————————————————————————————————
Last edited by hurben (2005-01-23 22:25:53)
Offline