ilikephp Posted April 24, 2008 Share Posted April 24, 2008 hello !! In my web, I have many pages; how can I make a link for the previous page automatically, for example: home >> welcome >> ... and it is updated for each page? Thanks in advance... Quote Link to comment https://forums.phpfreaks.com/topic/102663-solved-create-home-welcome/ Share on other sites More sharing options...
ToonMariner Posted April 24, 2008 Share Posted April 24, 2008 it depends on your sites structure. This sounds more like a php question otherwise you would have a static site and just input the html by hand. Can't tell you how to do it with php without knowing how you detect the parent of any given page - but essentially you will create a series of links with a url to each page within the path to the current page... Quote Link to comment https://forums.phpfreaks.com/topic/102663-solved-create-home-welcome/#findComment-525905 Share on other sites More sharing options...
ilikephp Posted April 24, 2008 Author Share Posted April 24, 2008 it is not wrong to put it by hand? one more question pla: in the end, how can I put all the links of my website, I saw it in many websites: in the bottom. Thanks... Quote Link to comment https://forums.phpfreaks.com/topic/102663-solved-create-home-welcome/#findComment-525919 Share on other sites More sharing options...
haku Posted April 24, 2008 Share Posted April 24, 2008 it is not wrong to put it by hand? It may not not potentially be. --------------------------------------------------------------- Most sites do that with a server-side language (php, asp etc), and it is based on their document structure. You can do it by hand if you want. Just make a bunch of links with the relevant text inside. Quote Link to comment https://forums.phpfreaks.com/topic/102663-solved-create-home-welcome/#findComment-526070 Share on other sites More sharing options...
ilikephp Posted April 24, 2008 Author Share Posted April 24, 2008 Thx a lot... Quote Link to comment https://forums.phpfreaks.com/topic/102663-solved-create-home-welcome/#findComment-526180 Share on other sites More sharing options...
ToonMariner Posted April 24, 2008 Share Posted April 24, 2008 @ilikiephp its not wrong to put breadcrumb links in by hand if you have a flat site - thats only way to do it. the 'best' way of course is to generate this automatically using the current url and the sites structure (relationships between pages in the database). Quote Link to comment https://forums.phpfreaks.com/topic/102663-solved-create-home-welcome/#findComment-526618 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.