Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2019-10-22 12:10:10

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,214
Website

Re: Dev news

etc wrote #319818:

Interesting. This could be possible if we attach some permlink_mode field to sections.

That is something I have wanted for, oh, about, 15 years.

And I think all of these are things that could be useful.

Offline

#12 2019-10-22 12:23:52

etc
Developer
Registered: 2010-11-11
Posts: 3,427
Website

Re: Dev news

michaelkpate wrote #319820:

That is something I have wanted for, oh, about, 15 years.

And I think all of these are things that could be useful.

Thanks! I hope the wait will be over soon, though messy mode seems to be tough to mix with others.

Offline

#13 2019-10-22 16:13:16

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 184
Website

Re: Dev news

Thank you for these useful improvements. How about the long dreamed txp:image attribute linked (url)? Or even better three attributes file, page, and code, mentioned in 2017, 2013

Offline

#14 2019-10-22 19:46:07

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,592
Website

Re: Dev news

Hi Vienuolis,

If it’s of any use to you, there is my jcr_image_custom that adds a custom field to the image edit pane and a tag to display it. It only does one custom field but can be modified for several custom fields if need be. It’s heavily based on wet_profile (link in the credits on GitHub) which shows an example for two additional custom fields for the author panel. I made similar plugins for links and files too but haven’t publicised them much, mainly because when textpattern’s in-built custom fields come, my plugins can be retired.
It doesn’t deal with the article image case, but someone gave you a straightforward solution to that in the thread you linked to using a parallel custom field.


TXP Builders – finely-crafted code, design and txp

Offline

#15 2019-10-22 19:55:13

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,592
Website

Re: Dev news

michaelkpate wrote #319820:

And I think all of these are things that could be useful.

Absolutely! You keep finding subtle ways to make our tools more versatile!


TXP Builders – finely-crafted code, design and txp

Offline

#16 2019-10-23 07:11:40

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,315
Website

Re: Dev news

Thanks devs, for those improvments,

The coding will be more easy with txp in some case.

Offline

#17 2019-10-23 07:36:31

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,325
Website

Re: Dev news

etc wrote #319819:

If you don’t need all the bells and whistles^1^ of etc_pagination, this commit empowers <txp:newer|older /> tags with pagination bar abilities. You can easily construct basic navigation blocks like

First page ... Page 4 Page 5 Page 6 ... Last page...

via already existing but undocumented shift attribute and new link and break attributes.

1 subliminal advertisement

Really? I can’t beleive it! 😲
Thank you lot!


Patrick.

Github | CodePen | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#18 2019-10-23 07:59:58

etc
Developer
Registered: 2010-11-11
Posts: 3,427
Website

Re: Dev news

Vienuolis wrote #319825:

How about the long dreamed txp:image attribute linked (url)? Or even better three attributes file, page, and code, mentioned in 2017, 2013

These are custom fields, and our cf model is not yet fixed. We wouldn’t like to introduce something that will be broken in the next release. So I fear this will not be for 2019, sorry.

jakob wrote #319828:

You keep finding subtle ways to make our tools more versatile!

Thanks! Hope “versatile” is not synonym of “bloated” :-)

Dragondz wrote #319835:

The coding will be more easy with txp in some case.

Pat64 wrote #319836:

Really? I can’t beleive it! 😲

I hope so!

Offline

#19 2019-10-30 16:01:56

etc
Developer
Registered: 2010-11-11
Posts: 3,427
Website

Re: Dev news

michaelkpate wrote #319820:

That is something I have wanted for, oh, about, 15 years.

Dunno why you wanted it, but per section permlink modes are there. Please test it thoroughly, that was not a few-liner.

Offline

#20 2019-10-31 16:12:52

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,214
Website

Re: Dev news

etc wrote #319876:

Dunno why you wanted it, but per section permlink modes are there. Please test it thoroughly, that was not a few-liner.

I remember discussing permalinks with Dean once but I can’t find the thread. This is from June 2004.

jennycheuk wrote #13300:

Is it possible now to get rid of the article number automatically when publish ?

Eventually we did. (I can’t find when that was).

Then we had wnp_clean_site and zem_rewrite and sgb_url_handler and mic_permlink and my personal favorite, gbp_permanent_links, which many people are still using (not necessarily with the latest version though).

Here’s an example: Design a blog with permalinks in the format /year/month/day/title. Then add a contact page and an about page by creating sections using /section/title. I used to do that in gpb_permanent_links a lot.

Offline

Board footer

Powered by FluxBB