I would like one contenttype to be post to the social network by default.
I have tried using the Prepopulate module to check the checkbox, but with no success.
A feature like "Post only to social network by default" would be nice.

CommentFileSizeAuthor
screenie.png338.42 KBAnonymous (not verified)

Comments

alex.k’s picture

Assigned: Unassigned » alex.k

I'm using this very same set up with Prepopulate - please try the link /node/add/blog?edit[user_relationship_node_access][view][1]=1

As far as I know prepopulate does not have any configuration, so it should work for you as well.

Anonymous’s picture

Thanks a lot!!!

Works for me!!

alex.k’s picture

Title: Node Access, post to social network by default... » Node Access, post to social network by default using Prepopulate
Category: feature » support
Status: Active » Fixed

Great stuff

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

macs1407’s picture

my question is I have the user midulo relationship and I will create a blog entry and leaves the option that only they can see the content but I want my friends to leave Chequiada by default as I do this with the module prepolute

baff’s picture

But the form element for posting to social network is visible

n00b0101’s picture

I actually set the default within the theme function... Not sure if it'll work for everyone, since I only have one relationship and only allow a user to set ur node access viewing privileges, but I copied the theme_user_relationships_node_access_form function into my template.php file and then changed:


    $row = array($r_name);
    foreach ($all_actions as $key => $value) {
      unset($form[$key][$rtid]['#title']);
      $row[] = drupal_render($form[$key][$rtid]);
    }
    $rows[] = $row;

to

    $row = array($r_name);
    foreach ($all_actions as $key => $value) {
      unset($form[$key][$rtid]['#title']);
     $form[$key][$rtid]['#attributes'] = array('checked' => 'checked'); 
      $row[] = drupal_render($form[$key][$rtid]);
    }
    $rows[] = $row;