I try to insert in Joomla 4 custom module in template head.
In old Joomla 2.5 I was able to do it like this:
<head> ... <jdoc:include type="modules" name="CustomTop" /> ... </head>
This method seems don't work any more in Cassiopeia index.php
Related
I have a one page wordpress theme that I start develop from blank.
It's really basic. Just have two files:
index.php
style.css
In another themes the plugin "contact form 7" do all the job without reload the page.
But when I activate my theme and try to use the contact form 7, after click on submit button the page reload and my url get a #wpcf7-f519-o1.
So I believe that some code is missing in my theme.
Basically this is my theme:
<html>
<head></head>
<body> </body>
</html>
I don't have any call to footer or header or functions because I put all the code on a simple page.
So the question is: What should I do to make ajax work?
I found a fix.
Step 1 - insert
<?php wp_head(); ?> after <head> tag
Step 2 - insert <?php wp_footer(); ?> before </body> tag
<head>
<?php wp_head(); ?>
your code...
</head>
<body>
your code...
<?php wp_footer(); ?>
</body>
i, I want to know how to add a Head tag to articles on an Oculus 3.3.3 Joomla Template this is ti add it to the index.php of my hosting
I am using Joomla 1.5 and virtuemart 1.1.9 i have included the latest module in virtuemart. It displays the module in product details also i want to show only in virtuemart front page only
How would i hide these modules in product details page
div id="mainBlock">
<jdoc:include type="modules" name="shopmodule" />
<jdoc:include type="component" />
</div>
Please help me to get out from this
Find out a parameter to identify this view, i.e. view = "product-detail", then
if (JRequest::getVar("view","")!=="product-details") {
?><jdoc:include type="modules" name="shopmodule" /> <?
}
I am working on a template for Joomla! 2.5.4. Normally this goes very well, but today I have a weird problem.
The Joomla Modal(Squeezebox) shows in an completely empty template in all versions of IE.
The code of the template is:
<?php
$app = JFactory::getApplication();
$sitename = $app->getCfg('sitename');
?>
<?='<?xml version="1.0" encoding="utf-8?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-en" lang="en-en" dir="ltr">
<head>
<jdoc:include type="head" />
</head>
<body>
</body>
</html>
When disabling the K2 System plugin the Modal disappears. But i need the plugin so I can't disable it.
The following is installed in Joomla:
Joomla 2.5.4 (newest version)
K2
This template
The website is reachable on http://marjolein.site-project.nl
Does someone recall this problem or know how to solve it?
Already found the awnser. The XML line put the template in IE in Quirks Mode... Removing that solved it
I want to include two css files for my MVC project. One for admin side and other for client side. For admin I have used shared/_Layout.cshtml file where I have added the following line of code...
<link href="#Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
For client side, I am trying to use Site.Master file in the Store folder, which is not in the Shared folder, where I haved added the following line of code between head...
<asp:ContentPlaceHolder ID="head" runat="server">
<link href="~/Content/Style.css"" rel="stylesheet" type="text/css" />
</asp:ContentPlaceHolder>
In my Views folder called Store/index.cshtml I have included the following line of code...
#{
<link href="#Url.Content("~/Content/Style.css")" rel="stylesheet"
type="text/css" />
}
but this is giving me a warning message...
Validation (XHTML 1.0 Transitional): Element 'link' cannot be nested within element 'link'.
So my 1st question is it possible to use two css file for my MVC project?
2nd, Have I approached this the correct way?
3rd question, what shall I do about this warning message.
In for my client side I am trying to create a sidebar in the Site.Master file adding the following line of code... But nothing is happening?
<title></title>
<asp:ContentPlaceHolder ID="head" runat="server">
<link href="~/Content/Style.css"" rel="stylesheet" type="text/css" />
</asp:ContentPlaceHolder>
<!-- adding the following line of code -->
<div id="header">
<div class="title">My Project</div>
</div>
<div id="categories">
Will put something useful here later
</div>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
<div class="title">SPORTS STORE</div>
</asp:ContentPlaceHolder>
</div>
</form>
I am using VS 2010, ASP.NET MVC 3 in C#. Thanks in advance if anyone can help me here?
Is it possible to use two css file for my MVC project?
Definitely
Have I approached this the correct way?
You're not using the proper syntax within the <link> tag to resolve the url to your CSS file. Try using this:
<link href="<%=ResolveUrl("~/") %>Content/Style.css"
rel="stylesheet" type="text/css" />
What shall I do about this warning message?
Might be a typo, but you also have a 2 closing double quotes "". This warning message should go away if you remove this.
Found a better way. Added a new layout.cshtml file in Views/Shared path. When creating a new index.cshtml through controller, you can select the new layout.cshtml file in Razor. in MVC 3 you don't need to define Layout = "~/Views/Shared/_LayoutClient.cshtml"; in each view file. _ViewStart.cstml has been already been created for you. So you can avoid the DRY.