By poo master on
I set up a view called daily thoughts linked it to daily thoughts
http://pooplatter.com/daily_thoughts
In the live preview all the test posts are there but when I view the page after saving it only one test post is there.
I have searched everywhere for an answer and can not find anything
I have been working on this for hours and am ready to jump off a bridge
Any help would be great
Thanks in advance
Comments
...
Can you 'export' your view and paste it here? (or at pastebin.com)
Daily thoughts
$view = new view;
$view->name = 'daily_thoughts';
$view->description = 'daily thoughts';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'title' => array(
'label' => '',
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'created' => array(
'label' => 'Post date',
'date_format' => 'custom',
'custom_date_format' => 'F j, Y, g:i a',
'exclude' => 0,
'id' => 'created',
'table' => 'node',
'field' => 'created',
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'created' => array(
'order' => 'DESC',
'granularity' => 'second',
'id' => 'created',
'table' => 'node',
'field' => 'created',
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'daily_thoughts' => 'daily_thoughts',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'status' => array(
'operator' => '=',
'value' => 1,
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('items_per_page', 20);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'list');
$handler->override_option('style_options', array(
'grouping' => '',
'type' => 'ul',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'daily_thoughts');
$handler->override_option('menu', array(
'type' => 'normal',
'title' => 'daily thoughts',
'weight' => '0',
'name' => 'primary-links',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));
...
There are two things that make me suspect that what we see on your site isn't the view at all. First, views are wrapped in a
<div class="view ...tag. Second, the title of the node ("This") isn't linking to the node.Give your view some other URL, e.g. "blahblah", and test this "blahblah" URL instead.
changing the url
It worked everything is listed
The problem was that the node had the same url thanks because without your suggestion I never would have found it.
The only thing now is the way they are posted is not following the theme
The css is completely different from the home page to daily thoughts
I do not see how to edit it in views
...
I don't know what you mean. This 'daily_thoughts' list looks, to me, the same as in the front page. (The bullets are because you asked a 'list' style. You should pick 'unformatted' instead.)
I changed the row style
Changed it to node instead of fields for row view before you read my last post that is why you did not see it
The only thing is I wanted to get rid of the body and only have the title and comments and I can not seem to do it.
I can not edit the body field in content type and when I turn node style on for rows it eliminates the option for managing the fields.
The only thing I can think of is if you can hide it with editing the css ?
Thanks again
...
You set it at
?q=admin/content/node-type/story(e.g., for 'story'). Note that, under "Submission form settings", it says "To omit the body field for this content type, remove any text and leave [the 'Body field label'] blank." It talks here about the *editing* form (that is, it doesn't talk here about *viewing* the node; if the body of some node was already typed into, you will see it nevertheless in listings).(Whatever, this question is unrelated to Views. It's best to open new discussions for different issues.)
But there are different ways to interpret your question. Perhaps you meant "How can I hide the body in the listing, but yet enable users to type into it?"
Thanks for your help
I found the row style and that fixed it
Thanks again
...
You're welcome.
(I wrote my previous reply before I saw your new one.)
daily pics
This is another issue I am having, This view is creating a list of the pics.
I wanted it to just post the actual picture and captions as in order
$view = new view;
$view->name = 'daily_pics';
$view->description = 'daily pics';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'type' => array(
'label' => '',
'link_to_node' => 1,
'exclude' => 0,
'id' => 'type',
'table' => 'node',
'field' => 'type',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'created' => array(
'order' => 'DESC',
'granularity' => 'second',
'id' => 'created',
'table' => 'node',
'field' => 'created',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'status' => array(
'operator' => '=',
'value' => 1,
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'type' => array(
'operator' => 'in',
'value' => array(
'daily_pics' => 'daily_pics',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'list');
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'daily_pics');
$handler->override_option('menu', array(
'type' => 'normal',
'title' => 'daily pics',
'weight' => '0',
'name' => 'primary-links',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));
I forgot the body field this one was simple
The only thing is I wanted it to display like the front page but can not figure out how as far as daily thoughts
I am still clueless
Is it the theme?