Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-15 10:27:45

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

minismith.com revised

Here you go : minismith.com

For those of you who know next/prev navigation well, can you tell me what you think of the bug that’s occuring? clicking the next/prev arrows at the bottom of the list will send the user to the next article’s URL, but the article does not reflect that visually. Furthermore, anytime the user is on the “home” section vs. the default section, the “category” dropdown javascript is disabled.

The page which controls default and home sections :

<txp:output_form form="basic_dtd_head" />
<body>
<div id="outerwrapper">
	<div id="wrapper">
		<!-- main content -->
		<div id="content">
			<div id="rotator">
				<p>Site design by <a href="http://squaredeye.com">Squared Eye</a></p>
			</div><!--close rotator -->			
			<div id="header">
				&nbsp;
			</div><!--close header-->
			<txp:output_form form="layout_nav_menu" />
			<txp:if_category>
				<h1>Category : <txp:category title="1" /></h1>
				<txp:rss_unlimited_categories_article_list form="article_default_list" limit="9999" />
			<txp:else />
			<txp:if_article_list>
			<txp:article_custom section="home" form="article_default" limit="1" />
			</txp:if_article_list>
			<txp:if_individual_article>
			<txp:article_custom section="home" form="article_default" limit="1" />
			</txp:if_individual_article>
			</txp:if_category>
		</div><!--close content-->
		<div id="subcontent">
			<ul class="subcontent-chunk"  id="subnav">
				<li><a href="http://flickr.com/photos/minismith">Photos</a></li>
				<li><a href="/contact">Contact</a></li>
			</ul>
			<div class="subcontent-chunk" id="bio">
				<h2>I am Amy Smith</h2>
				<div id="biopic">
				<img src="<txp:site_url />css/images/img_bio_pic.jpg" alt="Amy Smith and Family including Matthew, Brighton, and Levi" />
				</div>
				<txp:article_custom section="home" form="article_body" id="5" />
			</div><!--end bio-->
		<div id="archive-list" class="subcontent-chunk">
			<h2>A little Further Back</h2>
			<ul>
				<txp:article_custom section="home" form="article_archive" limit="3" offset="1" />
			</ul>
		</div>
		<txp:output_form form="basic_subscribe" />
			<div id="category-list-all" class="subcontent-chunk">
					<txp:rss_uc_list showcount="1" linktosection="home" wraptag="ul" break="li" label="Categories" labeltag="h2" />
				<div class="clear">&nbsp;</div>
			</div>
			<div id="papa-list" class="subcontent-chunk">
				<h2>Papa's Posts</h2>
				<txp:if_article_author name="artiswork">
				<ul>
					<txp:article_custom section="home" form="article_archive" author="artiswork" limit="3" offset="1" /> 
				</ul>
				<txp:else />
				<ul>
					<txp:article_custom section="home" form="article_archive" author="artiswork" limit="3" /> 
				</ul>
				</txp:if_article_author>
			</div>
		<div id="link-list" class="subcontent-chunk">
			<script type="text/javascript" src="http://ma.gnolia.com/js/none/people/amyclaire123/?length=5&amp;byline=true"></script><noscript><a href="http://ma.gnolia.com/people/amyclaire123" title="Visit Me on Ma.gnolia" rel="me">Visit Me on Ma.gnolia</a></noscript>
		</div>
		</div> <!-- close subcontent -->
		<!-- footer -->
	</div><!--close wrapper-->
</div><!--close outer-->
</body>
</html>

The form

<div class="post">
	<p class="posted"><txp:posted format="%B %e, %Y" /> | <txp:author /></p>
	<h2 class="posttitle">
	<txp:permlink><txp:title /></txp:permlink>
	</h2>
	<div class="meta">
		<a id="toggle">Categories</a>
		<ul id="category-list">
		<txp:rss_uc_filedunder linktosection="home" wraptag="" break="li" />
		</ul>
		<txp:if_comments_allowed><txp:comments_invite showcount="1" showalways="1" /></txp:if_comments_allowed>
	</div>
	<txp:body />
		<div id="pagenav">
			<p class="leftnav"><txp:link_to_prev>&lt;&lt;&lt;</txp:link_to_prev></p>
			<p class="rightnav"><txp:link_to_next>&gt;&gt;&gt;</txp:link_to_next></p>
			<div class="clear"></div>
		</div><!--/page-nav-->	
		<div id="comment">
		<txp:if_comments_allowed>
		<txp:if_comments>
		<h3>Comments</h3>
		<p><a href="#txpCommentInputForm">jump to the end and make your own</a></p>
		<txp:else />
		<h3>Leave a comment</h3>
		</txp:if_comments>
		</txp:if_comments_allowed>
		<txp:comments />
		<txp:comments_form />
			<txp:if_comments_disallowed>
			</txp:if_comments_disallowed>
		</div><!--close comment-->
