Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » custom url

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

pexman
Member
Registered: 2016-02-27
Posts: 61

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?

Offline

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

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,032
Website GitHub Mastodon Twitter

Re: custom url

Hi pexman

from the docs

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

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

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

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

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

Offline

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

pexman
Member
Registered: 2016-02-27
Posts: 61

Re: custom url

Vielen Dank Uli, das ist die Lösung

Offline

  1. Index
  2. » How do I…?
  3. » custom url

Board footer

Powered by FluxBB