I have a menu in joomla ...
In my template I show the menu like this
<jdoc:include type="modules" name="header" style="none"/>
When I see the html generated, the class of my menu is "munu"
How change this class for other?
No put a suffix, I want change class="menu" for class="other"
If you want to change your menu class then you have to change it in the default.php file in mod_menu inside tmpl folder.But I am not suggest you to change the core files, To do this you can use template overridden method.For more information how to use it go through this link.
How to override the output from the Joomla! core
You can change the suffix of the class by admin panel, you just have to go the admin panel then module manager then your menu module. in menu module you will have advanced parameter to set the class suffix as shown in the screenshot.
You can change the style of the div container in case you are not able to change the menu class.
<div class="other"><jdoc:include type="modules" name="header" style="xhtml"/></div> and then you can change the style with the reference of the container class.
#user852610 Override module menu html.
Copy module menu, paste into /templates/yourtemplate/html
Copy all file in tmpl folder to parent folder and remove others
Find and replace class "menu" in default.php
Related
What file would I need to edit to change (overide) the Joomla 3.3 on Centos default category blog view ?
Im using the Yoo theme Katana theme ...
Ta,
What you have to do is 1st override the category blog view view in your template. Because editing core files are not preferred.
Here’s a simple tutorial to override the layout of the ‘category blog’ view.
First of all we need to create the override folder /templates/current_template/html/com_content/category/
Paste and copy the blog_item.php file located in /components/com_content/views/category/tmpl into the override folder we previously created.
edit the blog_item.php file as you need.
Default category blog listing path is:
{JoomlaSite}/components/com_content/views/category/tmpl/blog.php
That includes other related templates respectively:
{JoomlaSite}/components/com_content/views/category/tmpl/blog_item.php
{JoomlaSite}/components/com_content/views/category/tmpl/blog_links.php
{JoomlaSite}/components/com_content/views/category/tmpl/blog_children.php
In Joomla 3.3.x versions category blog layout is already overridden by default beez3 template, so you need to refer a copy from beez3 templates for latest changes(if any). Path for that is;
{JoomlaSite}/templates/beez3/html/com_content/category/blog.php
{JoomlaSite}/templates/beez3/html/com_content/category/blog_item.php
{JoomlaSite}/templates/beez3/html/com_content/category/blog_links.php
{JoomlaSite}/templates/beez3/html/com_content/category/blog_children.php
You can use this files to override respectively, based on which type of change is required to your current need. You can copy & paste respective files to your current theme's folder like this;
{JoomlaSite}/templates/{Your_Current_Theme}/html/com_content/category/blog.php
Replace {Your_Current_Theme} with your template folder name.
I am trying to add some code to a Joomla site just before the tag. I have never used Joomla before but from what I read up it should be something like this -
Log on to: http://www.yoursite.com/administrator/
In the top menu select: "Extensions" > "Template Manager"
Now select the template which is marked as default and click "Edit"
In the template edit page click "Edit HTML"
Or index.php file from your template folder however when I do both of these options the only thing there is:
<?php
if (class_exists('T3Template')) {
$tmpl = T3Template::getInstance($this);
$tmpl->render();
return;
} else {
//Need to install or enable JAT3 Plugin
echo JText::_('Missing jat3 framework plugin');
}
Any ideas where I can find the normal HTML markup with the tag?
Thanks for the help.
The markup for your template would normally be in /templates/template_name/index.php but your joomlart template uses a framework (which is not standard joomla, but common practice amongst large template providers). You should look into joomlart documentation, so you can make sure you will follow their best practices. From a quick glance at their forums, try looking at the \plugins\system\jat3\jat3\base-themes\default\page\default.php file (see here: http://www.joomlart.com/forums/showthread.php?55256-Add-code-before-lt-body-gt-amp-lt-head-gt&highlight=template+edit+jat3)
In a standard Joomla template, you would find the code inside abovementioned index.php.
You can find the template files at following location:
*Your_Base_URL/templates/mynewtemplate/*
I have installed phpFox and I have HTML( only html,css,js ) template. I want to change to my own html template instead of default template! I could to do this task! Please help me to change default template to my own html template. phpFox 3.3.0
Go to your admin area.
Then
Create a new theme here.
http://yousite.com/index.php?do=/admincp/theme/add/
Now create a new style here and select your theme
http://yousite.com/index.php?do=/admincp/theme/style/add/
add a new style here
Now go to folder
yoursite/theme/frontend/
Copy cosmic folder and rename it with the name which you had given in admin while creating style.
Also rename folder inside this folder cosmic to new folder name.
Now you can change the html
yourfolder/template/template.html.php
You can also change the CSS
frontend\yourfolder\style\yourfolder\css\custom.css
Activate your theme
http://yousite.com/index.php?do=/admincp/theme/
And make your theme default
Hope this will helps you.
Firstly, you tell us what exactly you want to modify or change. For instance if you want to change user profile head information, you should find the related template file from module "user".
Anyway before doing it I suggest you to backup the original files.
If you want just to create a template with new styles, then do as KESHU VAT's way.
I have been asked to make a "one-off" change to the link on the homepage of a website that is running Joomla. The trouble is I am not familiar with Joomla administration. I was hoping it might be similar to WordPress, where I might have to modify a template file, however this does not seem to be the case.
Can anyone point me in the right direction on how to change the content of a module on the home page of a Joomla site? When I view the module settings in the Joomla admin there does not appear to be any content to edit, just menus and meta data. Thank you.
Every module has its own functionality so it depends on what module you are trying to modify.
You might want to look at template overrides. By doing a template override you can modify a module output without hacking the core code of the module.
So in the case of a module, you should look into your joomla installation for your module. If your module is called mod_stackoverflow for example, you should look for
PATH_TO_JOOMLA/modules/mod_stackoverflow/
Next you should look for the template file you want to modify. If you want to modify the default template of the module and if the output of your module can be overriden, you should look for the default.php file like so:
PATH_TO_JOOMLA/modules/mod_stackoverflow/tmpl/default.php
At this point you should copy the file into your template folder following this structure:
TEMPLATE_NAME/html/mod_stackoverflow/default.php
By placing this file in your template folder, Joomla will use this file (instead of the one in the module folder) to output the module content. Now you can edit this file as you like.
Hope this helps.
Check the homepage content is an article or module . If it was article you just go to the following path.
Joomla administrator->Contents->Featured Articles->
here you can find the home page article and modify it by click on article title.
If it was module you just go Joomla administrator-> Components->Module Manager
here you first find which module is enabled in homepage. Then you can edit the module contents.
I have a DokuWiki and I'd like to place a logo on the title bar at the top of the page? How can I do this? Note that I am not referring to the title bar at the top of the browser, but rather the title bar on the website itself.
I tried inserting the DokuWiki syntax: {{public:logo.jpg?100x100}}, but this simply rendered as plain text and not an image.
Is it possible to put an image in the page title?
Easy: Rename your logo as "logo.png" and place it into :wiki namespace. It will show automatically.
This solution works on template "dokuwiki" (default one on dokuwiki old stable version "Adora Belle" and in current one "Weatherwax"):
Deeper:
We can look at tpl_header.php file, lines 21&23:
// get logo either out of the template images folder or data/media folder
[...]
$logo = tpl_getMediaFile(array(':wiki:logo.png', 'images/logo.png'), false, $logoSize);
Ok: tpl_getMediaFile() function will look for a file logo.png in media namespace called wiki.
So I go to dokuwiki File Manager and I upload my logo.png file on wiki namespace. I refresh page and I smile.
Hope That Helps
In modern versions of DokuWiki you don't have to make your own template. Simply upload a file called logo.png to the wiki or root namespace in the DokuWiki Media Manager.
This is the line of template code that gets the logo:
https://github.com/splitbrain/dokuwiki/blob/master/lib/tpl/dokuwiki/tpl_header.php#L23
You can tell that it is first checking logo.png in the wiki namespace with :wiki:logo.png and then logo.png in the root namespace with :logo.png.
If it doesn't find either, it falls back on images/logo.png, which is the default logo.
(for latest versions of Dokuwiki)
You should create your own template, and do whatever hack you need to do.
It is located in lib/tpl/
Just copy the default directory with your own name (this will be available in the admin area later), something like "company", and edit:
<div class="pagename">
<img src="<?php echo DOKU_TPL; ?>images/logo.png" align="absmiddle"/>
[[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>]]
</div>
You can build the HTML as you like... but the example above works just fine (the image is located in the lib/tpl/company/images/)
You can then change the template of your Wiki by updating the configuration at:
Admin > configuration manager > template
There's no config option for this, you'd have to hack it in \dokuwiki-2009-02-14\lib\tpl\index.php I'm afraid.