Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-02-06 00:28:01
- mbantjes
- New Member
- Registered: 2006-02-03
- Posts: 9
Link an image to a section? (simple navigation)
This has got to be dead simple, but I can’t figure it out.
I have a navigation bar, made of images meant to link to each section (providing a list of excerpts from that section)
Following the information here (http://textpattern.com/faq/116/how-do-i-change-the-appearance-of) I thought it would be simply
<a href=”/section1/”>section1</a>
But that gives me a “page not found” error.
???
Offline
Re: Link an image to a section? (simple navigation)
I don’t understand your problem. WHat’s your code?
Offline
#3 2006-02-06 01:04:52
- mbantjes
- New Member
- Registered: 2006-02-03
- Posts: 9
Re: Link an image to a section? (simple navigation)
Whoops, the code turned into code
It would basically be …
[a href=”/section1/”] [img src=“images/section1.gif” /] [/a]
???
What I’m asking is what is the code to link an image (or text, for that matter) to a section list?
Offline
#4 2006-02-06 01:17:49
- mbantjes
- New Member
- Registered: 2006-02-03
- Posts: 9
Re: Link an image to a section? (simple navigation)
I figured this out by generating an automatic list of section links with:
txp:section_list wraptag=“ul” break=“li” /
then viewing my home page, reading the source code, and stealing what it generated for those links to use for my image links.
It is:
[a href=“http://wwww.site-name.com/index.php?s=section1”] [img src=“images/section1.jpg” /] [/a]
Offline
Re: Link an image to a section? (simple navigation)
Ok, the URL varies with the URL scheme in the admin/prefs tabs. If you have a decent hosting, you could use /section/article
as URL for example.
Offline
#6 2006-02-06 04:15:19
- mbantjes
- New Member
- Registered: 2006-02-03
- Posts: 9
Re: Link an image to a section? (simple navigation)
Umm … I don’t see a URL Scheme in the Admin Prefs (or advanced Prefs) … but it’s allright. My solution may not be elegant, but it works.
Offline
Re: Link an image to a section? (simple navigation)
Yep, it’s called “permalink mode” in english. Just before logging options.
Offline