Welcome, Guest
Username Password: Remember me

understanding template overrides
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: understanding template overrides

understanding template overrides 14 years ago #598

  • Dumhed
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I am looking to create a template override for my Agora Forum component. But... I'm not sure I really understand template overrides.

I noticed in the file structure that within a given template... say, mobile_pda, under the "html" folder there is a "com_content" folder. Am I correct in assuming that the files in here override the default "com_content" folder?

If so, would putting a "com_agora" folder in that same directory, with the "mobile" Agora template located accordingly be sufficient to override? Or... would I have to also have to find the agora file which "selects" templates and have it force select the mobile one?

understanding template overrides 14 years ago #2497

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Each file in [template]/html/[component]/[view]/ directory overrides corresponding file from components/[component]/views/[view]/tmpl/ directory.

understanding template overrides 14 years ago #2498

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
The problem is that Agora doesn't use Joomla's MVC, and cannot be "override" in such a way.

understanding template overrides 14 years ago #2499

  • Dumhed
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
hmm... that's a bummer. Are there other options, then? (this would be outside of mobilejoomla, of course)... such as a way to force agora to use a particular template when joomla is using a particular template, such as mobile_pda?
  • Page:
  • 1
Time to create page: 0.07 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.