I am working on developing a drupal site right now. I have created a custom homepage and it works fine with a module called (front page). However, I need to create a custom page for an internal page. Meaning, I need to have a different design than the general drupal theme I have right now but I am not sure how to do that (in an easy way that wouldn't take much time). I have the design in HTML and CSS ready but i just need to have something like (custom page) in the menu so when i click on it it takes me to that design (not external link though!)
I hope this was not confusing but if you have any questions I will be glad to answer them.
Thank you for your help in advance :)
To add a new Page or article, click on Add content. Next, select the Basic page type of content. The default Drupal content editor will appear. Add a Title for your page and of course – its content.
A solution To tell Drupal to use the page template for a content type, you can implement hook_theme_suggestions_page_alter() . This hook is used whenever a page. tpl. php template is used and allows you to suggest alternative templates.
For a single page, you can create whatever html you like with drupal, using
Since you want a unique layout you want to look into a custom page.tpl.php. You can create a page.tpl.php for any url, which will allow you to modify the entire page html for that page, or just tweak it here and there.
Drupal has a quite flexible theming system, so there are many ways to change the markup. All of this stuff would need to go into your theme or a module.
You will still have the css files that are used in the drupal site.
If your aim is to create one on only on page, with different layout ect, the quickest and easiest way, would be to create our own page.tpl.php file, and just write all your html in there and forget what Drupal can do. It's not generally a best practice, but in this case, doing stuff with the flexibility of Drupal might be a bit overkill, especially if you don't know Drupal well. You could possibly with the page template naming convention do this aproach, just adding a file with your markup in your theme. This approach would be good for a static site, but can also be done with a bit more effort for other pages. If you want to use a lot of modules, this wont be the solution for you. You should instead look at the theming functions / template.php and what can be done there.
If your aim is to create a backend theme, drupal has several modules for this, the most used these days is probably the admin module. Even if this is not your aim, this is a great module to make your backend a bit more user friendly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With