The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

Confusion from users with Notes field

More
7 years 3 months ago - 7 years 3 months ago #40770 by Pumice
Pumice created the topic: Confusion from users with Notes field
I found the Notes field a bit confusing ("What is it for?" was my first thought), and now my first client to complete the Testimonial put his testimonial in the Notes fields .... and his comment in the main Testimonial data entry screen.

Perhaps there could be an option to hide the Notes field? I think this is a design case where less would be more ;)
Last Edit: 7 years 3 months ago by Pumice.

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #40773 by vinny
vinny replied the topic: Confusion from users with Notes field
Hi - the notes field can be used for several things; for instance on our extensions testimonials, we use it to state where the testimonial came from. The Joomla Extensions Directory JED, a customer, website, etc. You can see an example of the notes field in use here .

We'd be happy to make it optional - I've added it to our 'todo' list for future releases. In the meantime you can hide the field by editing your 'com_reportcard/views/form/tmpl/edit.php' file (or create an override for that file) and comment out or delete the following:

<div class="control-group">
                            <div class="control-label">
                                <?php echo $this->form->getLabel('notes'); ?>
                            </div>
                            <div class="controls">
                                <?php echo $this->form->getInput('notes'); ?>
                            </div>
                        </div>

Let us know any questions. Thanks!

Vinny - The Thinkery
Good reviews on the JED make us work harder :) | IProperty | Work Force | Report Card

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #40776 by Pumice
Pumice replied the topic: Confusion from users with Notes field
Thanks Vinny
Dumb question, but how do I comment out this bit of the PHP code? I tried using /** and */ but that didn't seem to work (sorry, I'm not very familiar with PHP syntax)

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #40780 by tim
tim replied the topic: Confusion from users with Notes field
Hi Pumice- the
/* comment */
syntax is used for php code only. The code posted above is mixed HTML and PHP.

To comment it you'd probably do something like this (untested):
<!--
<div class="control-group">
<div class="control-label">
  <?php //echo $this->form->getLabel('notes'); ?>
</div>
<div class="controls">
  <?php //echo $this->form->getInput('notes'); ?>
</div>
</div>
-->

Note how the double slash is used to comment out the PHP echo statements, and the HTML block is put in an HTML comment block using
<!-- comment -->

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #40790 by Pumice
Pumice replied the topic: Confusion from users with Notes field
Thanks TIm
That's done the trick A couple of other minor things that puzzle me, that you might be able to shed some light on:-

1. The drop down box for Category seems to show just the tip of the first category in its 'blank' form (until one clicks on it) ...

2. What is the blank box just above the editor ? Or am I imagining it? (See attached)

They could be artefacts of the Joomla theme that I'm using ?
kind regards
George
Attachments:

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #40791 by tim
tim replied the topic: Confusion from users with Notes field
Hi-- those are style quirks, probably due to your template's styles overriding WF / Joomla styles. If you switch to protostar, do they still exist? If not, post a link to your site and we should be able to advise how to change the styles so they work.

Please Log in or Create an account to join the conversation.

Moderators: vinny
Time to create page: 0.272 seconds