Wordpress - How to create a one pager and show pages underneath? - wordpress

I have created two different pages in WP which are using two different templates that I have created. I now want to create a third page in which those two pages are listed underneath each other, but should have the design of the two other templates.
How do I have to create this third template file? If I get the two pages with the get_children() function, I have to reproduce the templates for these two different children pages in my third template. How can I solve this?
Thanks

Related

Drupal: taxonomy filter from separate view

this is my first website in Drupal 7, I'm trying to learn this framework, but I'm encountering a problem to which I could not find a solution yet.
I'm trying to create a page with a panel that has 2 views (as seen in this photo), the left view contains a list of categories (terms from taxonomy) and the right view contains a list/grid of projects (Content Type). Each project is of a single category and when I click on a category on the left side I want it to filter only the projects of that category on the right side, in the same page (or a new page with the same layout ../projects/category_term_1).
What happens now is that when I click on a category, I'm taken to a page that diplays the projects listed as taxonony term ( ../taxonomy/nr_taxonomy) different layout (like blog, but without categories on the left side).
I have aces to another project where the functionality that I want is implemented is a sort of similar type of pages. I tried to replicate all configuration from that site to mine, but the only difference that I'm able to notice is that the value of "STORAGE" column the administration/structure/pages is "normal" for my website and "in code" for the other site.
Site's layout:
https://www.dropbox.com/s/ep72wnpah42mdv3/site_layout.jpg?dl=0
Thank you!
I think your main view should use a contextual filter, based in the URL given. This way, the view would only show those projects in the specified category.
In the left view, you should show the taxonomy terms, but you should modify the URL given with your custom one: www.example.com/projects/taxonomyTerm
Hope it helps

Create a list in Views of non-node pages created in Views and Custom Pages

I have a fairly large enterprise site and I am needing to create a dynamic HTML site map. Similar to the site map at Apple.
With that in mind, I have created a view that lists all node-based pages (i.e.) those pages created and associated with a content type. The problem is that many of the pages on the site are pages created in Views or in Custom Pages and the url is defined there. These aren't dynamic pages, rather they are pages built to be main pages for different sections.
Example: the site has a team content type. This content holds information about an employe. The page at the node level is site.com/team/john-doe. I've set up a view page with the url site.com/team - This lists the name and a photo of the team member.
This is the case for many sections on the site, since these are important pages I need to somehow create a view that lists these pages so I can then take that view content pane and the node-based content pages and drop that into a custom page to build the HTML site map.
Since these custom pages aren't stored in the db I am not sure how I can get views to extract that data and render it as a list.
Any suggestions?
I think what you are looking to achieve is going to be driven more by menus than by views or nodes, custom or otherwise. The menu system contains references to all paths on the site, whether they were created by nodes, views, taxonomies, custom code, etc.
You might find the Menu Views module useful for this:
http://drupal.org/project/menu_views
For a slightly different approach, I would also suggest looking at the Site Map module:
http://drupal.org/project/site_map

theme Omega 3 - Use of the Regions

you are familiar theme of Omega 3? I have just finished creating a sub-theme and I configured the regions that I need on a page suitable for my content type.
I joined two regions, in which I would like the content that I would like to take with php from my content type.
But at this point I lies the dilemma. As with the other themes I used a single page .tpl.php with inside the div block to control the layout now how do I break the contents of the content type in different regions?
Check out Display Suite. You can arrange different parts of your content types into different theme regions.
http://drupal.org/project/ds

Drupal Views & URL Alias Override Issue

I have a taxonomy vocabulary called 'catalogue'. Within this, I have levels of terms. Some have sub-terms, some have nodes.
I have two views to handle these: One to show sub categories, one to show nodes, each with a filter applied based on the URL. If I go to sub-category/category-name, it would show me all the sub-terms in category name. If I go to product-category/category-name, I get a list of related nodes.
With no aliases, the view works properly on sub-category/%. The problem with this is that the generated links for the sub-terms aren't to the view, they're to the term page.
If I create aliases, it overrides the view and shows no results on sub-category/% pages and default node teasers on product-category/%.
Can I use aliases with views in this way?
Sounds like you want to re-write the output of the Field instead of creating aliases. If you're not familiar with that particular feature in Views, see the screenshot below from http://highrockmedia.com/blog/rewriting-drupal-views-output-custom-theming-css
Note that instead of creating a <div> wrapper, you can create your own link as needed. Hopefully this will help you get started in the right direction.

Concatenating 3 views in one page

how could I concatenate 3 views in one page ?
Should I use blocks ?
You can use blocks, but Views provides an attachment display as well. Attachment displays can be attached other other displays within the view. So, you could create your base view, then create an attachment display that attaches to the base view, and then create a second attachment display which attaches to the first attachment display.
Attachment displays are good if each view is really just another way to view the same query (like, a summary view and a detail view). But if you wanted to combine three disparate views, blocks would be the way to go. Either create a block display for each view and add them to the same region in Site Building -> Blocks, or create a page display for one of the views and block displays for the other two.
A third option would be to use View Reference, which lets you reference views as CCK fields, if you needed the views to part of a node.
It probably depends on your layout.
if you want to embed a view in somewhere else besides your block regions, you could try the embed views module I also believe the the panels module has a much more dynamic way of rendering multiple views on the page (but flexibility also adds some to the complexity)

Resources