Guten Tag Drupal Support,
hi, i want to use views2 frontpage. so i activate it and configure some settings. as arguments i set up "node:type" some filters, some sorts, but when i visit now my frontpage, it shows my "404", so no site would be shown, only an error site. how will be shown my nodetypes (artikels) on frontpage (with some filters and sorts )?
regards sebastian
Is your view working, and pulling the data you want? And does your view have a 'Page' display (and a path)?
Once those answers are 'yes', you can enter the path to your view page in the 'Admin' -> 'Site Information' -> 'Default front page:' field to tell drupal you want to use it for the home page.
HTH, -Benj
2010/4/23 Sebastian Gödecke simpsonetti@googlemail.com
Guten Tag Drupal Support,
hi, i want to use views2 frontpage. so i activate it and configure some settings. as arguments i set up "node:type" some filters, some sorts, but when i visit now my frontpage, it shows my "404", so no site would be shown, only an error site. how will be shown my nodetypes (artikels) on frontpage (with some filters and sorts )?
regards sebastian
-- Mit freundlichen Grüßen Sebastian Gödecke mailto:simpsonetti@googlemail.com
-- [ Drupal support list | http://lists.drupal.org/ ]
Guten Tag Benj Fredrick,
am Freitag, 23. April 2010 um 17:53 schrieben Sie:
Is your view working, and pulling the data you want? And does your view have a 'Page' display (and a path)?
Yes, now it's working. I'm pulling subject and Text at the moment. But the output is not exactly i want: subject should be bold or something like this and a limiter, that you see were the articles end and/or you have the "read more" button.
How do i get the subject bold ? and (maybe) theming the output ? i don't have done anything with theming ....
Once those answers are 'yes', you can enter the path to your view page in the 'Admin' -> 'Site Information' -> 'Default front page:' field to tell drupal you want to use it for the home page.
yes, this is quite working
regards sebastian
HTH, -Benj
2010/4/23 Sebastian Gödecke simpsonetti@googlemail.com Guten Tag Drupal Support,
hi, i want to use views2 frontpage. so i activate it and configure some settings. as arguments i set up "node:type" some filters, some sorts, but when i visit now my frontpage, it shows my "404", so no site would be shown, only an error site. how will be shown my nodetypes (artikels) on frontpage (with some filters and sorts )?
regards sebastian
-- Mit freundlichen Grüßen Sebastian Gödecke mailto:simpsonetti@googlemail.com
-- [ Drupal support list | http://lists.drupal.org/ ]
views theming can be done in three ways.
1.) use an inspector like firefox's firebug to check the css that is generated and edit the css class for that element in to be bold
2.) if you are using display:fields then click on the title, click rewrite output and but <b></b> around the token for the title [most likely <b>[title]</b>
if you are using display:node then you need to find the node.tpl.php for that node type, and change the php to wrap the title in the tags you need [or change the H2 or H3 setting in your CSS to be bold]
3.) finally, you can also theme the views output dramatically further by click on the link "theming information" in your view, identify the field's name, determine what level you want to them at [all titles, or just this theme's title] and then create the php file it tells you to make, paste into that new file the content it shows you as the "base" content, and then open that file from your theme folder [the file you just made]
In that file, you will not see much, just a 'print $output' you can now wrap that output in what ever you want, say between some H tags.
If you need to affect the fields at a higher level, you will need to also [or instead] modify the styl and/or row theme for your view [or group of views]
Also note that if you use a 'tag' for your views, the tag will be a part of the suggest theme, so you can group and style several views based on a tag level.
For most people, doing simple theming, option 1 or 2 will work just fine. Option may not give you the right markup though, as headers really need to be between H tags if you want to make your page properly indexed for search engines.
Sebastian Gödecke wrote:
Guten Tag Benj Fredrick,
am Freitag, 23. April 2010 um 17:53 schrieben Sie:
Is your view working, and pulling the data you want? And does your view have a 'Page' display (and a path)?
Yes, now it's working. I'm pulling subject and Text at the moment. But the output is not exactly i want: subject should be bold or something like this and a limiter, that you see were the articles end and/or you have the "read more" button.
How do i get the subject bold ? and (maybe) theming the output ? i don't have done anything with theming ....
Once those answers are 'yes', you can enter the path to your view page in the 'Admin' -> 'Site Information' -> 'Default front page:' field to tell drupal you want to use it for the home page.
yes, this is quite working
regards sebastian
HTH, -Benj
2010/4/23 Sebastian Gödecke simpsonetti@googlemail.com Guten Tag Drupal Support,
hi, i want to use views2 frontpage. so i activate it and configure some settings. as arguments i set up "node:type" some filters, some sorts, but when i visit now my frontpage, it shows my "404", so no site would be shown, only an error site. how will be shown my nodetypes (artikels) on frontpage (with some filters and sorts )?
regards sebastian
-- Mit freundlichen Grüßen Sebastian Gödecke mailto:simpsonetti@googlemail.com
-- [ Drupal support list | http://lists.drupal.org/ ]
last sentence should say:
Option ONE may not give you the right markup though, as headers really need to be between H tags if you want to make your page properly indexed for search engines.
sebastian wrote:
views theming can be done in three ways.
1.) use an inspector like firefox's firebug to check the css that is generated and edit the css class for that element in to be bold
2.) if you are using display:fields then click on the title, click rewrite output and but <b></b> around the token for the title [most likely <b>[title]</b>
if you are using display:node then you need to find the node.tpl.php for that node type, and change the php to wrap the title in the tags you need [or change the H2 or H3 setting in your CSS to be bold]
3.) finally, you can also theme the views output dramatically further by click on the link "theming information" in your view, identify the field's name, determine what level you want to them at [all titles, or just this theme's title] and then create the php file it tells you to make, paste into that new file the content it shows you as the "base" content, and then open that file from your theme folder [the file you just made]
In that file, you will not see much, just a 'print $output' you can now wrap that output in what ever you want, say between some H tags.
If you need to affect the fields at a higher level, you will need to also [or instead] modify the styl and/or row theme for your view [or group of views]
Also note that if you use a 'tag' for your views, the tag will be a part of the suggest theme, so you can group and style several views based on a tag level.
For most people, doing simple theming, option 1 or 2 will work just fine. Option may not give you the right markup though, as headers really need to be between H tags if you want to make your page properly indexed for search engines.
Sebastian Gödecke wrote:
Guten Tag Benj Fredrick,
am Freitag, 23. April 2010 um 17:53 schrieben Sie:
Is your view working, and pulling the data you want? And does your view have a 'Page' display (and a path)?
Yes, now it's working. I'm pulling subject and Text at the moment. But the output is not exactly i want: subject should be bold or something like this and a limiter, that you see were the articles end and/or you have the "read more" button.
How do i get the subject bold ? and (maybe) theming the output ? i don't have done anything with theming ....
Once those answers are 'yes', you can enter the path to your view page in the 'Admin' -> 'Site Information' -> 'Default front page:' field to tell drupal you want to use it for the home page.
yes, this is quite working
regards sebastian
HTH, -Benj
2010/4/23 Sebastian Gödecke simpsonetti@googlemail.com Guten Tag Drupal Support,
hi, i want to use views2 frontpage. so i activate it and configure some settings. as arguments i set up "node:type" some filters, some sorts, but when i visit now my frontpage, it shows my "404", so no site would be shown, only an error site. how will be shown my nodetypes (artikels) on frontpage (with some filters and sorts )?
regards sebastian
-- Mit freundlichen Grüßen Sebastian Gödecke mailto:simpsonetti@googlemail.com
-- [ Drupal support list | http://lists.drupal.org/ ]
Guten Tag sebastian,
am Samstag, 24. April 2010 um 18:59 schrieben Sie:
views theming can be done in three ways.
1.) use an inspector like firefox's firebug to check the css that is generated and edit the css class for that element in to be bold
2.) if you are using display:fields then click on the title, click rewrite output and but <b></b> around the token for the title [most likely <b>[title]</b>
if you are using display:node then you need to find the node.tpl.php for that node type, and change the php to wrap the title in the tags you need [or change the H2 or H3 setting in your CSS to be bold]
3.) finally, you can also theme the views output dramatically further by click on the link "theming information" in your view, identify the field's name, determine what level you want to them at [all titles, or just this theme's title] and then create the php file it tells you to make, paste into that new file the content it shows you as the "base" content, and then open that file from your theme folder [the file you just made]
In that file, you will not see much, just a 'print $output' you can now wrap that output in what ever you want, say between some H tags.
Okay, i do it now with option 3 and had one file called views-view-field--frontpage.tpl.php and i don't know why, but i always print out the title of my node. well, these here will work (as was the default output): <?php foreach ($fields as $id => $field): ?> <?php if (!empty($field->separator)): ?> <?php print $field->separator; ?> <?php endif; ?>
<<?php print $field->inline_html;?> class="views-field-<?php print $field->class; ?>"> <?php if ($field->label): ?> <label class="views-label-<?php print $field->class; ?>"> <?php print $field->label; ?>: </label> <?php endif; ?> <?php // $field->element_type is either SPAN or DIV depending upon whether or not // the field is a 'block' element type or 'inline' element type. ?>
<<?php print $field->element_type; ?> class="field-content"> <?php print $field->content; ?> </<?php print $field->element_type; ?>> </<?php print $field->inline_html;?>>
<?php endforeach; ?>
But i don't get it to mark only the title in <h2>. Neither the complete node is h2 or nothing and i test the closing </h2> in all ways. So i think the output of the code above will print only the complete node with title and not the parts "title, node" . So then i look around in "theme information" and try complete new code. so now i have only a <?php print $output;?> but i changed some settigns in my view and it mostly work for me. some little changes i have to made.
But i wonder, if there is (maybe i don't find it) a tutorial for views2 that is describing this.
Thanks sebastian. :)
If you need to affect the fields at a higher level, you will need to also [or instead] modify the styl and/or row theme for your view [or group of views]
Also note that if you use a 'tag' for your views, the tag will be a part of the suggest theme, so you can group and style several views based on a tag level.
For most people, doing simple theming, option 1 or 2 will work just fine. Option may not give you the right markup though, as headers really need to be between H tags if you want to make your page properly indexed for search engines.
Sebastian Gödecke wrote:
Guten Tag Benj Fredrick,
am Freitag, 23. April 2010 um 17:53 schrieben Sie:
Is your view working, and pulling the data you want? And does your view have a 'Page' display (and a path)?
Yes, now it's working. I'm pulling subject and Text at the moment. But the output is not exactly i want: subject should be bold or something like this and a limiter, that you see were the articles end and/or you have the "read more" button.
How do i get the subject bold ? and (maybe) theming the output ? i don't have done anything with theming ....
Once those answers are 'yes', you can enter the path to your view page in the 'Admin' -> 'Site Information' -> 'Default front page:' field to tell drupal you want to use it for the home page.
yes, this is quite working
regards sebastian
HTH, -Benj
2010/4/23 Sebastian Gödecke simpsonetti@googlemail.com Guten Tag Drupal Support,
hi, i want to use views2 frontpage. so i activate it and configure some settings. as arguments i set up "node:type" some filters, some sorts, but when i visit now my frontpage, it shows my "404", so no site would be shown, only an error site. how will be shown my nodetypes (artikels) on frontpage (with some filters and sorts )?
regards sebastian
-- Mit freundlichen Grüßen Sebastian Gödecke mailto:simpsonetti@googlemail.com
-- [ Drupal support list | http://lists.drupal.org/ ]