Guestbook/comments hardcode into pagetype
Permalink
Hi There,
I hope someone can help me?
I'm trying to hardcode guestbook/comments into a blog pagetype that I created. I followed these instructions and they don't seem to work:
http://www.concrete5.org/documentation/how-tos/developers/hardcode-...
I don't know if its because there isn't a scrapbook anymore? I copied the comments block to clipboard, but it still doesn't show up hardcoded when I create a new page with that specific pagetype.
Any help would be much appreciated.
I hope someone can help me?
I'm trying to hardcode guestbook/comments into a blog pagetype that I created. I followed these instructions and they don't seem to work:
http://www.concrete5.org/documentation/how-tos/developers/hardcode-...
I don't know if its because there isn't a scrapbook anymore? I copied the comments block to clipboard, but it still doesn't show up hardcoded when I create a new page with that specific pagetype.
Any help would be much appreciated.
I hardcoded the page type using the code you gave, I changed autonav to guestbook and added the captcha etc.
It worked perfectly thank you so much!
Now I just have one more question if you could help me?
I went and changed the view css for guestbook within the concrete/blocks directory.
The changes don't display on the hardcoded guestbook, unless I go and add another guestbook to the same page, then the css changes show, but the moment I delete that extra guestbook again, it goes back to the old look.
I attached pictures to show you.
In guestbook after you can see the css go live if I add another guestbook to the main content area above it.
Any advice?
It worked perfectly thank you so much!
Now I just have one more question if you could help me?
I went and changed the view css for guestbook within the concrete/blocks directory.
The changes don't display on the hardcoded guestbook, unless I go and add another guestbook to the same page, then the css changes show, but the moment I delete that extra guestbook again, it goes back to the old look.
I attached pictures to show you.
In guestbook after you can see the css go live if I add another guestbook to the main content area above it.
Any advice?
After you made the changes to the CSS did you clear the cache? Because this block is now part of your page type it will cache just like page content.
I did sadly, and f5'd a few times for good meassure too, but no change.
This is a weird quirk with hard coding blocks that I totally forgot about, they don't use their view.css. So, what you will need to do is either manually include the stylesheet file for this page type or copy/paste the CSS from the view.css into the view.php within a <style> tag.
Thank you so much!
It works perfectly now!
Your advice and direction has been so helpful!!!
It works perfectly now!
Your advice and direction has been so helpful!!!
Note: Option 2 cannot be done through the CMS, you need to open the PHP file for your Page Type and put this code where you want it to display on the page.