Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2013-03-18 11:11:24
- zainul.dss
- New Member
- Registered: 2013-03-18
- Posts: 9
How to display page link like www.abc.com/section/page
I want to display my pages like:
www.abc.com/section/page where section is any sectioin and page is any page.What I have done so far is I have created a section as “sectioin/page” but when I saved it become “sectioin-page” but in title it shows “sectioin/page” in the admin form but in name and on front end it shows like “sectioin-page”.
Please send your suggestions.
Many thanks
Zain…
Offline
Re: How to display page link like www.abc.com/section/page
Hi Zain
Why not create a section “section” and then create articles with the title like “page” in admin/prefs select the url scheme “/section/title” and then when you point the browser to: http://yoursite/section/title you will get the individual article.
Cheers
Offline
#3 2013-03-18 12:27:20
- zainul.dss
- New Member
- Registered: 2013-03-18
- Posts: 9
Re: How to display page link like www.abc.com/section/page
Hi Dear
first I have created a section ‘section1’ but here I need to provide a page link so if I leave this it will take ‘default’ page.
I have set “/section/title” in admin and also created an article from write and select the section1 from section to the right but when I type in the url http://localhost/textpattern/section1/title it provide me 404 Not Found i.e page not found. where title is an article name.
Please reply me…
Last edited by zainul.dss (2013-03-18 12:27:43)
Offline
Re: How to display page link like www.abc.com/section/page
Hi
in write page clic on “view” article link, the link should be: http://localhost/section1/title
Offline
#5 2013-03-18 13:49:02
- zainul.dss
- New Member
- Registered: 2013-03-18
- Posts: 9
Re: How to display page link like www.abc.com/section/page
Hi ,
yes its working but it is coming with section page content and also article body with article tags like comment,Posted by etc.I want only my page content for that article.how do we do that. please suggest and thanks for helping us.
Offline
Re: How to display page link like www.abc.com/section/page
your link is rendered by a txp:article without giving him a form it uses the default form top render the article, then go to Presentation/Forms and modify the default article form the way you want (strip all things and only let <txp:body /> there to render the body of article).
I advice you to go to txp Doc you will get a lot of informations about txp tags
Last edited by Dragondz (2013-03-18 14:11:38)
Offline