Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2012-07-24 14:30:57
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
so simple… sorry!
Default section is the one I set as homepage, so I have not to create a section for homepage!
or, better, I do it just to have the homepage article not in the articles section
Last edited by alarius (2012-07-24 14:32:09)
Offline
#14 2012-07-24 16:18:49
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
still something I can’t understand at this time… all my sections’ pages uses the same form called “footer” to output the footer of the site, but I see it changing between the homepage or a single artcle page, and the list of articles produced by the left-side menu.
So I understand the problem is on the menu form, but I can not see where (it seems that the only thing changin is the bolded text in the footer when the site is listing articles, and normal text when the page is single article.
I’m using <txp:category_list parent="articles" exclude="articles" />
but in the sidebar form, so what is happening to the footer?
Offline
#15 2012-07-24 18:39:32
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: something wrong in my menu and homepage
Please post the contents of all of the relevant forms here.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#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,315
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