Drupal - how to hide headbar Menu in a page? - php

my website is : https://www.edqm.eu/
I need to create a new page, but I want a page without headbar menu.
Is it possible ?
If Yes, How is it possible to do it ?
the website is built with Drupal 7.
I'm not expert in dev and in Drupal.
Thank you for your help.

it should be possible and depending on your site setup, it can be even pretty simple. You have to find the menu block in /admin/structure/blocks and go to configure on the block, there you should see visibility settings and you can filter out your page.
Hope this helps.

Your header menu can be in:
Some block - just go to Structure -> Blocks from admin menu, find that block, click "Configure" link and in "Visibility settings" hide it by some criteria that is most suitable for your case (content type, page path..). If you have hard time finding which block is that use some inspection tool like Firebug or similar, to see block id. But if site is made well, when you are logged in as admin you'll have that "Configure" gear icon when hovering the block.
Menu can be part of some template file, most likely page template (/sites/all/themes/your_theme/templates/page.tpl.php). If that's the case then you can clone the template file and name the clone following the special naming convention so just the page you want to change will use that template. Then you can modify the clone and remove part that generates the menu. Check out this page for theming names suggestions:
https://www.drupal.org/docs/7/theming/template-theme-hook-suggestions

Related

Adding a new homepage to Drupal

I'm just getting started with Drupal and have added my preffered modules. I have also added my front-end framework module - which is Foundation Zurb. Now I'd like to change the default blog-like structure of the site and would like to add a custom developed homepage. Been trying to put my head around this for over 3 days with no success. I followed the direction on the Drupal docs - which is a bit confusing and rigid but something I dont grasp is does the page--front.tpl.php actually end up being the home page? Also where would I put my css and other js scripts?
If this is the case then what would I need to do to add a navigation to this homepage which would then provide links to my site? Some mind opening guidance is welcome
You can set any node in any content type to be the home page. So first create your content type, then node in that type.
Then go to Confugration -> System -> Site information in admin menu and there you have Front page section. Add your page path to "Default front page" field and that's it - your page will become new home page.
You can also enable the default view "Frontpage" that has a path /frontpage. In this you can customize the sorting and filtering of what is being shown. Then visit the "Site information" page and set "/frontpage" as your default frontpage.

Adding/Importing a ready coded (AboutUs) page into Joomla

I am busy converting a HTML website into a Joomla temaplate, I got some help doing the home page (index.php), but now the menu items are not linking anywhere. I have a ready coded AboutUs.php page, which I want to important into Joomla and link to the 'About Us' menu item.
Can this be done in the similar way as it is done with the index.php file? Can I maybe upload the file via FTP and link it somehow in Joomla?
Any help on this would be much appreciated.
No it's not how joomla works.
You have to create the second menu item, link it with your content and add the extra modules that your "about us" page have.
If you don't want to do it like that you could create a new template and link each menu to different template but it's not a good approach.
If you are interested about the html part of the php site,
you can just create an article and paste html code in it (do not forget to set the editor in text mode).
If you have css, you may add it int the template's css file.
Otherwise, if you need php functionality, you need to create a joomla component.
If your going to migrate a site and use a tool like joomla i strongly suggest using it the way it was designed to be used. Otherwise theres no point.
When creating from scratch or migrating a site to joomla i would suggest firstly creating (or modifying) one or more templates to get the layout of you site; header, footer, logo, background, modules (eg. menu, login, etc) and component to load and so on.
You will have to recreate the menu items using the menu manager and apply your css to the menu module(you can download free menu modules or use the default one or develop one).
When creating a menu item you can select the template to be used and also what component you want to load (article, sitemap, blog, login, create user, etc...). An article is used to store html content which can be edited through the content manager although there are simple ways to add scripts to your articles.
If you want to add php to your content you have 4 choices.
Template (used to show content which appears on every page; this is where the html starts and ends and where the component and modules' positions are defined),
Component (this is loaded from the template depending on what menu item is selected),
Module (a very simple and easy way to add custom php and html code, can be loaded from the template or from components like in a joomla article),
Plugin (used when wanting to run scripts which dont have any visual content)

Wordpress page not showing with correct template

I have created a new page and allocated to default template which is same as other pages but it shows up with broken template with comment (which I want to remove from this page) in it and I cannot find where it's coming from i the actual template folder. I have searched page.php and others but had no luck.
The settings are exactly the same as other pages and I have no idea why it's doing this.
Is there somewhere I can check to resolve this issue?
If you need to disable comments, you can do that within the page editor in the backend. It should be below the content area.
Regarding setting a page template, If multiple page templates are available for you to use, you choose which page template each page uses on the right side of the page editor underneath the Publishing options.

how to make drupal pages into menus and submenus like administrator menu

I'am new to Drupal, i just want to create a website which contains pages like about us, contact us and other static information that may be changed after a long time.
Now i can create the pages and sub pages to main pages. The links are displaying on the top of the logo and the sub pages were showing on the side of the main page.
i installed the dhtml_menu module but not working.
are there any changes required to dhtml_menu module to make work for pages?
or
i need to use any other module?
please help me to solve this issue
Thanks.
Your question is pretty confusing. If you just want to display the pages in a tree just like the administration menu (which seems to be what you're asking), then you don't need any extra modules.
Just create your pages and put them all in the primary menu. Then, once your pages are created add the Primary links block (in Administer, Blocks) anywhere you want. That block will display the navigation tree of your pages, just like the administrator menu does.
edit
Oh, so you want the drop down menus? Then you don't want dhtml_menu (which will only prevent unneccessary page loading when you open pages), but need something like simplemenu. Create your primary links, goto Administer, Site Configuration, SimpleMenu and set the "Menu" setting to "< Primary links >". That will display a drop down menu bar to navigate through your site...
First i need to say thanks to wimvds. "Thankyou wimvds for your edit it take me to find more modules and themes".
found the solution in a theme "admire_grunge" the drop down menu needs to be defined in the themes it self.
found some more themes that work like this.
Thanks.

How can I make part of a Joomla template editable via the CMS interface?

Title says most of it.
I have inherited a Joomla site and the client wants part of the main template (a feature-type box) to be editable via the Joomla backend.
I guess really it is a content item that never gets displayed as its own page, but as a part of all pages.
Is that possible?
Thanks.
EDIT: By editable, I mean as a piece of content, not as editing the template HTML. I hardly expect non-tech users to get things right in a WYSIWYG text editor, much less change HTML code that could screw up the whole site.
The Custom HTML Module allows you to create, edit, and display your own free-form HTML on a Joomla site using a WYSIWYG editor.
In your administration control panel you can find the "Module Manager" under "Extensions" in the drop down navigation menu. There you can create this module, choose a position in your template to display it, and then select what sections of your site the module should be displayed on.
You want the content items module.
Content Items Module
This way a user can add content as normal using the standard content pages, but you as the developer can set the module up to show that content as a module only. You have a LOT of choices with the above module too, you can set individual, category, intro, main all that kind of thing. Dont link to the page or category and it wont be shown on the main site, just in the module :)
The joomla extension directory is full of great things.
Good luck
You can use a special component for Joomla to edit templates, any part of template, any Tag. See dewem template editor component
Joomla templates are always editable via the backend. Just got to Extensions->Template Manager->Select the template you're using to edit it->and then up in the toolbar there will options for editing the html or the css as well as many design (look) options over on the right. That is in Joomla 1.5.

Categories