Forums

Welcome, Guest
Username: Password: Remember me

TOPIC: Templating JU Directory

Templating JU Directory 1 year 10 months ago #3753

  • Macjoomla
  • Macjoomla's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Karma: 0
Hello Admin,
i have a question about templating, as this is disabled in lite version and in demo. What would i do, if i add a new field and want to show it on bottom of description text instead of Information at the righjt side? Or say, i want all infos incl Hits and ratings in one row at bottom of description? Is this possible?

Thank you and best regards, Macjoomla
The administrator has disabled public write access.

Templating JU Directory 1 year 10 months ago #3758

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1641
  • Thank you received: 178
  • Karma: 43
If you want to call one field, using this method: JUDirectoryFrontHelperField::getField()
If you want to call many fields, using this method: JUDirectoryFrontHelperField::getFields()

You can use the code: JUDirectoryFrontHelperField::getField(); to get each field by field column name or id.
You can find the field id in Field manager view.
Like this:
$field = JUDirectoryFrontHelperField::getField(1);
echo $field->getOutput();
The administrator has disabled public write access.

Templating JU Directory 1 year 10 months ago #3763

  • Macjoomla
  • Macjoomla's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Karma: 0
So if i understand right, i have to change code in a specific file to change the output location for fields. In what file i have to change this and do i have to change multiple files, if i want to change detail view and list view?

Sorry, i have been in wrong forum again, best place would be presales questions again :oops: I am not really talking about JU Directory lite, its just the only i could evaluate on my server.
Last Edit: 1 year 10 months ago by Macjoomla.
The administrator has disabled public write access.

Templating JU Directory 1 year 10 months ago #3764

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1641
  • Thank you received: 178
  • Karma: 43
Yes, some files, depends on what view you want to change.
Template path here: components/com_judirectory/templates
The administrator has disabled public write access.

Templating JU Directory 1 year 10 months ago #3765

  • Macjoomla
  • Macjoomla's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Karma: 0
Would this be more flexible without coding if I purchase The directory template to?
The administrator has disabled public write access.

Templating JU Directory 1 year 10 months ago #3767

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1641
  • Thank you received: 178
  • Karma: 43
You can check the demo of template if you want the layout like that.
And it depends on what you want to do, the code is easy if you have basic php knowledge, just look at template folder and reformat the html.
The administrator has disabled public write access.
Time to create page: 0.238 seconds
Powered by Kunena Forum