So Very Posh
Thanks for visiting! This is the weblog of Lynda, a 26 year old girl living in Atlanta with her husband, three cats and two cockatiels.
Posted on 05.24.04 at 07:08 AM
Since Expression Engine cannot handle comments in the weblog:entries tag, including comments in the RSS feed or index page involves a workaround. Basically, a php file is brought into the template and all is well.
First thing you want to do is create a template that will be used for comments only. I've named mine "inc_comment". The template I'm using for this can be found
HERE. Change it to fit your needs.
The next thing you want to do is add a call to this comment include in your RSS template. In order to do this, you must enable PHP Output in your template preferences. You want to place the following inside the <![CDATA[ ]]> tag:
<?php @include("{comment_path=template_group/inc_comment}"); ?>
This will call the appropriate comments into the page when it loads. An example of my RSS template can be found
HERE.
The same technique can be used on the index page to bring in comments inside your weblog:entries tag.
Please let me know if there are any questions.
Comments are closed for this entry
Thanks for this.
opefully comment nesting will be allowed soon.
Posted by
Doc on 05/24 at 09:26 AM |
Link
Thanks Lynda! On the forums, we had figured that the only way to do it was with php include. This finishes it perfectly though. : )
Yes, it would be nice to have comment nesting soon.
Trackback: EE: RSS 2.0 or Index Comments
Lynda has written up a great inline comments tutorial that you can use within your RSS 2.0 or index templates. This gives you the ability to view comments right there on the home page with an entry without having to actually go to the comments page.
If you like to have that feature, check this out. Very handy! Thanks Lynda!
Tracked on: ExpressionEngine Blog on 05/24 at 11:44 AM
Trackback: EE: Inline Comments & Recent Searches
Both of these are courtesy of Lynda, who detests my target="_blank" habit -- but I can't stop! Eek!
If you'd like to include inline comments in your EE individual archives, Lynda explains how to do it here. Instructions for adding comments to your RSS 2.0 are also included.
Lynda also explains how to add the most recent search queries to your sidebar. I'll be adding both of these to Code Novice ASAP. Thanks, Lynda!
Tracked on: Code Novice on 06/03 at 12:47 AM
Hi Lynda! Thanks for this script.
I’m attempting to get it to work, but I’ve hit a couple snags. 1) I’m not getting anything to show up where the comments should show. 2) how did you do the show/hide thing. I tried doing the Scriptygoddess “Show Hide Anything” routine, but that’s not really working right.
Do you have a better method? Thanks so much!