</div>

I’ve been up with my 5week old for about 3 hours trying to track this down, but could use some help.

Matthew

Last edited by ma_smith (2007-03-15 10:54:33)


Offline

#2 2007-03-15 11:02:57

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: minismith.com revised

Howdy @matthew, lovely. Really charming and enchanting. However, you seem to be really tired, judging from the photo.

Unfurnatelly I’m at a loss at these myself, my brain is at times confused with all these. ( Have it obversed though at well )

There is however a little small post to get you inspired, so you can start contemplating

regards, marios

Last edited by marios (2007-03-15 11:09:40)


⌃ ⇧ < ⌃ ⇧ >

Offline

#3 2007-03-15 11:25:41

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: minismith.com revised

ma_smith wrote:

clicking the next/prev arrows at the bottom of the list will send the user to the next article’s URL, but the article does not reflect that visually

I haven’t checked with the code, but I assume this is because article_custom does no pagination. Try to restructure your site with txp:article in mind.

Offline

#4 2007-03-15 11:31:18

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: minismith.com revised

I love it.


Regards,

Joey

Offline

#5 2007-03-15 14:14:02

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: minismith.com revised

Robert,
I had no idea article_custom didn’t paginate? I don’t use it enough to know. Thanks man. Thanks also Marios and Joey NL for the encouragement.

Matthew

EDIT That did the trick for navigation. Thanks again Robert. In the meantime, something very strange is happening with the JS acting differently in the home section, than the default section. I can’t figure it out. They both use the same page template? Anybody have any ideas?

Matthew

Last edited by ma_smith (2007-03-15 14:30:45)


Offline

#6 2007-03-15 14:52:11

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: minismith.com revised

Youa ren’t actually calling jquery from /home/ you are calling http://minismith.com/home/js/jquery.js which is returning an html page (maybe through some redirect or error document you have in place)

Anyway change

<script src="js/jquery.js" type="text/javascript">

to

<script src="/js/jquery.js" type="text/javascript">

and I believe you should be in business. Notice the preceding slash. Otherwise you could always do something like

 <script src="<txp:site_url />/js/jquery.js" type="text/javascript">

if you aren’t testing with virtual domains locally. I can’t remember off hand if <txp:site_url /> returns a trailing slash or not so adjust to taste.

BTW Firebug is your friend.

Last edited by hakjoon (2007-03-15 14:54:48)


Shoving is the answer – pusher robot

Offline

#7 2007-03-15 15:06:13

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: minismith.com revised

Patrick.
Thanks man.
I use firebug, but in this case didn’t know how to read it :)

Thanks man.

Matthew


Offline

#8 2007-03-15 15:14:38

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: minismith.com revised

This is super handy for figuring what where stuff is being called.

  1. Open up firebug on the page with the error
  2. In the console it should tell you what file is erroring. Click on the filename on the left
  3. This will open the script tab with the problematic file open
  4. Next to the inspect button (can we call that a button) there is a dropdown (sort of) which let’s you see all the scripts that are being loaded.
  5. Right-click on it and it will let you copy the location of the current file.
  6. Paste that somewhere and you can see what the path it’s pulling is. That’s how I noticed it was looking for /home/js/jquery.js

Season to taste. This works for Style Sheets too.

I honestly don’t know how I lived without this tool.

Last edited by hakjoon (2007-03-15 15:15:17)


Shoving is the answer – pusher robot

Offline

#9 2007-03-15 15:17:39

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: minismith.com revised

season to taste indeed. Bella


Offline

#10 2007-03-15 17:25:05

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: minismith.com revised

Nice Design. Good work. Take a nap…

;P

Offline

#11 2007-03-15 17:37:53

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: minismith.com revised

Dale,
Thanks. I will try to take a nap indeed.


Offline

#12 2007-03-15 22:51:26

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: minismith.com revised

Hi Matthew

Very cute site! Just one thing: when I click mama, am I not supposed to see only mama’s posts? Your latest post is still on top. (Of course this can also be on purpose, so everyone will thoroughly realize how little sleep you are getting and pity you…) ;)

Offline

Board footer

Powered by FluxBB