By Draven_Caine on
Greetings,
I am looking for a module that does something similar to views but i don't think views will do what i am looking for at this time (awesome module though merlinofchaos)
- I would like to split my front page up into 8 sections ( i have 8 dropdown menus items).
- Each section will hold the newest 1 - 3 node titles, teasers, ect
So it will basicelly look like a newpaper front page kinda. Views will pull the newest items part but i cant break it into sections. I thinking i might need panels but panels says its unstable still and this is a production site.
Any help on this would be great
Draven
Comments
A nice non-panel solution is
A nice non-panel solution is insert view module. You could use a single view that filters on an argument and pass in 8 different variables, one for each embedded view tag, to show the filtered view. I have found this little module a great helper in many different web sites.
Alan Davison
arguement
Thanks for the reply,
I have yet to figure out the arguements section but i do have the insert view module. The best outcome i have figured out so far is i have latest blocks for each section, now if i place these views into a table. I know there has to be a better way but i havent learned it yet or havent found it.
Maybe you could explain a bit on the arguement section so i can see if that might do the trick.
Draven
http://www.Shattered-Broken.com
I guess that you must be
I guess that you must be tagging the pages using a taxonomy or CCK field to define the 8 different sections?
The arguments are really simple: Check the plus symbol beside the arguments block. Select the relevant field from the list. For example, term id.
The use the tag [view:my_view=my_display=3] to pass through the term id 3 to the view my_view using the display my_display (see the insert view readme to find out how to find the display ID).
Either tables or floating fixed width div should serve as a good container for the insert view tags
Eg:
Where 3 == term for networking / 2 == drupal / etc
[edit] Remember to tag the topic. Views in Drupal 6 is radically different to views in Drupal 5
Alan Davison
Just realized that you want
Just realized that you want this to be based on the menu. I must be getting too drupalized...
Have a look at submenutree, this will guide you on ways to show blocks based on a menu item. It will not do want you want, it will just serve as a example on how to attack the problem.
Alan Davison
basics
When basiclly i was doing close to the same thing you were, make a table-->insert a latest art block
Seems to be like your example when you tellt he view to only hold the newest 1 - 3 results, its requires 6 blocks (in my case) but i had the blocks made ont he right side already but its the long way around things i think
Draven
**EDIT** ok if you go to my site @ http://www.shattered-broken.com you can see how i have the front page set-up.
Just one more question how would i change the tpl file so that it take the title of the page and the user picture away but only for that one node so the user picture, title and such surrounding objects to look like the original home page.
We are just doing the first
We are just doing the first big site with views in drupal 6, and I've only had the first couple done. Using the suggested templates, I actually found that there was a lack of information to do what we wanted, so I ended up using teaser list types and theming up the teasers to match what we wanted on the page. Saying that, "views-view-fields.tpl.php" or one of the more specific files should provide enough info for your needs.
[To prevent being flamed by others, I'll clarify that the lack of info translates to, the lack of time to define new displays to render the required combinations that we needed, not a short-coming in the module!]
If titles/pictures are showing through, you must be are using node views (teaser/node lists). The easiest way is to define a template for each node type and adding checks on the template to make it do what you want. node-art.tpl.php You may even be able to do this globally, depends on the logic required.
Eg: if (!$teaser) { print $picture; }
By the way I like your “Son of Suckerfish” menu, they are always so much smoother than the old dhtml menus.
Alan Davison
my theme is "bluesquare" that
my theme is "bluesquare" that is massivily customized.
The page i am using is a page node called home, with insert view in the cells of a table so the only views are block views that i used on the right side blocks than found after we got too much info they needed to be moved. so ill need a custom tpl file for the page node "home"
so basicly i can take the page.tpl.php file and copy it and rename it ... something. that is where i get lost.
This site was started by me years ago for all indepenent artist if that be music, graphics, art, or the written word so they have a place to showcase what they do, ect. Than my girlfriend has been learning web design and asked to see somethings added.
If these are just wee mods
If these are just wee mods for the page template, you can do stuff like:
Alan Davison
learning drupal along the way
I would like to ake it its own tpl so i can learn the specific tpl way, if possible.
could you run that way by me so i could know. i did it a long time ago but just need a refresher if you wouldnt mind.
Thanks
Draven
http://www.shattered-broken.com
Copy "node.tpl.php" and call
Copy "node.tpl.php" and call it "node-{content_type_name}.tpl.php". You may need to flush the cache so that it is picked up
Eg: for the content type "Media releases", (media_release), the template is "node-media_release.tpl.php"
Alan Davison
Greetings, Juts one thing is
Greetings,
Juts one thing is out of place, how do i get rid of the page title?
i narrowed down the page title in the page.tpl.php not the node.tpl.php
if i get rid of the php line in the page.tpl.php that prints the title it make the front page nice but takes the title from all the other pages also
you can use the function
you can use the function
<?php if (drupal_is_front_page()) {} else {print $title;}?>as a condition in page.tpl.phpAlan Davison
good solution!
good solution, it works.