{News} Add/View comments link
Posted: Sun May 08, 2011 6:43 pm
Hi
I have been pulling my hair out over these issues.
In my site I have a News-Summary with the News-Category-Menu on top; from here the user can either click to Category-Browsing and then to the Detail-Page or click to the Detail-Page directly from the Summary-Page. So far so good.
There are several cosmetic refinements I would like to see:
First off, in the Summary-Page and/or the Category-Page (if easily possible) and definitely in the Detail-Page I would like to have a "View Comments" button/link which brings the user to a Detail-Page containing the news post in detail with the corresponding comments below. --> The user, either reading the News-Summary or News-Category or News-Detail can decide whether to see the News-Detail with comments at the click of this button, instead of the default News-Detail only.
?: Two solutions come to mind. One could create a second Detail-Page which renders the News-Detail via default module behavior and Comments by hard-coding {CGFeedback}. This "commented" page is basically a copy of the original "basic" Detail-Page with additional code to display the comments.
Or, there might be a "dynamic" approach to render the additional comments below the "News-Post-Detail" on the same page, if so requested, without calling another complete page from the web. Although in this case, some data could be found in the browser's cache.
Or, there might be a built in functionality similar to what I am looking for unknown to me. etc...
[Note: I would like to keep it super simple and with as little javascript as possible]
Second, it might be useful to have a similar functionality with an "Add Comment" button. When the reader lands on the Detail-Page he/she finds the basic "News-Post-Detail" and two buttons below, the above mentioned "View Comments" and "Add Comment."
I have very limited understanding on how exactly everything interconnects; I can't even begin to imagine how I can put this together from a code perspective. For instance, how would the 2nd Detail -Page, the one with the comments know which news-detail to copy which comments to render, etc. , since the 1st Detail-Page was the result of a dynamically created link from within the Summary-Page? (pass through vars)
Might it even be better to plug in another module into the "News"- module and use part of it's functionality?
thanks, samj
Using newest version of everything; Xampp, vista home dev.
I have been pulling my hair out over these issues.
In my site I have a News-Summary with the News-Category-Menu on top; from here the user can either click to Category-Browsing and then to the Detail-Page or click to the Detail-Page directly from the Summary-Page. So far so good.
There are several cosmetic refinements I would like to see:
First off, in the Summary-Page and/or the Category-Page (if easily possible) and definitely in the Detail-Page I would like to have a "View Comments" button/link which brings the user to a Detail-Page containing the news post in detail with the corresponding comments below. --> The user, either reading the News-Summary or News-Category or News-Detail can decide whether to see the News-Detail with comments at the click of this button, instead of the default News-Detail only.
?: Two solutions come to mind. One could create a second Detail-Page which renders the News-Detail via default module behavior and Comments by hard-coding {CGFeedback}. This "commented" page is basically a copy of the original "basic" Detail-Page with additional code to display the comments.
Or, there might be a "dynamic" approach to render the additional comments below the "News-Post-Detail" on the same page, if so requested, without calling another complete page from the web. Although in this case, some data could be found in the browser's cache.
Or, there might be a built in functionality similar to what I am looking for unknown to me. etc...
[Note: I would like to keep it super simple and with as little javascript as possible]
Second, it might be useful to have a similar functionality with an "Add Comment" button. When the reader lands on the Detail-Page he/she finds the basic "News-Post-Detail" and two buttons below, the above mentioned "View Comments" and "Add Comment."
I have very limited understanding on how exactly everything interconnects; I can't even begin to imagine how I can put this together from a code perspective. For instance, how would the 2nd Detail -Page, the one with the comments know which news-detail to copy which comments to render, etc. , since the 1st Detail-Page was the result of a dynamically created link from within the Summary-Page? (pass through vars)
Might it even be better to plug in another module into the "News"- module and use part of it's functionality?
thanks, samj
Using newest version of everything; Xampp, vista home dev.