[drupal-devel] promote to frontpage: confusing.

Andre Molnar mcsparkerton at yahoo.co.uk
Wed Mar 9 17:58:51 UTC 2005


Gabor Hojtsy wrote:

> Problem is that the one who sets up the page is not the same who uses. 
> The majority of Drupal users are not those who had set it up themselfs, 
> as far as I guess... If I deploy a Drupal installation to some client, 
> he will not know that he is not seeing the default homepage...

Point taken!

>> The real solution is to test what the default front page is (perhaps 
>> even create and store a new flag) and change the wording of the option 
>> box based on that.
>>
>> Pseudo code:
>>
>> If($default_front_page) {
>>     form_checkboxes(t('Promote to front page') /*MORE CODE*/);
>> }
>> else {
>>     form_checkboxes(t('Is Headline') /*MORE CODE*/);
>> }
>>
>> Long story short - The cons of the proposed change AS IS outweigh the 
>> pros.
> 
> 
> This might work indeed.

- This might work indeed :-)
+ Indeed *guaranteed* to work.

As would

Pseudo code:

If($default_front_page) {
      form_checkboxes(t('Promote to front page') /*MORE CODE*/);
   }
  else {
      /*DO NOTHING - PROBLEM SOLVED - NO SEMANTIC TRAPS - LETS STOP THIS 
ENTIRE THREAD*/
  }

andre



More information about the drupal-devel mailing list