zzelinski | Shared With: Everyone - Jun 07 2008 | drupal, profiles, startpad
Let me translate the following page: Node Profile allows you to designate one or more content types as "Node Profiles", which enables the fields to be displayed as editable DURING REGISTRATION. The jury's still out on whether or not it can display the info in your user profile after the fact (though I believe it can).
What this means for StartPad -- Right now a new users signs up but only edits some special "profile" fields which cannot be accessed by the rest of the site (and so cannot be integrated into special views, etc.). We also have a content type (Member directory) which we want members to fill out, but since it is a regular content type it can make use of taxonomy terms, it is accessible by Views, etc. There is a disconnect between filling out the initial registration form and then filling out a member directory entry, making it that much harder to get people to sign up.
--NOW, I can just set that content type as the "Node Profile" and the fields become part of the registration process! Skip the disconnect, retain all of the usefulness of using a regular content type as a member profile. (The only way it would be better is if I could just REPLACE the built-in profile with a content type of my choice.)
zzelinski | Shared With: Everyone - Aug 05 2008 | drupal
I think I faved this already...but here's the code snippet that will give you the title of the page you're on in drupal breadcrumbs when pasted into template.php in theme.
Quoted: <?php
/*
phptemplate_breadcrumb($breadcrumb) modification
File: template.php
Use: Hide breadcrumb trails with only 1 crumb, regardless of crumb name ("home" is)
a popular single-crumb that people like to have removed in some templates.
Through: PHPTemplate function override
Benefits: Does not involve extra code in separate view.
*/
function phptemplate_breadcrumb($breadcrumb) {
$home = variable_get('site_name', 'drupal');
$sep = ' » ';
// Check if breadcrumb has more than 1 element.
// Options: Change to the number of elements/crumbs a breadcrumb needs to be visible.
if (count($breadcrumb) > 1) {
$breadcrumb[0] = l(t($home), '');
/*
Optional: Include page title in breadcrumb.drupal_get_title() !== ''
Check if title blank, if that is the case, we cannot include trailing page name.
strstr(end($breadcrumb),drupal_get_title()) == FALSE
Some modules will make it so path or breadcrumb will involve duplication of
title and node name (such as in the Events module) to remove this, simply
take out && strstr(end($breadcrumb),drupal_get_title()) == FALSEUse: Simply uncomment the if structure below (3 lines).
Special Use: If you wish to use this regardless of elements/crumbs in a breadcrumb
simply cut/paste the statements inside the "if (count($breadcrumb) > 1)" outside
of the structure, and delete the extranneous structure.
*/
if ( (drupal_get_title() !== '') && (strstr(end($breadcrumb),drupal_get_title()) ) == FALSE) {
$breadcrumb[] = t(drupal_get_title(), '');
}return implode($sep, $breadcrumb);
} else {
// Would only show a single element/crumb (or none), so return nothing.
// You can remove this statement.
}
}
?>ShareViewed: 3 Times
zzelinski | Shared With: Everyone - Aug 04 2008 | drupal
This is another discussion of how to input some php to get the breadcrumb to display the current page.
ShareViewed: 3 Times
zzelinski | Shared With: Everyone - Jul 29 2008 | go, drupal
StartPad site breadcrumbs don't show the current page as of now. This might fix it, if I can figure out what it all means...
ShareViewed: 50 Times
zzelinski | Shared With: Everyone - Jul 09 2008 | drupal
zzelinski | Shared With: Everyone - Jul 03 2008 | drupal, upgradeShareViewed: 2 Times
zzelinski | Shared With: Everyone - Jun 30 2008 | drupal, video
zzelinski | Shared With: Everyone - Jun 27 2008 | drupal, mediaShareViewed: 1 Time
zzelinski | Shared With: Everyone - Jun 27 2008 | video, drupal
zzelinski | Shared With: Everyone - Jun 27 2008 | drupalShareViewed: 5 Times
zzelinski | Shared With: Everyone - Jun 25 2008 | drupal, monitor, modules
Built into 6.x core, this is useful for 5.x -- though we run an older version of drupal (5.3 instead of 5.7) so this would just be an annoying red message all the time.
ShareViewed: 1 Time

Send Zachary a friend request or a personal message instead.