I want to create one or two pages on my website with no header or main menu or anything - i.e. just the main content.
I am using the Acacia template from Rockettheme. The main menu and the logo are not published as modules, so I do not know how to remove them from specific pages.
Is it possible to create a separate layout or something?
First check the template settings if there is any alternative layout. If not, you have to duplicate the template and then tweak the copy to fit your taste.
To duplicate the template depending on your joomla version see this for J1.5 , this for J2.5 or this for J3.2.
After you do that, either hide via css the header element like so header{display:none;} or remove completely the <header>...</header> section from the index page of the template or from where this code is being generated.
Then assign this copy of the template to the pages you want.
Related
I have been using ckeditor 4 in my CMS and using the template feature to allow the user to add a collection of template styles they've agreed open in to the editor so they are able to create uniquely styled pages. I have it so they can see the different colours templates within the editor, which allows them to see what section there typing content into.
The problem i'm finding is that after its saved and i go back into the editor to add another template, it only adds it within a existing template and i am unable to click outside of it. The only way i have to get round it is to copy and paste a section from the source.
Is their a way to allow me to click or move the cursor outside the template so i can add another one underneath it and not in it?
Regards
Add to your editor the Magic Line plugin. It adds a "floating bar" that allows to place the cursor after elements like tables, divs, ...
I am making a template in CS-Cart by including the needed tpl files directly into my html where needed. But what I'm not sure how to do is include the main menu.
eg.
{include file="common/search.tpl"}
I've created a custom menu, which currently contains two categories and two pages, and called it 'Top Nav'. How do I include this in my html template file?
You can do this, but you'll still need to use the block manager.
You can create a block for your menu, and manually insert it by following the tutorial here: http://forum.cs-cart.com/topic/29828-a-simple-way-to-add-any-content-on-any-place-on-template/
Though, as Alexander points out, it's not the recommended way to do it.
You should consider to start using the built-in block manager.
A block is a "widget" that can be put into an any place on the page using GUI at the administration panel. There is no separate template for that, blocks are being rendered dynamically - you can't just include it into your template.
So you should create a block that will render the menu you've created and position it on your page layout.
Check out the documentation to learn more: http://docs.cs-cart.com/4.3.x/user_guide/look_and_feel/menus/index.html
So I'm a little confused by Joomla's Alternative Layout overrides.
I'm using Joomla 3.3
I have read all Joomla 3.x documentation, and have followed many tutorials without any luck.
So here are my template files:
Promo is the name of the alternative layout which I would like to activate for one of my Category Pages.
So it appears as an alternative layout without a problem.
Then I've gone ahead and made the menu item:
However when I go on the page, it calls the blog.php override only and not the promo.php layout
What am I doing wrong here?
Where is your promo.xml file? You should have one in the same directory where you have your promo.php file. The promo.xml file should be a copy of the blog.xml file located under the public_html/components/com_content/views/category/tmpl folder. You will only need to change the line:
<layout title="COM_CONTENT_CATEGORY_VIEW_BLOG_TITLE" option="COM_CONTENT_CATEGORY_VIEW_BLOG_OPTION">
to
<layout title="promo" option="promo">
And then when you create a menu item, choose its type to be promo.
To expand on #itoctopus, there are two different things, an alternative layout and an alternate menu layout. If you make a direct menu link you must use the latter. For this you need the xml file, and at that point it will show up in your list of menu options. Alternative layouts are applied to items and the do not show up in the menu options. The menu always overrides the item. There are some additional options you can play around with.
i need to add js to a specific page in joomla. How do i do that? I cant find any option to edit the html of each page, since i also have to add some little html. How does joomla do that? i can assign a template for a specific site but then you would have to do each change twice...
I need to add a javascript file and some html to one specific site. i read the wiki and googled but i dont get it...
The reason you couldn't find a page to edit is that there is only one page in a Joomla site that builds all the other pages based on the URL, menu ID, and other parameters passed in the query string.
If you only need the javascript on a single "page" then there are a couple of ways to do it depending on where the content needs to be.
If it needs to go in the main content area (the component position) then you should get an extension that allows you to put javascript inside a regular Joomla article. Then you can put what ever code and HTML you need in the article and link to it with a regular menu item.
If you want it to go in a module position, then you can simply use the Custom HTML module. If you turn off the WYSIWYG editor editor, you can put the javascript right in to the content area of the module. It does require the editor to be off though, otherwise the code will be evaluated and you will lose what ever you had in there. You can also limit where the module displays under the menu assignment selection.
I'm in the process of porting an existing website to Joomla. Most pages of this website consist of a main content area and a sidebar containing additional items relating to the main content, such as (in-page) links, images, additional information, etc.
In Joomla, the main page content would probably be an article, but I'm not sure what would be the best way to create the sidebar content in Joomla.
Examples of pages-with-sidebar:
http://www.aikikan.nl/en_watisaikido
http://www.aikikan.nl/dojo?id=2
I'm creating a custom template for this website, so any solutions that require modifying the template are fine as well. What would be the best way to set this up?
Keep the content of each sidebar in an article and then assign it to a module by means of the article-as-module extension. You can then control the scope for each module (i.e. choose menu postions for which it will be shown) in the admin interface.
There is an extension called meta mod which is perfect for this sort of thing. It allows you to show modules based on any condition you can evaluate with PHP