A very helpful feature would be to include another option i the list of "themed", "full", and "redirect", which would result in the rendering of a specified node as the front page.

Rationale: With a site outfitted with WYSIWYG editors easily leveraging graphic elements and such, a front page with introductory text, links, cck fields perhaps, and all that might be desired for one role, and a different one for a second role, and I may want to create those pages as nodes to leverage the ease of the tools, as opposed to code them in front_page. Plus, I may want Drupal to do all the other things it does in rendering nodes (links, etc.) for it to appear as my front page. Yes, I can redirect now to those nodes, but then they no longer are the front page (drupal_is_front returns FALSE in this case), and so when web-crawlers come along looking for the nice meta tags that nodewords puts in for us to validate (the google, bing, and yahoo bits), they're of course not there, because nodewords quite reasonably uses drupal_is_front to determine whether or not it's the front page that's being rendered, which on a redirect, it isn't, and so nodewords doesn't inject the front-page tags.

I kind of faked it myself, using (see http://drupal.org/node/624620#comment-2964756 for an explanation of the code)

  $node = node_load( 1 );
  drupal_set_title( $node->title );
  $node->title = '';
  $output = node_view( $node, FALSE, TRUE );
  $output = str_replace( $GLOBALS['base_url'] . '/' . $node->path, $GLOBALS['base_url'], $output  );
  print $output;

It would be nice if this could just be an option, and then pick your node from a list.

CommentFileSizeAuthor
#4 6.x-1.2 with 'embed' option.patch7.51 KBsdsheridan

Comments

dublin drupaller’s picture

Assigned: Unassigned » dublin drupaller

i agree. in many respects I think the "redirect" option might be replaced with an "embed node" option which does what you say. I'll leave in both, with the next version, but, even though this has been discussed before, thanks for posting and giving so much detail. much appreciated.

dub

sdsheridan’s picture

Ah, sorry for not picking up the past discussion. I did a search, but clearly not a thorough-enough one. :-) No problem re. the detail. Happy to help.

shawn

dublin drupaller’s picture

no need to apologise. it's an old issue discussion...like an ideas thread. Not easy to find. Anyway, thanks for the feedback and suggestion.

sdsheridan’s picture

Title: Add another option - "Use node as" » Add another option - "Embed"
StatusFileSize
new7.51 KB

Just worked out the following patch, which is working nicely for me. It adds the 'embed' option, re-names and reuses the 'redirect to' box to 'redirect to / embed', and then does the actual rendering.

shawn

dublin drupaller’s picture

thanks for submitting that sdsheridan. will take a look. I mentioned it before as a possible feature update in the next version so I appreciate you taking the time to submit a patch.

dub

timhilliard’s picture

Status: Active » Needs work

Hi sdsheridan, I have added this feature to the 7.x-2.x branch and called it alias as it works in much the same way as URL alias does for nodes. I will let you know once I have 6.x-2.x ready for testing.

Cheers,
Tim

timhilliard’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Needs work » Needs review

Hi guys, the 6.x-2.x version is now ready for testing. The embed feature is included, however it is called Alias. Any feedback would be greatly appreciated.

Thanks,
Tim

timhilliard’s picture

Status: Needs review » Closed (fixed)

Closing as I have not received any replies in over 3 months. Please feel free to re-open if needed.

Thanks,
Tim