Link to home
Start Free TrialLog in
Avatar of Eternal_Student
Eternal_StudentFlag for United Kingdom of Great Britain and Northern Ireland

asked on

joomla component

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,
Avatar of Rowby Goren
Rowby Goren
Flag of United States of America image

Just to clarify, how do you want to display the content differently from the other pages?

Thanks

Rowby
Avatar of Panagiotis S
what do you mean with differently ?


Avatar of Eternal_Student

ASKER

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.
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
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?

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.
ASKER CERTIFIED SOLUTION
Avatar of Rowby Goren
Rowby Goren
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?