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'));
}
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 use Umbraco 7.2.1
I have a document type called News with allowed 2 different templates: News (default) & Projects
I create a page and choose Project template for it. And it displays News template instead.
I tried the following to see what's wrong and came to nothing:
I set up a new page and choose Projects template - the page displays News template instead.
I changed the default template for this doc type to Projects and set up new page with different title - the new page still displays News template instead of default Projects.
It is not logical. Tried to refresh the cache but the problem persists.
I ensured the template is correct and it displays as such in the CMS as well.
I have another doc type which uses different templates and have no problem with that. Only with News/ Projects templates.
Completely not logical..
You will need to check the structure on the doc type to check if both templates have been allowed to the News doc type. Typically when you create a new document type, only one template will be assigned. Alternatively, go to content, click on the properties tab and down the bottom you will see template. You should have dropdown enabling you to select which template you would like to use.
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.
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
I have a magazine using Joomla. I need to be able to have different layouts for different issues.
I copied the default template, modified it and it shows just fine in Template manager, but how do I actually assign it to a category so all articles added to that category would automatically use it?
UPDATE: Solution below seems to work... however now it seems to open it correctly only when I go through the blog view and when I use my link on the front page directly to an article it uses wrong layout?
If you are using Joomla 1.6 or 1.7, you should be able to assign a template to a menu item. So if you have a menu item pointing to the blog view of a category. Set the corresponding template to that menu item.
This is done in Extensions -> Template Manager -> Styles -> "Your Magazine Template"