Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-06-09 17:30:17

Registered: 2016-02-27
Posts: 20

custom url

The field custom url in the article-form is a little bit mystery, isn`t it?

I work with a jump mark, which should take the user from the Exzerpt-headline to the full article. In the main-text-field I give the textile an id.

p(#1). here comes text.

To give the headline the anker, you have to put at the < a href-tag a # with the id, here it is 1, so that it in html looks like here:

<a href=“http://domain.de/headline#1”>(Exzerpt)headline</a>

The only possibility, after your change in the settings “cheme of url” to section/title, is to write into the custom url field the headline#1

Controling the link on the site of Exzerpts show the right pronunciation, it shows in the browsers footer http://domain.de/section/title# . If I give this adress to the browser I get my aim. But when I click on this link, it changes to http://domain.de/section/title%231 and dosn`t jump to the mark “1”
How can I solve this?


#2 2017-06-09 19:36:27

From: Cyprus
Registered: 2004-11-20
Posts: 6,223

Re: custom url

Hi pexman

from the docs

<txp:custom_field name="foo" escape="" />

neme.org | hblack.net | LABS | NeMe @ github


#3 2017-06-09 19:48:07

From: Cologne
Registered: 2006-08-15
Posts: 3,937

Re: custom url

Hallo pexman, ich glaube du suchst sowas hier (sogar auf Deutsch). Das Feld “benutzerdefinierte URL” ist für solche Tricksereien nicht gedacht, falls ich dich richtig verstanden hab, da sollten die Suchmaschinen nicht bei ihrer Arbeit verwirrt werden.

English translation: I think you’re looking for a solution like this one (German page). In case I understood what you’re doing: The field “URL-only title” isn’t meant for such tricks in order to not confuse the search engines.

Edit: Yiannis, you’re lightning.

Last edited by uli (2017-06-09 19:51:00)

In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links


#4 2017-06-09 22:16:03

Registered: 2016-02-27
Posts: 20

Re: custom url

Vielen Dank Uli, das ist die Lösung


Board footer

Powered by FluxBB