Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2012-07-25 15:27:16
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
well, I have in my page
<div id="sidebar-1">
<txp:output_form form="articles" />
</div>
<div id="footer">
<txp:output_form form="footer" />
</div>
the artcle form is
<txp:category_list parent="articles" exclude="articles" />
the footer form is
some text
</br>
<txp:link_to_home>Homepage</txp:link_to_home>
</br>
some other text
Offline
Re: something wrong in my menu and homepage
It should be some text <br /> <txp:link_to_home>Homepage</txp:link_to_home> <br /> some other text
also: what happens if you add <txp:category_list section="default" parent="articles" exclude="articles" />?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#18 2012-07-26 11:38:50
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
I tried your first tip but </br> and <br /> seems to have the same behaviour.
Perhaps the firs one is html tag and the second is specific txp tag.
I tried the second tip too; both your and my category_list tags output the same list,
with the same problem on the footer, that is:
normal footer in article pages and in homepage
bolded footer in the list generated by the category_list tag.
Well, where else could the problem be?
edit: I notice now that the problem appens with Explorer, but not appens using Firefox, Google Chrome and Safari
new edit: I see that the category_list result uses the “homepage” page (that is on the “dafault” section), perhaps changing with the “articles” page could change something, but I’ve not understand how assign a different page to that result
Last edited by alarius (2012-07-27 08:08:33)
Offline
#19 2012-07-30 08:07:14
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
still not understood why of this strange behaviour in Explorer, I notice that it doesn’t appen if the category list is empty….
Offline
Re: something wrong in my menu and homepage
alarius wrote:
I tried your first tip but </br> and <br /> seems to have the same behaviour.
there is no </br> tag. There is <br> is html 5 and pre xhtml and <br /> in xhtml and html 5.
still not understood why of this strange behaviour in Explorer, I notice that it doesn’t appen if the category list is empty….
can you post a url?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#21 2012-07-30 08:36:16
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
I’m working on localhost… I can post the source output from I.E. if you need to see it
Offline
Re: something wrong in my menu and homepage
please do
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#23 2012-07-30 10:22:53
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
sorry I’m not able to make the tag <code></code> works, if someone can edit this post, adjust it and cancel this first line thankyou
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> alarius </title>
<link rel="home" href="http://localhost/textpattern-4.4.1/" />
<link rel="stylesheet" type="text/css" media="screen" href="http://localhost/textpattern-4.4.1/css.php?n=001" />
</head>
<body>
<div id="container">
<!-- head -->
<div id="header">
<div id="header">
<h1 id="site-name"><a rel="home" href="http://localhost/textpattern-4.4.1/">
</a></h1>
<p id="site-slogan"></p>
</div>
</div>
<!-- left -->
<div id="sidebar-1">
<p>
<a href="http://localhost/textpattern-4.4.1/index.php?c=news">news</a><br /><a href="http://localhost/textpattern-4.4.1/index.php?c=travels">travels</a><br /><a href="http://localhost/textpattern-4.4.1/index.php?c=tech">tech</a><br /><a href="http://localhost/textpattern-4.4.1/index.php?c=sport">sport</a><br />
<br><p>
<a rel="home" href="http://localhost/textpattern-4.4.1/">
Homepage
</a>
<br><p>
</div>
<!-- center -->
<div id="contentarea">
<h2 class="entry-title"><a rel="bookmark" href="http://localhost/textpattern-4.4.1/index.php?id=7">blablabla!</a></h2>
<div class="entry-content">
<center><br />
<img src="http://localhost/textpattern-4.4.1/images/6.jpg" alt="" /><br />
</center></p>
<p>blablablablablablablablablablablablablablablabla <br />
blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla </p>
</div>
</div>
<!-- footer -->
<div id="footer">
alarius site
<br /></p>
<a rel="home" href="http://localhost/textpattern-4.4.1/">
- Homepage
</a>
<br />
blablablablablablablablablablablablablablablabla
</font>
</div>
</div>
</body>
</html>
and this is the list of news code
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> alarus : news</title>
<link rel="home" href="http://localhost/textpattern-4.4.1/" />
<link rel="stylesheet" type="text/css" media="screen" href="http://localhost/textpattern-4.4.1/css.php?n=001" />
</head>
<body>
<div id="container">
<!-- head -->
<div id="header">
<div id="header">
<h1 id="site-name"><a rel="home" href="http://localhost/textpattern-4.4.1/">
</a></h1>
<p id="site-slogan"></p>
</div>
</div>
<!-- left -->
<div id="sidebar-1">
<p>
<a href="http://localhost/textpattern-4.4.1/index.php?c=news">news</a><br /><a href="http://localhost/textpattern-4.4.1/index.php?c=travels">travels</a><br /><a href="http://localhost/textpattern-4.4.1/index.php?c=tech">tech</a><br /><a href="http://localhost/textpattern-4.4.1/index.php?c=sport">sport</a><br />
<br><p>
<a rel="home" href="http://localhost/textpattern-4.4.1/">
Homepage
</a>
<br><p>
</div>
<!-- center -->
<div id="contentarea">
<p>HERE IS A LIST OF WHAT HAPPENED</p>
<h3>news</h3>
<ul class="directory">
<h4>
<li>
<span class="entry-title">
<a rel="bookmark" href="http://localhost/textpattern-4.4.1/index.php?id=2">blabla02
</a>
<li>
<span class="entry-title">
<a rel="bookmark" href="http://localhost/textpattern-4.4.1/index.php?id=3">blabla01
</a>
<div class="hfeed">
</div>
</div>
<!-- footer -->
<div id="footer">
alarius site
<br /></p>
<a rel="home" href="http://localhost/textpattern-4.4.1/">
- Homepage
</a>
<br />
blablablablablablablablablablablablablablablabla
</font>
</div>
</div>
</body>
</html>
{Edited to add bc. for better code display. – Uli}
Last edited by uli (2012-07-30 10:33:15)
Offline
#24 2012-07-30 10:38:08
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: something wrong in my menu and homepage
Re your forum code display: Open a code block with bc. (note the blank at the end). Each empty line cancels the code display then.
If you need to post code with blank lines in it, use bc.. (two dots + blank space). You end this with an empty line followed by a block level element in Textile like p. , h1. etc. (always a blank after the dot).
Isn’t your problem about CSS? Then we’d also need the stylesheet.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#25 2012-07-30 10:48:33
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: something wrong in my menu and homepage
uli wrote:
Isn’t your problem about CSS? Then we’d also need the stylesheet.
I think there’s enough room for improvement in the HTML alone:
No HTML element, div inside a span, opened ul that never gets closed, opened p that gets closed by another opening p etc. Try to fix these before.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#26 2012-07-30 11:05:41
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
ok thankyou Uli for the suggestion to the code display.
after this, suggesting me to post the stylesheet make me look at it deeply, and I see there was a command on the left side menu that calls font-weight:bold;
so I tried to put on the footer font-weight:normal and now the problem is solved!
the strange thing is only IE has the problem, and only when the menu gave back the coategory list…
but now works!| thankyou Uli and Colak, have a nice day!
Edit: thankyou Uli for the last suggestion (I did’n see it because I was writing), I’ll take a look on the page section to solve that items
Last edited by alarius (2012-07-30 11:10:06)
Offline
#27 2012-07-30 11:32:06
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: something wrong in my menu and homepage
alarius wrote:
the strange thing is only IE has the problem, and only when the menu gave back the coategory list…
This here surely isn’t a case to look closer at any browser issues. By not writing valid HTML you have “outfoxed” ;) IE, but it might have been any other browser.
But you’ve also really different code in the relevant parts of your samples.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#28 2012-07-30 12:00:08
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
So, I’m not sure I understood, I’m looking at the code but the html page is gave out from textpattern, so I don’t understand what and where I have to correct it. (I’m not good on html and ccs, and TXP too, I go ahed by trying to understand step by step) On the category list, for example, i have on my sidebar menu this form
<p>
<txp:category_list parent="articles" exclude="articles" />
<br><p>
<txp:link_to_home>Homepage</txp:link_to_home>
<br><p>
and on the page I have:
<div id="contentarea">
<txp:if_category name="news">
<p>HERE IS A LIST OF WHAT HAPPENED</p>
</txp:if_category>
<txp:if_category>
<h3><txp:category title="1" /></h3>
<txp:article form="article_listing" limit="500" />
<div class="hfeed">
<txp:if_category name="sport">
<txp:category_list parent="sport" exclude="sport" />
</txp:if_category>
</div>
<txp:else />
<txp:article limit=1 />
</txp:if_individual_article>
</div>
and all this give on the content area
<div id="contentarea">
<p>HERE IS A LIST OF WHAT HAPPENED</p>
<h3>news</h3>
<ul class="directory">
<h4>
<li>
<span class="entry-title">
<a rel="bookmark" href="http://localhost/textpattern-4.4.1/index.php?id=2">blabla02
</a>
<li>
<span class="entry-title">
<a rel="bookmark" href="http://localhost/textpattern-4.4.1/index.php?id=3">blabla01
</a>
<div class="hfeed">
</div>
</div>
so the span command is gave out by txp
Offline
#29 2012-07-30 12:05:37
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: something wrong in my menu and homepage
It’s hard to tell from outside (by us/me) what code output comes from where. But let’s look only at the first code block. There you have 3 p tags, none of them closing. You always need even numbers of each them.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#30 2012-07-30 12:12:01
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: something wrong in my menu and homepage
Block 2:
You open 3 if_category tags, but only close 2.
You close 1 if_individual_article tag without opening it.
Maybe you have the oversight of all your forms and pages and open/close them all correctly in other forms you didn’t post here. But chances are you’ll get as much confused as I am.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline