Jump to content

Dynamic Tag URLs


kcnpxcp
 Share

Recommended Posts

Hi there,

I am new on using PW. So this is my first Post. In order of that, i want to say Hello to everybody.

I used PW, to create a Blog with Tagging Function. I used the Page Field Type to create a new Page from a new Tag, defined in a Blog Article.

My Problem is, when I create a New Tag for example "Title A" the Tag and a Page is correctly been created. But the URL of the new Tag Page is a fallback solution like 2014-12-16....

How it is possible to define a custom URL from the Title, as PW does, when I "manually" create a new Page. The easiest Way is the Favorite. I thought I can hook up the Page-Save-Event to Auto-Create a URL, but that would be not that easy. Also I have to fill 2 Fields because its a multilanguage Site.

Can anybody help?

Greetings from Germany

Link to comment
Share on other sites

@kcnpxcp
Welcome to the forum. If you create a new page from the page field you have to change the name later under the tab field settings. If you have only a few tags its easier to create them manually and add them to your fieldtype page.

You can also create pages from API within a template:

$pages->add($template, $parent, $name);

In this case title will betaken from name. Does this help?

@owzim
This option doesn't work by creating a new page via fieldtype page. Furthermore Name format for children is still under development and doesn't work properly. Look here:
https://processwire.com/talk/topic/8551-custom-urls-for-pages/?p=82742

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...