i need to assign a diffrent layout for my home page, but my issue is before come to home page there is a login page with totally different layout.i made that template as "default" (Because that should be load first), after logged in comes to home page.Home page doesn't have componet area only have modules.How do i assign my 2nd template only to the home page ?
anyone has any idea how to do that ? please help me! OR any idea to accomplish my objective ?
I think you have to assign the template to the 'home' from the template menu, 'home' should be in the main menu.
All other pages should be assigned to the other template.
administrator/index.php?option=com_templates&view=style&layout=edit&id=XXX
Related
I created a page template in confluence, according to documentation, just like in this URL
https://confluence.atlassian.com/conf61/create-a-template-877187723.html
Everything went according to how documentation said, and I created and promoted my new template.
Template I made was simple (for a start) - 2 fields:
Title and description. That's all
Then when I go to "Create page from my template, the form opens, but the "Next" button does not work. Nothing happens when I click it.
Can anyone help ? I am "supposed" to be the space administrator there, but .. maybe there is something else missing ??
Create page from template
I have default template for all pages on my website, and 1 different template only for 1 menu item.
So, It worked very well, 1 page had special Landing page Template and other pages worked with another template.
However, today I discovered that Landing page shows with another template for other pages... But I didn't do anything to templates or menus, so I'm surprised that it stoped working.
I decided to assign landing page template to that menu item again, but even if the template assigned to the menu item, it still shows with another template. So I tried to assign standard joomla template to page and it didn't work...
Seems, Like joomla doesn't pay attantion to whatever I assign, it show everything with 1 template which I had on all pages except Landing page.
But, when I click "Preview" of the Landing page template in template manager it shows the template well, so everything is ok with the tempalte.
Thanks for your help
I found this solution, which worked for me... http://forum.joomla.org/viewtopic.php?p=2662700
The problem caused by SEF, but I'm not sure why would I have such problem... because I didn't change anything and it worked well the day before.... However, this thing worked
// Get the id of the active menu item
$menu = $this->getMenu();
$item = $menu->getActive();
if (!$item) {
//added here TO FIX THE ISSUE
$this->route();
//END CODE CHANGED
$item = $menu->getItem(JRequest::getInt('Itemid'));
}
I have created my own Joomla template using Joomla 3.1.
I have my main menu with the menu item "home" that leads to the front page.
I have a module called "body" in which I want my articles to be displayed, depending on which page the user is I want a different article to show up.
The article that I want to show up on the "Home" page is in a category called "home". My menu item "home" is a single article linking to the article I want to be on the front page.
All of the statuses are on published and the access on all mentioned items are public.
When I open the front end I can see the "body" module but no article. If I try using Protostar there is no problem and the article shows up.
Can anyone help? I suppose it is because there is no link between the "body" module and my article/category...?!?
Found the solution: all I needed to do is to add the tag jdoc:include type="component" / into my template. After that it worked fine...
I have to work on a Joomla 2.5 Template. Is there a way to work on a template even the site is Online but only I can see the changes?
I thought that I do something with a get var &switch=true
and then ask for this var in my template and output a new css file. But as I also have to change something the dom this way is not working.
Is there something like -> when I am logged in at the Backend as admin, Joomla takes the new Template and all other visitors see the normal life Template?
Kind regards,
tbook
You just have to add a parameter to your url
http://example.com/joomla/index.php?template=beez5
I have a website in Joomla and have created two themes for main-and-inner pages respectively.
When i created inner menu items i assigned them the inner-theme it works fine the first time you navigate to the theme but on the second hit to the page it just shows the home page theme. its really odd.
On my local machine everything works perfectly, this issue only arises when i upload it.
One more thing i am new to Joomla the way i made the template was i used the same home page template and changed the name attribute in the inner page but kept some of the module name same as in the home page so i could assign the module once and it could work on both templates. inner page differs in size of the banner & has breadcrumb module + 1 more that differentiates it from the home page.
This is most likely caused by the Itemid not propagated properly. The Itemid identifies a menu item, from which the settings are read. If the Itemid is missing, the settings of the default page (your main page) are used instead.
If you just want to slightly change the appearance of the front page and other pages, you can do that with one single template. See the Joomla! online documentation for how to determine if the user is viewing the front page.