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
Related
I am using Umbraco 7.5.8. I would like for a page to switch to another template if the browser being used is certain versions of internet explorer. I wasn't sure how to do this or if it could be done.
It seems that adding the altTemplate parameter to the URL, e.g:
my-domain.com/my-page?altTemplate=newTemplateName
works right out of the box (just make sure to add the new template to the document type's "Allowed Templates" in Umbraco). Combined with Mario's suggestion to use JavaScript, this should do it.
Im currently looking into the MURA cms. and while it looks quite nice. I cant seem to alter something that appears to be quite trivial on other platforms.
Im simply wanting to know the location of where the base login form template resides whether it be in a JS file or as a simple .cfm template.
Any ideas greatly apprecated
thanks in advance
You can overwrite/customise the display object that renders the login form.
Take a look at the following documentation on how to:
http://docs.getmura.com/v6/front-end/customizations-staying-on-the-upgrade-path/customizing-display-objects/
And this is the file you want to modify:
https://github.com/blueriver/MuraCMS/blob/develop/default/includes/display_objects/dsp_login.cfm
I created my own template named ibtheme, then I copy woocommerce folder from Woocommerce plugin to my template. But when I click on a product on frontpage, I see that it call the template files in plugins/woocommerce/templates/single-product, not from ibtheme/woocommerce/templates/single-product/
Please help me to override product page template!
Thanks advance!
As you have already discovered, you can edit the template files in an upgrade safe way through overrides. Simply copy it into a directory within your theme named /woocommerce, keeping the same file structure.
Example: To overide the price display template, copy: wp-content/plugins/woocommerce/templates/single-product/price.php to wp-content/themes/ibtheme/woocommerce/single-product/price.php
You can read the full documentation for WooCommerce theming at Template Structure + overriding templates via a theme
I would suggest that only copy/override the specific templates that you plan to modify. I've had to go through every single template to repair a broken theme/site after a major WooCommerce upgrade, so trust me, this will make it easier to upgrade WooCommerce in the future.
We used the smarty template engine as the framework for my site. I am trying to add static pages to the site, but I cannot get the new static pages to appear.
Can someone please tell me what I need to do to get a new page to appear?
Here is an example. My About Us Page is located at www.domain.com/about. This page is called about.tpl
I want to add another page called 'history'. The page is saved as history.tpl. I FTP'd the page to my server, but when I go to www.domain.com/help it does not appear.
I feel like I'm missing some sort of important step to get the help.tpl page to appear.
Keep in mind smarty is a template engine for PHP. You can't just upload a template file and expect your homepage to show this without any reference, you at least need a few lines of PHP code to load and display it.
The basic setup for using a smarty template is something like this:
<?php
require_once(YOUR_SMARTY_DIR . 'Smarty.class.php');
$smarty = new Smarty();
$smarty->display('your_template.tpl');
?>
If you have some script like this, call it maybe about.php, upload it, then go to www.yoursite.com/about.php, the template your_template.tpl will be displayed, if configured correctly.
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