If a entry has an excerpt and by pressing *read more", the content will be displayed, but also the comment form. How can switch this automatism off? From my point of view, the comment form should not be displayed by default. I prefer to display it, after the comment link was hit.
There is no setting or configuration (that I know of) to do this automatically. I would suggest adding some JavaScript to the .cfm to hide the form initially and then reshow on button click.
Yes, that maybe your way, but it doesn’t suit the way I or others use it.
However you have to realise that the themes (layouts) are what ever you want them to do, so if you want to add JS like Luis has on the default theme, there is nothing stopping you.
And let me warn you know, the more clicks it takes to comment on your form, the less people will comment.
The problem is you’re talking about something at the theme level, so you are only going to be able to do what you need or want with how you design your layout / theme. So if you don’t like it, then you change it in your theme.
ContentBox just delivers what you ask for it to deliver.
Actuall I’m trying to find the piece of code, which loads the comment form with the full blog entry. Following renderContent() didn’t help.
Any idea, where I have to look?
If I’m following what you’re asking, I believe you’ll want to look in the entry.cfm view within your theme. As an example, the default theme has the following which shows the comment form:
That’s right, but i can’t find a way to checkout, if actually the excerpt OR the full entry is loaded. Without this information, i can’t decide if the comment should be loaded or not.
Okay, this is solved too. Passing identifiying arguments to the several involved functions did the trick.
btw: The themes will disabling existing comments, if the comment function for a specific entry is disabled after comments are published already. I changed this way, that existing comments will be rendered, but the comment form will remain disabled.