Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#385 2008-05-27 17:10:10
Re: gbp_permanent_links
sthmtc wrote:
imo it’d be more appropriate to have that in your generic conditional plugin…
May I add to the confusion?
The as-of-now imaginary <txp:variable />
tag will go into TXP 4.0.7, accompanied by a conditional <txp:if_variable name="foo" value="bar" ...>
(exact syntax still subject to changes).
One possible outcome of this concept used in conjunction with the upcoming attribute parsing is, that any tag will easily be converted into a conditional.
Example:
<!-- step one: store the output of !any! tag into an arbitrarily named variable -->
<!-- nb the use of parsed attributes (single quote delimited) -->
<txp:variable name="foo" value='<txp:permlink />' />
<!-- step two: instant conditional -->
<txp:if_variable name="foo" value="http://example.com/bar/baz">....</txp:if_variable>
Sorry for hijacking this thread. I’ll now return to my regular programming…
Offline
#386 2008-05-27 17:12:27
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: gbp_permanent_links
graeme wrote:
I will be looking at subsection plugins (if there are any – I don’t use them currently) and seeing how easy to hook into permanent_links – or I shall write a very quick example plugin which should give someone a good starting point.
What a coincidence! Just yesterday Chriloi has begun to improve his cnk_section_tree – subsection plugin for clean urls. Maybe he can take advantage of your plugin…
Offline
#387 2008-05-27 23:54:34
Re: gbp_permanent_links
hrm… strange (and very good) things are afoot at the circle K
Offline
#388 2008-05-28 00:16:43
Re: gbp_permanent_links
graeme wrote:
Separators (custom or not) will be applied to individual segments. Rule segments will be given an ‘optional’ option so when generating a URL they will be left out if the article (or other content type) doesn’t have that field. So the problem shouldn’t exists. :)
Thank you so very much for reviving this plugin!!!
Sub/Nested sections is a planned feature for a future version of TXP. I’m curious to see how this can be accomplished in 4.06.
Offline
#389 2008-05-28 11:57:52
Re: gbp_permanent_links
qrayg schrieb:
Sub/Nested sections is a planned feature for a future version of TXP. I’m curious to see how this can be accomplished in 4.06.
Last edited by chriloi (2008-05-28 11:58:17)
Offline
#390 2008-05-29 11:03:17
- jelle
- Member
- Registered: 2006-06-07
- Posts: 165
Re: gbp_permanent_links
graeme wrote:
The plugin already provides gbp_if_regex
and gbp_if_text
Uh….ok. Those are new to me! :) Maybe just a quick ‘n dirty documentation would be handy. How do I access the regex value?
Last edited by jelle (2008-05-29 11:06:25)
Offline
#391 2008-05-31 21:27:51
Re: gbp_permanent_links
graeme wrote:
But now is the time to give me your feature requests. What would you like to be possible which isn’t already?
Is there any possibility of getting it to read my mind, and tell me what to do?
John
Offline
#392 2008-06-10 09:20:57
Re: gbp_permanent_links
yipee!
I’m also in favor of documentation. It has taken lots of experimentation to find out what options do, and how I can get them to work :)
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#393 2008-07-22 08:30:26
- Vitaliy
- New Member
- Registered: 2008-07-22
- Posts: 2
Re: gbp_permanent_links
Hi everybody. Sorry for my half bad english (i’m russian).
I am in some trouble working not as much with plug’in as with txp logic.
i guess satisfaction of my mission is defined here:
http://forum.textpattern.com/viewtopic.php?pid=161252#p258 (post 258)
Even when i did like it says there, i have a problem.
The thing is: i did a little nesting (if this is an apropriate word). when i create an article (i mean a new page) as you know it’s always attached to the section. BUT what i need, is this page to be opened ONLY from subsection Site.ru/article/category/ I mean that link should go here Site.ru/article/category/1/ , and he goes to, but it shouldn’t be dubbed (i mean written) on page Site.ru/section/ . there should be nesting (or how you say it, maybe “inlay”). elementary logic.
So it’s not a problem with plug’in. I guess it’s a problem with the abridgment of a whole txp. What should i do with it?
Thanks a lot for attention.
Last edited by Vitaliy (2008-07-22 08:34:12)
Offline
#394 2008-07-30 15:35:25
Re: gbp_permanent_links
Vitaliy wrote:
So it’s not a problem with plug’in. I guess it’s a problem with the abridgment of a whole txp. What should i do with it?
Thanks a lot for attention.
Yes this is more a limitation (or you could call it a feature) of Textpattern. I’ll have a think about how you might be able to overcome this.
Offline
#395 2008-07-30 15:43:25
Offline
#396 2008-08-29 10:41:04
Re: gbp_permanent_links
Hi.
I use “smd_if” and have links like this:
http://mysite.com/section/info?p=structure
I want the link look like this:
http://mysite.com/section/info/structure
Is it possible?
Offline