Why did my single page suddenly stop using its view.php?
Permalink
Hi there,
I'm getting in a pickle. I'm still very new to Concrete5 and I've been getting my head around things.
I have a single page which previously had the following in its code:
This worked well enough, but I was pulling in a complicated custom template I'd baked up to handle different types of content coming in, and it was getting confusing. I thought I should simplify things, and went ahead and bought the Related Pages & Related Content Panel addons, so I could study them and probably go from there.
I then wanted to handle the blocks slightly differently, so I went back and changed things slightly:
Now, when I try to edit this page, I have totally different blocks—essentially it looks like the default for a full-width page. There's Header Image, Header, Main (and Footer). (See attached screenshot)
Whuhappened? How come the page is not pulling from view.php anymore? I tried throwing in a simple echo statement for kicks—no dice. I cleared the cache. I've tried refreshing the single page, deleting and reinstating. Nada.
Any ideas? Thank you!
I'm getting in a pickle. I'm still very new to Concrete5 and I've been getting my head around things.
I have a single page which previously had the following in its code:
<div id="modelimage"> <? $as = new Area('ModelImage'); $as->display($c); ?> </div> <div class="tab-content"> <? $as = new Area('Main'); $as->display($c); ?> </div><!-- .tab-content -->
This worked well enough, but I was pulling in a complicated custom template I'd baked up to handle different types of content coming in, and it was getting confusing. I thought I should simplify things, and went ahead and bought the Related Pages & Related Content Panel addons, so I could study them and probably go from there.
I then wanted to handle the blocks slightly differently, so I went back and changed things slightly:
<div id="modelimage"> <? $as = new Area('ModelImage'); $as->display($c); ?> </div> <div class="tab-content"> <div id="water-cycle" class="content tab-pane"> <? $as = new Area('WaterCycle'); $as->display($c); ?> </div><!-- #water-types --> <div id="policy-tools" class="content tab-pane"> <?
Viewing 15 lines of 26 lines. View entire code block.
Now, when I try to edit this page, I have totally different blocks—essentially it looks like the default for a full-width page. There's Header Image, Header, Main (and Footer). (See attached screenshot)
Whuhappened? How come the page is not pulling from view.php anymore? I tried throwing in a simple echo statement for kicks—no dice. I cleared the cache. I've tried refreshing the single page, deleting and reinstating. Nada.
Any ideas? Thank you!

Follow up—actually, I may not have reinstated. I'm getting the following message when I try to add the single page saved again as a new page: *That specified path doesn't appear to be a valid static page.*
Check that the permissions on the file are right, that could cause this issue.
Mike
Mike
Thank you Mike,
I tried that, but that did not seem to have an effect. I did find something, which I should have thought of earlier—I think the page was misbehaving because I had moved it in the sitemap, but the page was not stored in a subfolder of 'single_pages'.
E.g.:
but address ishttp://foo.com/learn/model/
I put the page into a subfolder (/single_pages/learn/model.php) and now I have the ModelImage block back. And I can add raw text to the php page, and it will show up.
But the remaining blocks still do not show up for editing. I have tried clearing cache and refreshing the page again...
Thoughts?
I tried that, but that did not seem to have an effect. I did find something, which I should have thought of earlier—I think the page was misbehaving because I had moved it in the sitemap, but the page was not stored in a subfolder of 'single_pages'.
E.g.:
/single_pages/model.php
I put the page into a subfolder (/single_pages/learn/model.php) and now I have the ModelImage block back. And I can add raw text to the php page, and it will show up.
But the remaining blocks still do not show up for editing. I have tried clearing cache and refreshing the page again...
Thoughts?
It might be possible that the cid if the page changed, if that's what
happened then the blocks are associated with the old cid.
Mike
Sent from my phone
On Jun 7, 2012 10:56 PM, "concrete5 Community" <discussions@concretecms.com>
wrote:
happened then the blocks are associated with the old cid.
Mike
Sent from my phone
On Jun 7, 2012 10:56 PM, "concrete5 Community" <discussions@concretecms.com>
wrote:
Mike, thanks for your assistance. Turns out I was trying to do too much at once. I had renamed a tab, which was being hidden. I did see some quirkiness, and your comment is helping me grasp how Concrete handles the blocks, I THINK. It seems to be working now that I have simplified what I'm doing. I'll add the complexity back in once I have a handle on this bit!
At any rate, I appreciate your help.
At any rate, I appreciate your help.