Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-03-27 14:20:42

micampe
Archived Plugin Author
From: Treviso, Italy
Registered: 2005-03-07
Posts: 38
Website

[archived] mic_permlink: custom permlink

Notice: This thread is archived, this plugin is no longer available.

**********************************************************

As I previously announced, here is my custom permalinks plugin

It is designed to be used in combination with sgb_url_handler, to display different URL schemes in different sections.

It’s really simple to use: it works exactly as the original permlink tag, but using the mode attribute you can specify the URL scheme to be generated.

Valid mode values are (values on the same row are aliases):

  • section or section_title
  • section_id or section_id_title
  • date or year_month_day_title
  • id or id_title
  • title ot title_only
  • messy

Example:

<pre>&lt;txp:mic_permlink mode=“date” /></pre>

will be rendered as:

<pre>&lt;a href=”/2005/03/25/example-title” title=”…”>Example Title&lt;/a></pre>

Last edited by micampe (2005-03-27 14:23:59)

Offline

#2 2005-03-28 02:16:41

mkarolow
New Member
From: Salem, Ma, USA
Registered: 2004-09-26
Posts: 9
Website

Re: [archived] mic_permlink: custom permlink

Sweet!

Offline

#3 2005-03-28 10:46:58

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [archived] mic_permlink: custom permlink

Great. I’ve been wanting different URLs for by blog all along. Thanks for that. Will have time to try it out next week.

Offline

#4 2005-03-30 02:33:20

sungodbiff
Archived Plugin Author
Registered: 2004-03-23
Posts: 57
Website

Re: [archived] mic_permlink: custom permlink

Thanks micampe. This looks great, I was waiting for this before releasing the next revision of sgb_url_handlers :)

- sgb

Offline

#5 2005-04-01 11:30:55

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: [archived] mic_permlink: custom permlink

I love this plugin, great work, thanks!


Johan Nilsson

Offline

#6 2005-04-03 02:14:36

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [archived] mic_permlink: custom permlink

You need to fix the ‘help’ part of the plugin. :)

Offline

#7 2005-04-03 08:06:12

micampe
Archived Plugin Author
From: Treviso, Italy
Registered: 2005-03-07
Posts: 38
Website

Re: [archived] mic_permlink: custom permlink

Thank you mary, it’s fixed now.

Offline

#8 2005-04-27 12:55:41

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [archived] mic_permlink: custom permlink

micampe, is there a way for it to output just the link, so i can use it to generate links in the form:
<code>
<txp:mic_permlink mode=“section_category_title” /><txp:thumbnail /></mic_permlink>
</code>
?


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#9 2005-04-28 13:54:12

micampe
Archived Plugin Author
From: Treviso, Italy
Registered: 2005-03-07
Posts: 38
Website

Re: [archived] mic_permlink: custom permlink

kemie, my plugin is meant to build articles permalinks, I don’t manage images with TXP so I haven’t tested it.

The plugin builds an entire anchor tag, including the text you specify as the anchor text: that’s how I build my permalinks. Can you give an example of the output you need?

Offline

#10 2005-04-28 15:43:01

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [archived] mic_permlink: custom permlink

micample, i managed to get around this using sungodbiff’s hack to permit a default permalink setting of section/category/title
but in case it is useful what i wanted to do is the following:

to output thumbnails of my portfolio pages, i use an article list with a form which is
<code>
<txp:permlink /><txp:thumbnail /></permlink>
</code>

which allows me to have a group of thumbnails that link to their respective articles. I wanted to use your plugin to be able to generate that permlink, but without the text.

Thank you for your help anyway :)


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

Board footer

Powered by FluxBB