Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
category_list not using messy urls
I still havnt been able to get clean urls going on my hosts server. Anyway i have the urls set to messy in the site admin. However the dynamically generated links in my sidebar are clean. Why is that?
look at the side bar categories here
www.mcmonagle.biz
here is the code in the sidebar form.
<h2>Categories</h2>
<ul>
<txp:category_list break=“li” />
</ul>
its a bad hen that wont scratch itself.
photogallery
Offline
#2 2007-03-19 18:56:34
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category_list not using messy urls
kvnmcwebn wrote:
I still havnt been able to get clean urls going on my hosts server. Anyway i have the urls set to messy in the site admin. However the dynamically generated links in my sidebar are clean.
What I see is messy: http://mcmonagle.biz/index.php?c=Landscapes
Offline
#3 2007-03-19 21:49:54
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: category_list not using messy urls
Might be related to the ‘Send “Last-Modified” header?’ setting.
Offline
Re: category_list not using messy urls
Oh your right Els they are messy.
I tried turning off the last modified setting, no change maybe i have to research it more.
right now i have category lists that i cant get to.
Any idea of how i would find them?
For instance this is a blank page
http://mcmonagle.biz/index.php?c=Homes-Of-Donegal
but this article
http://mcmonagle.biz/index.php?id=20
is filed under the Homes-Of-Donegal category.
Not sure how to proceed, please advise
Last edited by kvnmcwebn (2007-03-21 12:31:56)
its a bad hen that wont scratch itself.
photogallery
Offline
#5 2007-03-21 19:21:43
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category_list not using messy urls
Then it’s probably something with the article tag(s) you’re using. Can you give us the code that is on your page template?
Offline
Re: category_list not using messy urls
sure here is the page template in question:
<txp:output_form form=“doctype” />
<txp:if_individual_article><title><txp:section title=“1” />: <txp:page_title /></title></txp:if_individual_article><txp:if_article_list><txp:if_section name=”“>
<title>Home Page: <txp:sitename /></title><txp:else />
<title><txp:section title=“1” />: <txp:sitename /></title>
</txp:if_section></txp:if_article_list>
</head>
<txp:if_section name=”“>
<body id=“home”>
<txp:else />
<body id=”<txp:section />”>
</txp:if_section>
<txp:output_form form=“access” />
<div id=“wrap”>
<div id=“content”>
<txp:if_section name=”“> <!— we’re on the homepage, so display one image —> <txp:article form=“image” limit=“1” /> </txp:if_section>
<txp:if_section name=“photos”> <txp:if_article_list> <!— This is the thumbnail listing. —> <ul id=“thumbs”> <txp:article form=“thumb” limit=“9999” /> </ul>
<txp:else />
<!— we’re viewing a single image —> <txp:article form=“image” /> </txp:if_article_list> </txp:if_section>
</div>
<txp:output_form form=“sidebar” />
</div>
<txp:output_form form=“footer” />
</body>
</html>
Last edited by kvnmcwebn (2007-03-22 09:03:33)
its a bad hen that wont scratch itself.
photogallery
Offline
Re: category_list not using messy urls
Here is the form for the sidebar:
<div id=“sidebar”>
<!—
<h2>Sections</h2>
<ul>
<li><a href=”<txp:site_url />”>Home</a></li>
<li><a href=”<txp:site_url />about”>About</a></li>
</ul>—>
<h2>Categories</h2>
<ul>
<txp:category_list break=“li” />
</ul>
<h2>Archives</h2>
<ul>
<li>By Category</li>
<li>By Month</li>
</ul>
<ul id=“linkslist”>
<li><h2>Links Out</h2>
<ul>
<txp:linklist form=“Links” />
</ul>
</li>
</ul>
</div>
thanks in advance
its a bad hen that wont scratch itself.
photogallery
Offline
#8 2007-03-22 19:43:45
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category_list not using messy urls
First, change your category name to all lower case (though I don’t know if that will help, it’s just that names that are not all lower case can cause trouble sometimes).
Second, I see you are using the code from Jon Michael’s photoblog tutorial. Is there an image assigned to the articles in this category? If you are using the article form from the tutorial all it will display is the thumbnail (if in an article list) or the full image (if on an individual article page).
Forget that, I can see that there are images. Do try my first suggestion though ;)
Last edited by els (2007-03-22 19:57:24)
Offline
Re: category_list not using messy urls
Hi,
I found out the problem of the broken category links but im not sure of a sulotion.
the category lists are there for instance
http://mcmonagle.biz/index.php?s=photos&c=homes-of-donegal
BUT, the category links dont generate the section as in the above example so the dont work:
http://mcmonagle.biz/index.php?c=homes-of-donegal
My question is how do i create a side bar that can link to a category list without being in the photos section?
Here is the sidebar repeater as it is
<txp:category_list break=“li”/>
Here is a repeater that generates a valid categor link from inside the photos section <txp:category_list break=“li” this_section=“1” wraptag=“ul” />
So can i just do something like ???
<txp:category_list break=“li” +section =“photos”/>
Seems like a hack but it will do for now till i learn more.
thanks for the patience
its a bad hen that wont scratch itself.
photogallery
Offline
#10 2007-03-23 15:32:49
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category_list not using messy urls
<txp:category_list break="li" section="photos" /> should work.
Offline
Re: category_list not using messy urls
thanks that works
its a bad hen that wont scratch itself.
photogallery
Offline
Pages: 1