Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-15 18:39:53

francis_dean_10
New Member
Registered: 2006-09-15
Posts: 9

2 questions. Need Help. CSS, Navigation, Permalinks.

question #1

So my site is pretty much done, my navigation being links that go to sections. Right now I am trying to figure out a way to have the css hold the mouse over color of a section so you know where you are.

I was wondering if there is anyway to maybe have a plugin have an id added to the links that css can say.. ok if this is section is WORK, then make the color:#00000; etc…

I have been looking through all the plugins for links, but can’t seem to find anything.

question #2

My website will have sections that are blogs and sections that aren’t. The sections that aren’t I totally stripped down the article styles, so their is no comment stuff of permalinks, but the problem is that I can’t figure out the logic of the sections. To find them manually. What is the logic? Its usually something like section/33/article-name.

Where does that number come from? How can I find the sections?

Ok, I really like textpattern, I am switching from Wordpress. Textpattern is so clean, I love it… I am having a lot of fun.

Thanks everyone in this forum for being so responsive to newbies..

Offline

#2 2006-09-15 21:22:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: 2 questions. Need Help. CSS, Navigation, Permalinks.

For question #2: it depends upon the permlink mode (admin prefs) you are using. For the one that you appear to be using:

  • Sections: http://yourdomain.com/section-name
  • Categories: http://yourdomain.com/category/category-name
  • Articles: http://yourdomain.com/article’s-section-name/article’s-id-number/article’s-title

Offline

#3 2006-09-15 21:45:13

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: 2 questions. Need Help. CSS, Navigation, Permalinks.

For #1, you can use the active property to style an active link.

If you wanted to highlight a div or a span based on section you could do something like:

<code>
<txp:if_section name=“work”>
<style type=“text/css”>#workitem {color:#00000; background-color: #FFFFFF;}</style>
</txp:if_section>
.
.
.
<div id=“menu”>
<span id=“homeitem”>home</span>
<span id=“workitem”>work</span>
.
.
.
</div>
</code>

Last edited by NyteOwl (2006-09-15 21:46:15)


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#4 2006-09-16 00:14:08

francis_dean_10
New Member
Registered: 2006-09-15
Posts: 9

Re: 2 questions. Need Help. CSS, Navigation, Permalinks.

OK, thanks so much. One more thing, how to you set id’s to links that are made via the content section of Textpattern, since I don’t have the ability to create the id’s myself.

-J

Offline

#5 2006-09-16 20:48:07

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: 2 questions. Need Help. CSS, Navigation, Permalinks.

links that are made via the content section of Textpattern

Not sure I understand this, can you elaborate?


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#6 2006-09-17 01:48:30

francis_dean_10
New Member
Registered: 2006-09-15
Posts: 9

Re: 2 questions. Need Help. CSS, Navigation, Permalinks.

The way I am doing my navigation is by having links in a certain category. So my Page is.

“txp:linklist category=“homepage” /”
This doesn’t give me the ability to set individual ID’s.

on this post replace “ with < and the other “ with > I can’t seem to post txp: snipits in the posts.. I tried the “notextile” tag and it didn’t work.

Last edited by francis_dean_10 (2006-09-17 02:01:10)

Offline

#7 2006-09-17 09:56:37

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

Re: 2 questions. Need Help. CSS, Navigation, Permalinks.

How do I post tags and code on the forum?

If you want individual id’s for the links in your navigation, you’ll have to handcode them. Like this:
<code>
<a id=“id-1” href=”<txp:site_url /><txp:section name=“section-1” />/”><txp:section name=“section-1” title=“1” /></a>
</code>

Last edited by els (2006-09-17 10:04:03)

Offline

Board footer

Powered by FluxBB