Guest
29 Jan 2014 08:24

I selected no-editor for cobalt comments, and I see a window 500px high

I tried to find out where that 500px value is coming from, but I am quite lost.

It's not in no-editor plugin configs, as there are no configs at all there, it's not in comment template configs and it's not in type comments configs either.

other similar issue

I cannot understand where is the file to edit to change eg. the class assigned to the insert comment box (in components/com_cobalt/views/comment/tmpl/default.php there is nothing about that)

any help is appreciated

thank you

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
31 Jan 2014 07:33

I think this is in plugins/editors/none/none.php


pepperstreet VIP
Total posts: 3,837
31 Jan 2014 21:01

Funnily, the editor plugin "none" has no parameters set in backend.

Also no hardcoded defaults in PHP file.

Which template or framework are you using ...?

Maybe a plugin override in HTML folder ...?

Maybe a JavaScript that adds styles to it …?


pepperstreet VIP
Total posts: 3,837
31 Jan 2014 22:50

Just noticed that the J! core backend behaves the same for standard articles. 500px inline style. The only difference is the respective CSS ID: textarea#jform_articletext

Your screenshot shows an ID, too. Simply use it to override the style. Try to add the following CSS to your templates CSS or any other custom file where you have your own styles:

textarea#jform_comment {

height: 100px;

}

I can't see your surrounding markup and classes. Maybe you have a certain DIV and CLASS/ID around you comment area? If yes, I would pre-pend something to this common textarea class. Helpful, if you want to target that specific textarea only.

(Not recommended - last resort)

If you can´t get a 100px result, and If you can live with the same height for all "textarea#jform_comment", simply add an "!important" like so:

textarea#jform_comment {

height: 100px !important;

}

Guest
01 Feb 2014 03:19

thank you, I'll try


Guest
01 Feb 2014 03:53

unfortunately none of the solution you suggest are working,

I also tried to duplicate the comments template and insert

textarea#jform_comment {

height: 100px !important;

}

in its css files, not working either

what is confusing me the most is that I see

style="width: 100%; height: 500px;"

assigned to the comments textarea, but I cannot understand where that is coming from


Guest
01 Feb 2014 12:23

I tried to add it to the site template custom css

as well as to the comment template css

but it may be also a cache issue, as I have cloudfare activated on this site and often it creates

problems even if I disable and clean cache

anyway I think I will switch to komento, their layout works perfectly,

it's just that I wanted to give the ability to the record author to turn off the comments,

which is possible only if you us cobalt built-in comments

thanks a lot pepperstreet, i really appreciate you taking the time to help

me with this issue :-)

I am curious about taking a look to the webistes you have built using cobalt, would you mind sharing some links?


Guest
02 Feb 2014 04:41

yes, I know what you are talking about... I always used ready-to-go templates (mainly rocketheme and yootheme) and the main problems I found with C8 were due to css conflicts, sometime I had to overwrite almost all half the css rules of the template (and I am not a css expert for sure), and I still find conflicts here and there. Fortunately my clients are not extremely hard to please, so i am always been capable of finding acceptable solutions.

For now the biggest project I have done with J3 and cobalt 8 is this

http://sarteanoliving.it

I used C8 for everything , no joomla articles at all it has standard content listing like this http://www.sarteanoliving.it/it/1/categoria/3-sarteano/28-io-sono-sarteano

and facilities/profiles listings like this

http://www.sarteanoliving.it/it/turismo

right now I am building a farmers listing here

http://192.185.199.103/ ~bottega/fai-la-spesa/conosci-i-produttori

and here is another farms listings I did

http://agrietour.eu/fattorie-didattiche/cerca-fattoria-aperta

(not very nice list layout, but it was paid little)


pepperstreet VIP
Total posts: 3,837
02 Feb 2014 17:32

"Accademia di Belle Arti di Firenze"

Hidden text


Sergey
Total posts: 13,748
02 Feb 2014 23:50

It is inline CSS and Important will not work. The only thing I can see you can

  1. Hack Joomla and change 500 in line 207 of file libraries/cms/form/field/editor.php

  2. Add somethig like this into template

JFactory::getDocument()->addScriptDeclaration("jQuery(function(){jQuery('#jform_comment').width('100%')});");


pepperstreet VIP
Total posts: 3,837
03 Feb 2014 01:18

It is inline CSS and Important will not work.

I think, it works. !important has the priority.

It is inline CSS and Important will not work.

  1. Hack Joomla and change 500 in line 207 of file libraries/cms/form/field/editor.php

Aah, that is the culprit. Thanks for finding the source.

I think, before hacking core files that might be deleted on updates, i would try to make a copy of "editor none" plugin. The parameter code seems to be there... just the XML file lacks the parameter. (AFAIK)


pepperstreet VIP
Total posts: 3,837
03 Feb 2014 01:26

It is inline CSS and Important will not work.

I don't think so... but if you are right, there is an alternative trick.


Guest
03 Feb 2014 03:37

thank you to you both guys :-)

Powered by Cobalt