Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2011-01-26 20:38:06

n2
Member
Registered: 2011-01-25
Posts: 56

Re: HELP! Side-bar disappeared

Ah, ok…

I haven’t fix the errors (i didn’t know how), but i did go ahead and switch to Debugging so you can get in now.

I did try changing the Forms > branding code and removed the “s”, but it caused a link to pop up the middle of the image banner, so i went back and added the s back in for now…

- Natalie

jsoo wrote:

If you’ve fixed the errors, debugging mode won’t affect visitors.

Last edited by n2 (2011-01-26 20:42:52)


If code is poetry, I’m a lousy poet.

Offline

#62 2011-01-26 20:42:46

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: HELP! Side-bar disappeared

Then just remove the tag entirely, or leave in the correct version but put HTML comment delimiters around it. I’ll check over the site now.


Code is topiary

Offline

#63 2011-01-26 20:52:40

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: HELP! Side-bar disappeared

In the default page template, there is an if_section block somewhere toward the bottom of the template. It looks something like this:

<txp:if_section name=" ,default">
<txp:else />
	<txp:output_form name="nav_sub" />
</txp:if_section>

There might be more to it than that, but that’s all I can see in the trace. This is what puts the sidebar on every page other than the home page.

I am not sure that nav_sub would output anything on the home page even if you removed the if_section test. If you like, post the form code here (I assume it’s not particularly long :)

Or you can just try removing the conditional check, and replacing the above with

<txp:output_form name="nav_sub" />

But at this point I don’t know what will show up on the home page if you do that.


Code is topiary

Offline

#64 2011-01-26 21:01:12

n2
Member
Registered: 2011-01-25
Posts: 56

Re: HELP! Side-bar disappeared

Here’s the form code;

<p id="api_slideshow"><a href="http://www.macromedia.com/go/getflashplayer"></a></p>
<script type="text/javascript" src="http://kadampa.org/embed/swfobject.js"></script>

<script type="text/javascript">
var s1 = new SWFObject("http://www.meditationinmass.org/smc-events.swf","rotator","475","186","7");
s1.addParam("allowfullscreen","true");
s1.addParam('allowscriptaccess','always');
s1.addParam("wmode","opaque");
s1.addParam('flashvars','&file=http://kadampa.org/api/slideshow/<txp:custom_field name="slideshow" />/&config=http://kadampa.org/embed/rotatorconfig.xml');
s1.write("api_slideshow");
</script>

<txp:if_custom_field name="alternative_page_title"> 
  <h1><txp:custom_field name="alternative_page_title" /></h1>
  <txp:else />
  <h1><txp:title /></h1>
</txp:if_custom_field>

<txp:article_image class="left" />

<txp:body />

<txp:excerpt />

<txp:rvm_if_privileged>
<p><a target="_blank" id="admin_link" href="/textpattern/index.php?event=article&step=edit&ID=<txp:article_id />">Edit this article</a></p>
</txp:rvm_if_privileged>

jsoo wrote:

If you like, post the form code here (I assume it’s not particularly long :)

Last edited by jsoo (2011-01-26 21:03:23)


If code is poetry, I’m a lousy poet.

Offline

#65 2011-01-26 21:02:50

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: HELP! Side-bar disappeared

Put the site in “live” mode; currently it’s in “testing” mode, so the error message is still there.

Edit: That’s not the form we want. That looks like the “default” form. We need nav_sub.

Last edited by jsoo (2011-01-26 21:04:58)


Code is topiary

Offline

#66 2011-01-26 21:09:59

n2
Member
Registered: 2011-01-25
Posts: 56

Re: HELP! Side-bar disappeared

I tried both replacing it & removing it and still no go.

Removing made sidebars disappear from other pages too, but did not add it to the homepage…

jsoo wrote:

In the default page template, there is an if_section block somewhere toward the bottom of the template. It looks something like this:

<txp:if_section name=" ,default">
<txp:else />
	<txp:output_form name="nav_sub" />
</txp:if_section>

There might be more to it than that, but that’s all I can see in the trace. This is what puts the sidebar on every page other than the home page.

