Solved

joomla component

Posted on 2011-02-11
8
511 Views
Last Modified: 2013-11-19
Hi,

I have two different kinds of layout on my Joomla website in the content area.

I wanted to display the content/article differently for the frontpage than the other pages.

The problem is, index.php just spits out <jdoc:include type="component" /> where the content codes. Do I have to code around this using IF statements or am I missing a trick here?

Thanks,
0
Comment
Question by:Eternal_Student
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 9

Expert Comment

by:Rowby Goren
ID: 34873114
Just to clarify, how do you want to display the content differently from the other pages?

Thanks

Rowby
0
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 34877406
what do you mean with differently ?


0
 
LVL 18

Author Comment

by:Eternal_Student
ID: 34877936
Basically the mark up around <jdoc:include type="component" /> is considerably different, ideally it would be nice if the frontpage had its' own index.php but im sure I could get by with some IF statements. It just seems like the templates are a little inflexible.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Expert Comment

by:Rowby Goren
ID: 34878938
I'm not sure your exact goals, but you might want to look at this

http://magazine.ijoomla.com/

Or similar layout 3rd party solutions.

Rowby
0
 
LVL 18

Author Comment

by:Eternal_Student
ID: 34881069
OK, let me re-phrase the question ...

I need to have more control over the mark up inside <jdoc:include type="component" /> especially the <h1> tags.

Is there anyway I can get the headings out of the above component and into a separate component?

0
 
LVL 25

Expert Comment

by:lenamtl
ID: 34883170
Hi,

I used Reem Content Templating in the past
http://www.joomreem.com/View-document-details/Reem-Content-Templating.html

You can give it a try to see if it can do the job.

Other solution is to have more than one template for the site but it can be hard to manage.

Also most third component have their own css.
0
 
LVL 9

Accepted Solution

by:
Rowby Goren earned 250 total points
ID: 34883203
Joomla 1.6 offers enhanced control of templates.  I am just getting into that version.  You might want to check it out.

http://www.joomla.org/announcements/general-news/5348-joomlar-16-has-arrived.html

http://people.joomla.org/videos/video/216-Joomla+16+Quick+Look%3A+Template+Styles.html?groupid=458

Perhaps the Templates Styles feature of 1.6 is what you are looking for.


Rowby
0
 
LVL 18

Author Comment

by:Eternal_Student
ID: 34883259
I've got a little further with this ... I can now see how each type of page has its' own default.php file so understanding that is very helpful.

The problem I am having at the minute is that I have some sub menu modules that appear on index.php that I want to move to the articles default.php page ... is this possible, if so how?
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Code Manager | Snippits 2 62
asp Google Map 2 59
Selenium: Transitioning from unit testing to automated testing 4 59
How to build a web site 17 52
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question