The Joomla! Forum ™






Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sun Aug 28, 2011 9:02 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Aug 17, 2011 2:05 am
Posts: 19
Hi, everyone,

Although I've read an article about creating basic template, can't understand how does all the stuff work together~~~

I just did a little trial: I changed the file name of component.php under /templates/rhuk_milkyway/component.php to something else, to hide it from system.

And I found that it did't affect the Joomla! website; everything works ok.

Can any one explain what does this file do, and what is the relationship between it and index.php?

Or just give me a link of tutorials that can help with that. Thanks ~~~ ;)


Top
 Profile  
 
PostPosted: Sun Aug 28, 2011 1:29 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Sun Oct 18, 2009 4:59 pm
Posts: 538
Location: India
please go through docs.joomla.org

_________________
Sweta Ray
PHP Developer
http://www.phpseo.net
http://www.urseo.com


Top
 Profile  
 
PostPosted: Sun Aug 28, 2011 1:31 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Mon Sep 07, 2009 3:18 am
Posts: 1869
@vincent
Usually purpose for pdf layout things. :D

_________________
coffee & smoke just fine

OOm Nezar


Top
 Profile  
 
PostPosted: Sun Aug 28, 2011 1:55 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Aug 17, 2011 2:05 am
Posts: 19
@OOm Nezar

do you mean that:
when user clicking the pdf button below article title, then get a PDF format page within a pop-up window?


Top
 Profile  
 
PostPosted: Sun Aug 28, 2011 2:10 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Aug 17, 2011 2:05 am
Posts: 19
Can I say that, if I will disable the function of outputting PDF format in my site, then I can remove the component.php file?


Top
 Profile  
 
PostPosted: Sun Aug 28, 2011 2:52 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Mon Sep 07, 2009 3:18 am
Posts: 1869
event without component.php your site still can run.

_________________
coffee & smoke just fine

OOm Nezar


Top
 Profile  
 
PostPosted: Sun Aug 28, 2011 3:05 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Mon Sep 07, 2009 3:18 am
Posts: 1869
http://docs.joomla.org/New_features_int ... _templates

_________________
coffee & smoke just fine

OOm Nezar


Top
 Profile  
 
PostPosted: Sun Aug 28, 2011 6:08 pm 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13755
Location: Akershus, Norway
The component.php file is a template for showing the component without any modules or headings.

add &tmpl=component to the url. That what the print and pdf icons do.

The files contains the same jdoc statements as the template's index.php.


Top
 Profile  
 
PostPosted: Sun Aug 28, 2011 6:42 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Mon Sep 20, 2010 7:58 am
Posts: 818
Location: Jakarta - Indonesia
Per Yngve Berg wrote:
The component.php file is a template for showing the component without any modules or headings.

add &tmpl=component to the url. That what the print and pdf icons do.

The files contains the same jdoc statements as the template's index.php.


I keep using index2.php for similar purpose, displaying the component without any modules or heading. Is there any difference between the two? Thanks.

_________________
Regards,
enbees, http://bayernozone.com


Top
 Profile  
 
PostPosted: Mon Aug 29, 2011 6:41 pm 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13755
Location: Akershus, Norway
index2.php is not a documented feature. It does not work in J1.7.


Top
 Profile  
 
PostPosted: Thu May 31, 2012 5:05 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 29, 2012 4:34 pm
Posts: 16
I had gr8 problem with my editors on front end:
All pop-ups were blank - I couldn't upload image etc. from front end and just this very article gave me solution (btw. I'm just creating my first Joomla site and I had to create own template for it - so I can know what's goin' on). I had component.php empty.
I've spend half of the night trying to find solution and just after copying content from system template's component solved the issue - THX!
:pop


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 



Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group