I am not sure that nav_sub would output anything on the home page even if you removed the if_section test. If you like, post the form code here (I assume it’s not particularly long :)

Or you can just try removing the conditional check, and replacing the above with

<txp:output_form name="nav_sub" />

But at this point I don’t know what will show up on the home page if you do that.


If code is poetry, I’m a lousy poet.

Offline

#67 2011-01-26 21:14:27

n2
Member
Registered: 2011-01-25
Posts: 56

Re: HELP! Side-bar disappeared

Here’s the nav_sub code:

<!— nav sub —>
<div id=“nav_sub”>
<h3><txp:section title=“1” link=“1” /></h3>
<txp:asy_wondertag><txp:article_custom limit=“999” form=“nav_listing” section=”<txp:section/>” sort=“position asc” /></txp:asy_wondertag>
</div>

jsoo wrote:

Edit: That’s not the form we want. That looks like the “default” form. We need nav_sub.


If code is poetry, I’m a lousy poet.

Offline

#68 2011-01-26 21:19:30

n2
Member
Registered: 2011-01-25
Posts: 56

Re: HELP! Side-bar disappeared

There are 3 other “nav” forms:

nav_listing, nav_promote, and nav_main.

The latter 2 are “misc” forms and have special events in the code, so i wonder it they have something to do with the homepage sidebar which promotes upcoming events…?

The “previews” don’t look anything like the home sidebar though…

jsoo wrote:

That’s not the form we want. That looks like the “default” form. We need nav_sub.

Last edited by n2 (2011-01-26 21:21:41)


If code is poetry, I’m a lousy poet.

Offline

#69 2011-01-26 21:25:26

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: HELP! Side-bar disappeared

You could use nav_sub on the home page by modifying it, but obviously that isn’t what was there before. It depends on what items are supposed to appear in the sidebar on the home page.

Go ahead and show the other nav_ forms, then, and we’ll see if we can figure out if one of those is what you had before.

The other possibility is that the article containing the homepage content has the homepage sidebar built in.


Code is topiary

Offline

#70 2011-01-26 21:33:57

n2
Member
Registered: 2011-01-25
Posts: 56

Re: HELP! Side-bar disappeared

Did I send you the code for home_sidebar?

And here are the other two forms (“nav_main” is just another version of the blue navigation bar along the top, so that’s not it…)

nav_listing:
————————-

<txp:if_first_article>
<ul class=“nav_items”>
</txp:if_first_article>

<li<txp:glx_hl_current_article />><a href=”<txp:permlink />”><txp:if_custom_field name=“alternative_page_title”><txp:custom_field name=“alternative_page_title” /><txp:else /><txp:title /></txp:if_custom_field></a></li>

<txp:if_last_article>
</ul>
</txp:if_last_article>

nav_promote:
————————-

<txp:chh_if_data>
<div id=“nav_promote”>
<ul class=“tabs”>
<txp:linklist category=“Promoted-Pages” sort=“linksort asc” />
</ul>
</div>
</txp:chh_if_data>

jsoo wrote:

Go ahead and show the other nav_ forms, then, and we’ll see if we can figure out if one of those is what you had before.

The other possibility is that the article containing the homepage content has the homepage sidebar built in.


If code is poetry, I’m a lousy poet.

Offline

#71 2011-01-26 21:36:11

n2
Member
Registered: 2011-01-25
Posts: 56

Re: HELP! Side-bar disappeared

I did a find” in the article containing the homepage for the following words: “sidebar” & “home” and nothing came up…

jsoo wrote:

The other possibility is that the article containing the homepage content has the homepage sidebar built in.


If code is poetry, I’m a lousy poet.

Offline

#72 2011-01-26 21:40:32

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: HELP! Side-bar disappeared

n2 wrote:

Did I send you the code for home_sidebar?

If you did, I don’t think you labelled it as such.

home_sidebar is a pretty strong hint that that’s the one we want. What’s in it?


Code is topiary

Offline

Board footer

Powered by FluxBB