Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-02-12 13:29:12
- Charlie Chalk
- Member
- Registered: 2005-09-06
- Posts: 51
Link from home page to each article on different page (brochure site)
Hi
Not sure how to describe what I want to do, but I’ll give it a try:
I am building a brochure site, it has four pages. The two that I’m having trouble with are ‘Home’ and ‘Services’.
Home has a single article on it (done that bit) and uses ‘default’ page template.
Services has many articles on it (each describing a service) and uses ‘services’ page template.
Both pages are essentially the same layout, but I’ve used two templates as it seemed easier? (that’s not the problem I’m having but if there is a better/easier way please feel free to tell me/point me in the right direction).
The problem is, I’d like to have a list (unordered list) on the home page using the service article titles, and each title linking to the relevant bit of text on the services page (like a normal anchor link). So, if the ‘We paint your widgets’ paragraph is half way down the services page, when someone clicks the ‘We paint your widgets’ link on the home page they are taken to half way down the ‘Services’ page.
Can this be done? I realise this is something that doesn’t really need Textpattern, but I’m using this as a learning experience so I can get my head round it for bigger projects.
Any help much appreciated
CC
Offline
Re: Link from home page to each article on different page (brochure site)
I’m not entirely sure I’m clear on what you want to do, but if what you want is a link that leads to an anchor on another page, that’s no problem. Just put the anchor in the appropriate place in the article you’re linking to, and then make the list markup reflect that. Textpattern doesn’t have any problem with anchors.
Offline
#3 2006-02-12 16:22:00
- Charlie Chalk
- Member
- Registered: 2005-09-06
- Posts: 51
Re: Link from home page to each article on different page (brochure site)
ok, so how do I make an anchor relative to each article? My articles currently consist of just an article title and article body. So what extra tag would I need to add? Also, which list do I use for the links, I’ve seen catagory links but nothing to list links to individual articles.
Sorry for the rather basic questions, but I’m a rather basic guy!
Offline