Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2014-08-01 17:22:16
- mFrance
- New Member
- Registered: 2014-08-01
- Posts: 6
The word "category" in the urls : www.site.com/category/cat1/ - why?
The word “category” in the urls is necessary?
Why so :
www.site.com/category/cat1/
www.site.com/category/cat2/
www.site.com/category/cat3/ ?
But not so :
www.site.com/cat1/
www.site.com/cat2/
www.site.com/cat3/ ?
Can man it remove from uls?
Thanks!
Last edited by mFrance (2014-08-01 17:36:32)
Offline
#2 2014-08-01 19:42:02
- mFrance
- New Member
- Registered: 2014-08-01
- Posts: 6
Re: The word "category" in the urls : www.site.com/category/cat1/ - why?
But then will be one problem – how the TextPattern will understand what is it: cat1 – the section or the category?
That’s right?
Offline
Re: The word "category" in the urls : www.site.com/category/cat1/ - why?
mFrance wrote #282601:
But then will be one problem – how the TextPattern will understand what is it: cat1 – the section or the category?
That’s right?
yes:) Apologies for not responding to your first post. I must have missed it.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#4 2014-08-03 16:14:45
- mFrance
- New Member
- Registered: 2014-08-01
- Posts: 6
Re: The word "category" in the urls : www.site.com/category/cat1/ - why?
Were performed the next investigations:
was installed the plugin gbp_permanent_links
in this plugin was set the rule “category”
Summary: yes, the urls of the site became www.site.com/cat1/, www.site.com/cat2/, …
BUT all tags category_list, stw_category_tree don’t work.
In the output form were added the test words “txp:if_category = true”
<txp:if_category>
txp:if_category = true<br />
….
<txp:else />
txp:if_category = false<br />
….
</txp:if_category>
And on every page which shows category was write: txp:if_category = false
TextPattern can’t determine the category.
Therefore : we can’t any way remove the word category from url? That’s right?
(We can it replace, for example – “c”, “docs”, etc)
Last edited by mFrance (2014-08-03 16:16:46)
Offline
Re: The word "category" in the urls : www.site.com/category/cat1/ - why?
Indeed the “category” word or “c” do need to stay if you are using them. I normally opt for sections instead of categories for that exact reason. I prefer my urls to look like directory structures. ie domain.com/section-name/article-name
. I can think of some examples where categories are needed but more often than not they are not in my view.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline