show content type in any language

I'm creating a multi language site with 3 content types: article, product and gallery image.
The article and product can be translated to different languages, but gallery image not.
So for gallery image i disabled the language selector and it gets stored as the default language (English).

But i would like to display the gallery image independent of the language the user selects. How do i do this?

And when i select language neutral on a node isn't it supposed to be displayed on all the language?

How can I find all Entity Types in a site.

Hi,

Is it possible to find all used Entities (types) in a site?

As far as I know, there is no table with this information.
Entity is an general/abstract concept.
Entities are coded in a module and have there own database table.

When used, they become real content objects.
I would like to have an overview of all entities.
Something like the Entity Index Module, but this is just optional.

Is it possible to have an overview when the Entity Index is not used?

thanks,

Jan

Drupal7 adding custom fields

Hi All,

I have installed Drupal7. I have requirement like, to add some fields for each user. I did this by Configuration->People->Account Settings->Manage Fields.
Now want to show certain fields like employee Id to all the users as non editable but only admin has the edit permission to change it. How to do this?

Drupal Bootstrap sequence - function drupal_bootstrap Why use SWITCH insted of IF statement?

Hello everybody.

I do have a concern about the Bootstrap Function .. after my manager told us some logic about
how the Drupal Bootstrap sequence works..

That lead me to Read all the file /includes/bootstrap.inc file .. "Which is very interesting to read".
But I had a concern about the basic implementation of the Function itself.

function drupal_bootstrap

Why use SWITCH insted of IF statement?

the Function looks like this ..

function drupal_bootstrap($phase = NULL, $new_phase = TRUE) {
// Not drupal_static(), because does not depend on any run-time information.
static $phases = array(
DRUPAL_BOOTSTRAP_CONFIGURATION,
DRUPAL_BOOTSTRAP_PAGE_CACHE,
DRUPAL_BOOTSTRAP_DATABASE,
DRUPAL_BOOTSTRAP_VARIABLES,
DRUPAL_BOOTSTRAP_SESSION,
DRUPAL_BOOTSTRAP_PAGE_HEADER,
DRUPAL_BOOTSTRAP_LANGUAGE,
DRUPAL_BOOTSTRAP_FULL,
);
// Not drupal_static(), because the only legitimate API to control this is to
// call drupal_bootstrap() with a new phase parameter.
static $final_phase;
// Not drupal_static(), because it's impossible to roll back to an earlier
// bootstrap state.
static $stored_phase = -1;

// When not recursing, store the phase name so it's not forgotten while
// recursing.
if ($new_phase) {
$final_phase = $phase;
}
if (isset($phase)) {

Got a major error due to change in host

Hi everyone.

I was having trouble with godaddy so i moved to green geeks. they said they would help me migrate my site but now they won't so i tried to export my database and i'm gettin an error on my domain http://truetobusiness.com. Can somebody have a look at it and let me know if its fixable.

Thanks
Simon

Setting the active menu item to 'Messages' for Privatemsg module

Hi there,

I'm building a user dashboard under My Account that looks like this:

View | Edit | Messages | Etc | Etc

I've installed the Privatemsg module and it automatically adds the Messages menu item for me.
The path for Messages looks like this 'user/1/messages'.

If I click on a single message view, the path changes to something like 'messages/view/1'. Other pages in the module have paths like messages/list, messages/sent, etc.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x