• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: text areas in directory listings

text areas in directory listings 9 years 3 months ago #33765

  • peter52
  • peter52's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 3
Hi !

I have a form which has several text fields, dropdown fields and at the end a text area.
submissions are listed using Directories.

text area is not included in list view to keep layout clean, but it is available in details view.
the problem is, that one does not know if there is a message in the text area or not.
Is it anyway possible to indicate in list view that text area contains text?

Thanks for help.
The administrator has disabled public write access.

text areas in directory listings 9 years 3 months ago #33776

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
There are two ways in which you can address this:

1. A custom scripting via the directory PHP Scripts area, notice the "Scripts called on listing layout" section.

2. Use a template override for the directory listing layout.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

text areas in directory listings 9 years 3 months ago #33779

  • peter52
  • peter52's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 3
Can someone guide me to a solution?
I prefer custom scripting, but overrides will be ok aswell.

I am "just" a designer, not a coder so give me detailed instructions please!

Thank You!
The administrator has disabled public write access.

text areas in directory listings 9 years 3 months ago #33782

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Non-standard scenarios, well, require a little bit more. You don't have to be a coder to make such adjustments (template override related adjustments that is). I guess understanding scripts and "code" in general comes with the overall web territory.

You will need to create a template override for the following layout:

components/com_rsform/views/directory/tmpl/default_layout.php

You will need to work on this particular section, and introduce a "if" clause for your particular field:
			<?php foreach ($this->viewableFields as $field) { ?>
				<td align="center" class="center directoryCol directoryCol<?php echo $this->getFilteredName($field->FieldName); ?>"><?php echo $this->getValue($item, $field); ?></td>
			<?php } ?>

Example:
			<?php foreach ($this->viewableFields as $field) { ?>
				<?php if($field->FieldName != 'textarea'){ ?>
				<td align="center" class="center directoryCol directoryCol<?php echo $this->getFilteredName($field->FieldName); ?>"><?php echo $this->getValue($item, $field); ?></td>
				<?php } else { ?>
				<td align="center" class="center directoryCol directoryCol<?php echo $this->getFilteredName($field->FieldName); ?>">Your custom text here</td>
				<?php } ?>
			<?php } ?>
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: peter52
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!