I'm trying to edit the default articles' HTML. Right now the titles are in h2s and I want to change them to h1s and get rid of the print options etc.
There has to be some where you can edit the HTML of default article templates. Anybody know where?
as i know when you are posting some article on joomla you have an option to post the data as HTML and i don't think so that you have to change some php codes.
on the other hand when you are Adding an article that time follow these steps:
Click on the Parameter(Advanced) on the right side of the article
Select No of the Show Title option
Select Hide all between Article Rating to Email Icon
after all these setting you just only get your own HTML codes that you posted on that article as well the <h1> tag
EDIT: Or if you want to completely change the Article layout then
find the location joomla/components/com_content/views/article/tmpl/default.php
The above default.php file keeps all the layout of the article section and all the data that data that will keep on the RightColumn.
Changing joomla/components/com_content/views/article/tmpl/default.php is not a good idea, since all changes will be lost after your next update.
Copy the before mentioned file and place it into the Your_template/html/com_content/article folder, which would have to be created first, if its not there already.
Related
Does anyone know if it's possible to show the content of one article in another article
?
I got a page for visitors and i got a page for members (both different template).
both have a link to the same article, is it possible to link them to the same article with keeping their own template?
I think its possible to make a new article to show the content of the original article,
but i dont know how.
Please help!
Please try to make two menu items and set the template selection there.
I'm using joomla 3.0.3.
I want to put a simple image on the principal page and when I click this image, automatically (changes the page) and opens an article with some info that I want to put on it.
It is possible?
With joomla default, or I need an extension for can do it?
Thanks a lot!
You can achieve this by creating a menu item for the blog view of frontpage or content.
This will load a number of articles and paginate them. In the options, you will find Intro articles (on top), then the number of articles to load in columns, then a list of links. Put 0 on the links and on the first articles, and you will get your list of articles in a grid.
Depending on the template you are using, the settings of the menu link could be enough to achieve what you want; if not you can write a template override to display exactly what you want.
I am currently updating a web page for a company who are still using the very old Joomla 1. When creating a new menu item, I have found that an article is needed in order to create the page.
My problem is the fact that there is no option to alter the location on the page of the article. For modules, this is not a problem as there is an option which can be used to choose the specific location. For articles there is no such option, which has been of grave annoyance as they simply crop up here, there and everywhere!
If it is of any assistance the theme which is being used is contained here: http://demo.rockettheme.com/?template=versatility4
Regards,
Chri3
I dont think this has changed in any version of Joomla, but it has been so long since I have looked at a Joomla 1 installation, I could be way off. Additionally, I dont have one to look at for reference.
So here goes my scientific wild &^#%! guess. When you create a menu from the menu manager in Joomla, you have to select a "menu item type". This could be a single article layout, category layout, blog layout, or link to another installed component, ect... I think its one of the first options in the menu item manager.
Then once you select "single article" there should be a dialog box that allows you to select or manually enter the article you would like to display for that menu item. Hope this helps!
Open up your templates index.php file and look for the following code...
<jdoc:include type="component" />
This is the call to the "main component" in your case would be the content component. You can move this anywhere within index.php and your article will display there
In Joomla 1.5, I created an article. Before publishing it, I want to send a preview URL to my colleagues (they are not registered to Joomla).
I'm looking for something like adding task=preview to the URL and it would show the article.
It would be enough if the article would be normally published but would not be displayed on the main page in the latest news. I tried to set "Front Page" to "No" but without success.
How can I solve the problem?
Joomla! 1.5 doesn't have a feature like this and from the way it's built I'm not sure it's possible without modifying the core com_content files. You could try a search of the Joomla! Extension Directory to see if someone has implemented what you're after.
In the meantime if the article is turning up on the websites front page even when you've set it not to - then the front page must be using a Section/Category Blog page style rather than a Joomla Frontpage page. In this case you could find out which category is set to show on the menu item being used for the front page and then temporarily change your article to another that doesn't appear there.
Once you've got it in another Category you should be able to get a link to the article by doing a search from the front end (assuming you don't want to create a menu link).
try creating a new category called Preview and since that wouldn't have been assigned to any pages yet, it should not appear. If you have trouble finding the article then, you could temporarily publish it either on the home page or somewhere in the menu. Then when you have found and copied the url, you can remove the article from the home page or menu or wherever you temporarily have it appear.
If you should ever want several 'preview' articles appearing on one page, create a new menu item, assign it to the Preview category you made, and in System Parameters, click on Show Title: 'No' so it doesn't appear in the menu. I don't know about what shows up in Google for example so if it's sensitive data I can't say it won't show in search engines, it probably will.
It probably appears on the Front Page because as you say it's part of the 'latest news' module. You could also try removing it from the module feed, but a new category is what I'd do.
Paul
I just selected Section: "Uncategorised" and the article went out from the latest news. Hope it's not accessible any other way in the current setup (there is no search function hopefully). It's not a cleanest solution, but it seems to work.
I'm working on a site in Joomla! and on the homepage, at the top of the article, it comes up with a h1 of the website name. The pagesource says (Note it's not the article title.)
Any idea how to get rid of it?
Thanks,
Steph
You can set this h1 tag not to display via the Parameters - System section of your Menu Item Manager screen in administrator ... this page has a nice depiction of the steps.
It's so simple
Just do the following :
Login to the Joomla Administrator Interface
Go to the Menu Manager
Select your Menu
Select your Menu Item (Home Menu)
On the right hand, Click Parameters (System)—> and in the *Show Page Title—->*Just Select No.
That's all.
This is not the desired solution, since many people, (including myself) actually need to be able to Set/Override the page title (That Appears in the Browser’s Title bar), and setting Page Title to no here will also remove the functionality to Configure the Browser title (which is important for SEO among other things).
Anyway, I have searched and not been able to find a fully correct solution via CMS or PHP Code. The closest solution which is not fully perfect, but unlikely to cause significant (if any) negative effect on your site is through Javascript (Example is JQuery).
jQuery(document).ready( function($) {
$(‘.componentheading’).empty();
});
This can also be done is JS with no JQuery. When I find a better method of doing this I’ll let you know.This should actually be done by removing output from a template file.I don’t know which one yet. When I do, I’ll post it…
When setting the page title not to show in the menu item as stated in other answers, this will not stop the text entered in the page title box being used as the browser title, it will just stop it being shown in the page.
Using javascript to remove it is not a good idea.
1. It will only work for browsers with javascript enabled
2. Search engine spiders will still see it. As the component heading for articles is 'articles' by default it will see all your pages with the same h1 tag.
Just turn it off in the menu item and enter your browser title in the text box above.