Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-10-11 06:24:31
- cherbert
- New Member
- Registered: 2012-10-11
- Posts: 7
Complete newbie - can't get page to show in navigation
I have been asked to add a new page to an existing website but never used textpattern before and can’t get the page to show up in the navigation links.
This is what I did:
1. Created a new page template called camera-cabtastic based on one of the existing ones.
<txp:article form=“masterhead_1” />
<title>Camera Cabtastic</title>
<txp:output_form form=“masterhead_2” />
<body id=“camera-cabtastic”>
<txp:output_form form=“body_top” />
<txp:article form=“h2_image_body” />
<txp:output_form form=“body_bottom” />
2. Created an associated section, again using existing ones as a guide
camera-cabtastic
Section name: camera-cabtastic
Section title: Camera Cabtastic
Uses page: camera-cabtastic
Uses style: default
Selected by default No
On front page No (I have also tried changing this to yes)
Syndicate? No
Include in site search No
3. Created an article
URL_only title = camera-cabtastic
Status = Live
Section = camera-cabtastic
Now, if I go to the page directly it sees it – http://www.whitelondontaxi.co.uk/index.php?s=camera-cabtastic
But it does not show up in the left hand navigation column.
I have tried fiddling with everything and looking through the help guides, but can’t understand/find out why the page link isn’t showing!
Any help would be greatly appreciated – it’s driving me mad! :)
Thanks
Offline
Re: Complete newbie - can't get page to show in navigation
Please post your code for the navigation links. Seems to be a section list, so your camera-cabtastic should in theory show up.
Offline
#3 2012-10-11 08:56:18
- cherbert
- New Member
- Registered: 2012-10-11
- Posts: 7
Re: Complete newbie - can't get page to show in navigation
I would – but not sure where that it. This is the code from the only page that isn’t a template snippet as above.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><txp:page_title /></title>
<link rel="home" href="<txp:site_url />" />
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
<txp:rsd />
</head>
<body id="<txp:section />">
<!-- accessibility -->
<div id="accessibility">
<ul>
<li><a href="#content"><txp:text item="go_content" /></a></li>
<li><a href="#sidebar-1"><txp:text item="go_nav" /></a></li>
<li><a href="#sidebar-2"><txp:text item="go_search" /></a></li>
</ul>
</div>
<div id="container">
<!-- head -->
<div id="head">
<p id="site-name"><txp:link_to_home><txp:site_name /></txp:link_to_home></p>
<p id="site-slogan"><txp:site_slogan /></p>
</div>
<!-- left -->
<div id="sidebar-1">
<txp:section_list default_title='<txp:text item="home" />' include_default="1" wraptag="ul" break="li">
<txp:if_section name='<txp:section />'>»</txp:if_section>
<txp:section link="1" title="1" />
<txp:if_section name='<txp:section />'>
<txp:article_custom section='<txp:section />' wraptag="ul" break="li">
<txp:if_article_id>›</txp:if_article_id>
<txp:permlink><txp:title /></txp:permlink>
</txp:article_custom>
</txp:if_section>
</txp:section_list>
<txp:search_input wraptag="p" />
<p><txp:feed_link label="RSS" /> / <txp:feed_link flavor="atom" label="Atom" /></p>
</div>
<!-- right -->
<div id="sidebar-2">
<txp:linklist wraptag="p" />
<p><a href="http://textpattern.com/"><txp:image id="2" /></a></p>
</div>
<!-- center -->
<div id="content">
<txp:if_article_list><h1><txp:section title="1" /></h1></txp:if_article_list>
<div class="hfeed">
<txp:article listform="article_listing" limit="5" />
</div>
<txp:if_individual_article>
<div class="divider"><txp:image id="1" /></div>
<p><txp:link_to_prev>« <txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /> »</txp:link_to_next></p>
<txp:else />
<p><txp:older>« <txp:text item="older" /></txp:older>
<txp:newer><txp:text item="newer" /> »</txp:newer></p>
</txp:if_individual_article>
</div>
<!-- footer -->
<div id="foot"> </div>
</div>
</body>
</html>
Last edited by jstubbs (2012-10-11 09:37:00)
Offline
Re: Complete newbie - can't get page to show in navigation
Try to set Uses page: default for camera-cabtastic
section, your new page template looks more like article form for me.
Offline
#5 2012-10-11 09:10:50
- cherbert
- New Member
- Registered: 2012-10-11
- Posts: 7
Re: Complete newbie - can't get page to show in navigation
Tried that, but no change,
All the other pages use exactly the same set up. I just copied one of the existing ones that is showing up, but can’t understand why the new section is not being picked up by the navigation code.
Offline
#6 2012-10-11 09:31:43
- cherbert
- New Member
- Registered: 2012-10-11
- Posts: 7
Re: Complete newbie - can't get page to show in navigation
I’m obviously missing something.
I downloaded all the files from the server and have checked all the places in textpattern, but I cannot find the phrase ‘About Us’ as shown in the left navigation links.
It does not say this anywhere on the actual article, or the section or the page template.
Any idea where I would find the navigation code?
Offline
Re: Complete newbie - can't get page to show in navigation
This template should output search box and rss link, but it does not. Are they using some other page templates?
Offline
#8 2012-10-11 09:39:41
- cherbert
- New Member
- Registered: 2012-10-11
- Posts: 7
Re: Complete newbie - can't get page to show in navigation
Not that I can see – have been through the whole system.
I’m going to see if I can get into the database and just amend at the source. But would still like to know why this doesn’t work!
Offline
Re: Complete newbie - can't get page to show in navigation
The template you posted above is not being used on the page you described above – camera-cabtastic
. If you could post the contents of the camera-cabtastic
page template along with any relevant forms included in the template, we’ll be able to help.
Offline
Re: Complete newbie - can't get page to show in navigation
jstubbs wrote:
The template you posted above is not being used on the page you described above –
camera-cabtastic
.
Neither on other pages, I’d say from checking their source.
Offline
#11 2012-10-11 09:53:22
- cherbert
- New Member
- Registered: 2012-10-11
- Posts: 7
Re: Complete newbie - can't get page to show in navigation
Found it! Under forms. What a pain in the ass!
Thanks for trying to help though.
Offline
Re: Complete newbie - can't get page to show in navigation
Glad you got it working!
Offline