Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
View published sections when links not working?
How can I get to a published section when none of the section navigation is linking properly? Sorry for this very simple question but I could not find an answer.
This is the site I’m having issues with. (http://olgahow.com/bellux/) it’s set to testing and I’m not seeing the issue. I think I’ll try a work-around.
Last edited by olgahow (2008-07-22 17:39:29)
Offline
#2 2008-07-22 19:17:30
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: View published sections when links not working?
Messy links are working. Change permanent link mode to messy in preferences.
Offline
Re: View published sections when links not working?
That’s the weird thing…I have it set for messy but it’s behaving as if I don’t. I’m getting this error and maybe this is the root of the problem.
Tag error: <txp:sitename/> -> Textpattern Notice: tag is deprecated on line 978
I looked up the meaning of depreciated but I’m still unsure how to fix this.
Thanks!!!
Offline
#4 2008-07-23 16:59:51
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: View published sections when links not working?
Try changing it to <txp:site_name />
.
— Steve
Offline
#5 2008-07-23 17:59:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: View published sections when links not working?
olgahow wrote:
That’s the weird thing…I have it set for messy but it’s behaving as if I don’t.
How are your section links (top and bottom of your pages) generated? Hand coded, section_list, other? Are you using a plugin that affects your links (gbp_permanent_links)?
I’m getting this error and maybe this is the root of the problem.
No, it’s not related. The error won’t be displayed when you switch to live mode, I believe you’re in testing mode right now. The tag has been renamed to site_name, but sitename is still working. Like Steve said, it’s best to change it.
Edit: you can also check (or post) the tag trace (described in this FAQ).
Last edited by els (2008-07-23 18:05:30)
Offline
Re: View published sections when links not working?
I’m using plugins (ob1_title, zem_contact_lang, zem_contact_reborn) the header and footer code looks like the following.
<!-- navtop -->
<div class="navcontainer">
<ul>
<li><a href="<txp:link_to_home />" title="Back to main page">Home</a></li>
<li><a href="<txp:link_to_home />about/" title="About Us">About</a></li>
<li><a href="<txp:link_to_home />news/" title="Company News">Company News</a></li>
<li><a href="<txp:link_to_home />contact/" title="Contact Us">Contact</a></li>
</ul>
</div>
<!-- navtop -->
<!-- footer -->
<div id="footer">
<div class="footer-c">
<div class="bt-nav"><a href="<txp:link_to_home />" title="Back to main page">Home</a> | <a href="<txp:link_to_home />about" title="About">About</a> | <a href="<txp:link_to_home />contact" title="Contact">Contact</a></div>
<span class="copyright">© <txp:sitename /> <a
</div>
<!-- footer -->
Thanks!!
Offline
#7 2008-07-23 20:03:20
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: View published sections when links not working?
Ah I see! You’ve created the clean url links yourself :) Better use this:
<txp:section link="1" name="about">About</txp:section>
or this
<txp:section link="1" title="1" name="about" />
This way the links will adapt themselves to whatever permanent link mode you’re using. You won’t be able to have the html ‘title’ attribute though…
Edit: or this
<txp:section_list sections="about,news,contact" include_default="1" default_title="Home" wraptag="ul" break="li" active_class="active" />
Edit again: if you really want the html ‘title’ attribute you can hardcode the links like this
<a href="<txp:link_to_home />index.php?s=news" title="Company news">News</a>
but then you will run into the same problems if you ever switch to clean URLs.
Last edited by els (2008-07-23 20:16:12)
Offline
Re: View published sections when links not working?
Thanks so much!
Offline