Welcome, Guest
Username: Password: Remember me

TOPIC: Understanding the generated code

Understanding the generated code 27 Jul 2014 11:44 #12549

  • arnar
  • arnar's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 1
  • Karma: 0
Hi,

If you have a look at the attachment you see that I have marked areas A, B, C & D.

Now where does this come from ? it doesn't seem to be part of any part of the model, controller or view of the page.

A ) Does not pick up the menu item page header. Is that possible and how ?
B ) How can I hide this filter ? I need it to work for being able to link correctly.
C ) How can I hide this ?
D ) How can I hide this ?

Any help greatly appreciated.

Last Edit: 27 Jul 2014 11:51 by arnar.
The administrator has disabled public write access.

Understanding the generated code 27 Jul 2014 12:22 #12550

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
All generated HTML is assembled in the template.

open your template file (or fork it), and you will understand how it works.
views/myviewxxx/tmpl/default.php
Coding is now a piece of cake
The administrator has disabled public write access.

Understanding the generated code 27 Jul 2014 12:39 #12551

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
A:
<h2><?php echo $this->title;?></h2>

B:
<div class="pull-left">
	<?php echo $this->filters['filterXXXXXX']->input;?>
</div>

C:
<div class="pull-right">
	<?php echo $this->filters['directionTable']->input;?>
</div>
<div class="pull-right">
	<?php echo $this->filters['sortTable']->input;?>
</div>

D:
<?php echo $this->pagination->getListFooter(); ?>
Coding is now a piece of cake
Last Edit: 27 Jul 2014 12:39 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: arnar

Understanding the generated code 28 Jul 2014 13:31 #12552

  • arnar
  • arnar's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 1
  • Karma: 0
Hi,

very good, I was able to fork it with no problems it works like a charm.

But I got interested in the JDOM::_ for the fields. Where can I find documenteation of the parameters ?

Regards
The administrator has disabled public write access.
Time to create page: 0.087 seconds

Get Started