This forum is for assistance with theme development.

Page.tpl.php override

Hi

I have a custom module and now I'm creating a custom theme for it, I d like to override the tpl.php file so I can theme where the fields go on the page.

I'm going to do this in a theme and not in the module so I can learn more about how to write a theme but what would I call my .tpl.php page for every page that is meeting/% and a different one for meeting/%/edit.

These pages call data back my fields from a custom table in the database so they are not content types.

Many thanks.

Theming just the main menu secondary links

Can any one tell me the correct css class to theme the secondary links on the main menu please

I tried .navbar-default .navbar-nav > ul.secondary (I'm using the bootstrap theme) but that didn't work.

my class looks to be menu nav navbar-nav secondary

I'm assuming its something simple around getting the path right but I just cant figure it out

.navbar-default .navbar-nav > li > a works for all the links but I need to theme the secondary ones differently

Thanks

Contact Forms & Twig

Hello :) I have a problem in my DRUPAL 8 project can you help ?
So I have a content type (Product) and i have a field related to a contact form (Product Contact Form). I created a custom twig template for display the nodes of all products in my theme. In the template i am trying to manage the display the fields of the contact form on by one instead of render the full form. I already made the renders of all fields but i cant have access to the attributes of the form tag and without that i cant submit the form data. Do you know what i a missing ?

How do I use Susy (with Gulp task runner) with Zen Theme instead of Zen Grids

See this link for the Zen theme: https://www.drupal.org/node/2710573

Under Optional Steps #7: Choose your preferred page layout method or grid system.
"By default your new sub-theme is using a responsive layout using Zen Grids. If you are more familiar with a different CSS layout method, such as Susy, Foundation, etc., you can replace the layouts/layout- line in your styles.scss file with a line pointing at your choice of layout CSS file."

page.tpl.php vs views-view-page.tpl.php

What would be the benifits of using views-view-mypagename-page.tpl.php vs page-mycontenttypename.tpl.php?

I'm making customized pages for a site. I currently have created a few custom content type for instance (testpage), and then created a template file page-testpage.tpl.php to control the look of those specific pages.

I was told I should be making view templates instead, example (views-view-testpage-page.tpl.php). Can anyone tell me the benifits to making a view-page instead of just a page of a certain type?

File suggestion name (form template)

Hi guys!

I'm new on Drupal! I need to create a custom template for a form that i have on my page. I saw on the core templates that exist a form.html.twig file. I copied this file to my custom theme but i don't know which name should have it. The file name suggestions doesn't appear while i am debuggging.

Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Theme development