Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-01-20 11:48:41
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
different menu
Is it possible in TXP to do menu like here . so if I click on menu item, it jumps to right place on a page, not opens a new page.
Offline
#2 2007-01-20 12:26:26
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: different menu
Well, yes, you can do anything you want in your template. If you view the page’s source, you can see how he did it.
If you need more specific help than that, please give more info on what you want to achieve. :)
Edit: this may contain some of what you’re looking for.
Last edited by Mary (2007-01-20 12:27:30)
Offline
#3 2007-01-20 14:06:52
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
Re: different menu
Well, yes, you can do anything you want in your template. If you view the page’s source, you can see how he did it. If you need more specific help than that, please give more info on what you want to achieve. :)
I want to create section list, 3-4 list items on it. and I want to display all those sections only on frontpage and if I click on section (menu) link, it jumps to the place where this section is located on a page . how to achieve this? do I need to use if_section, how?
Last edited by Gallex (2007-01-20 14:15:41)
Offline
#4 2007-01-20 15:54:46
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: different menu
no … you use anchors. at the points on the page where you want the links to point you place a normal a-tag, but with name attribute. for ex: a name=“web”. no a href. then your link should point to a href=”#web”
I need someone to protect me from all the measures they take in order to protect me
Offline
#5 2007-01-21 11:08:01
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
Re: different menu
stef25 wrote:
no … you use anchors. at the points on the page where you want the links to point you place a normal a-tag, but with name attribute. for ex: a name=“web”. no a href.
yes, but how exactly I could do this, I can’t edit article source, can I?
then your link should point to a href=”#web”
and how I could point my link to a href=”#web”?
my section list form looks like this right now:
<txp:section_list break="li" default_title="home" include_default="1" sections="work,about" wraptag="ul" />
I want to point links “work” and “about” to articles “work” and “about” location in a page, how? this is a hard part to me ;)
Offline
Re: different menu
If you are linking to a section, then you can’t use anchors in the same page. What you need to do is hand code the links, like this:
<ul>
<li><a href=”#web”>Web stuff</a></li>
</ul>
And in your page template:
<h3 id=“web”>Web stuff</h3>
That’s just an easy example. You could change it to suit your own page.
Offline
#7 2007-01-21 12:47:11
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
Re: different menu
jstubbs wrote:
If you are linking to a section, then you can’t use anchors in the same page. What you need to do is hand code the links, like this:
<ul>
<li><a href=”#web”>Web stuff</a></li>
</ul>
And in your page template:
<h3 id=“web”>Web stuff</h3>
thank’s jstubbs, something like this (handcoding) I thought too…ok, this subject closed.
but I have one more question, quite similar to previous one :
I would like to replace section list link’s text with background images, like here for example. do I need to handcode the list similarly? like that:
<ul>
<li id=“home”><a href=“http://www.kuupdisain.ee/”>home</a></li>
<li id=“work”><a href=“http://www.kuupdisain.ee/work/”>work</a></li>
<li id=“about”><a href=“http://www.kuupdisain.ee/about/”>about</a></li>
</ul>
…and then this css stuff ;)
or there is another way (easier) to do this as well?
Last edited by Gallex (2007-01-21 13:47:40)
Offline
Re: different menu
The page you mention shows you how to replace a link with an image, if you look at the page source. If you are asking how to do this automatically with a section list, I don’t know about this as I have not done it.
You could look at the section_list entry in the Wiki, or search for an image replacer plugin here in the forums or on Textpattern.org, I think there are a few plugins for image replacing with categories. Sorry, have used them so can’t help with that…
Offline
Pages: 1