Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By scain on
Hello,
I would like to have two front pages: the one that people come to when they initially go to the site, and then one that they go to when they are already at the site and click home. The difference between the two is minimal: the 'clean' home pages only has a few sticky nodes on it, whereas the 'working' home page has all of the recent posts on it. Is this something I should do with the Front Page module, or is their another way. Just from reading the Front Page module documentation, it looks like it may take some work to do this.
Thanks,
Scott
Comments
updated..
Hi Scott..
I updated the front_page.module recently to allow you to override the default HOME link on your site to point to a different page. This includes breadcrumb links. So, let's say you have a nicely designed splash page for visitors to your site...offsite clicks will point to that, while clicks from within the site (i.e. the person is already on your site) are redirected away from the splash page to a page you specify.
It's very simple to implement..just type in the new "home" or "working" front page link..click a check box and save your settings.
Hope that helps..
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
It seems simple enough
But I feel like I am just missing something: the 'working' home page is equivelent to what is the default homepage. How do I write a link to that?
Question refrased
I thought of another way to ask the question: I want the front page to be just the sticky nodes from the regular home page. How can I write php to put just the sticky nodes there?
Thanks,
Scott
What I did...
I created a node that has just sticky nodes in it and had the front_page module redirect to it (this is the 'clean' homepage). I left the 'bread crumb' links in place so that it would link to the 'working' home page (the default). To get just sticky nodes, I used this php:
Are both the 'clean home
Are both the 'clean home page' and 'working home page' at www.domain.com?
Darn it--that didn't work.
I really thought it did. But now, even though I have "Redirect your site HOME links" unchecked, clicks on links to the default homepage get rediected to the node I described above. What can I do to fix this?
Thanks,
Scott
Now it works
Not that anybody else is following this conversation with myself, but I think I got it to work this way: I added the code below to the front_page config: